KiKi |
Wysłany: Sob 21:57, 18 Mar 2006 Temat postu: 2in 1 uh+manarune |
|
Whodzimyw data/actions/scripts
robimy plik manarune.LUA
otwieramy i wklejamy to :
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2270 and item.type > 1 then
doPlayerAddMana(cid,3000000)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Aaaaah.. manaruna by Mateo",1)
else
doRemoveItem(item.uid,1)
end
return 1
end
Jerzeli hcemy jeszcze aby dodawało hp to wpisujemy zamaiast poprzedniego to :
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2270 and item.type > 1 then
doPlayerAddMana(cid,3000000)
doPlayerAddHealth(cid,20000)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Aaaaah.. manaruna by Mateo",1)
else
doRemoveItem(item.uid,1)
end
return 1
end
koniec
doPlayerAddMana(cid,3000000) <-- te cyfry to ilosc many jaką doda manaruna
doPlayerAddHealth(cid,20000) <--a tu ilosc cyfr oznacza hp dodanej przez manarune
To hyba wszystko prosze o komętarz!! |
|