 |
OTPL -- The best OTS Forum in the World OTPL -- The best OTS Forum in the World
|
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
To ja Geho
Gość
|
Wysłany: Pon 19:21, 13 Lis 2006 Temat postu: manarune 7,6 |
|
|
wchodzimy w ots/data/actions/scripts tworzymy tam plik manarune
wklejamy w nim -- Mana rune modifed by Gligo --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2270 and item.type > 1 then
doPlayerAddMana(cid,10000000)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Pij mane to ci urosnie!!!",16)
else
doRemoveItem(item.uid,16)
end
return 1
end
następnie w ots/data/actions/actions tworzymy tam linijke
<action itemid="2270" script="manarune.lua" />
a potem w npc i tam w scripts szukamy rune i tam nadole bedzie blank rune zmincie to na
elseif msgcontains(msg, 'manarune') then
buy(cid,2270,1000,10)
odpalamy ots i dziala
|
|
Powrót do góry |
|
 |
|
 |
|