Frizen |
Wysłany: Pon 17:44, 03 Kwi 2006 Temat postu: Podłoga dająca manę... |
|
W data/actions/scripts/ zrób plik manes.lua i i wklejasz to:
Kod: |
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos,1)
doPlayerSay(cid," ",16)
doPlayerAddMana(cid,"100")
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"ej nie masz 0 mglvl aby uzyc podlogi !")
end
return 1
end
|
teraz przejdzmy do data/actions/actions
wklejasz to
Kod: |
<action itemid="415" script="manes.lua" /> |
415-jest to podloga w swiatyni gdzie sie znajdujemy po zrobiieniu postaci albo dedzie |
|