Moderator
Zapisz to jako burningheal.lua w folderze actions
Kod:
Spoiler:
function onUse(cid, item, frompos, item2, topos)
local mlvl = getPlayerMagLevel(cid)
local lvl = getPlayerLevel(cid)
local addhealth = 100
if mlvl >= 4 then
if lvl >= 8 then
doPlayerSay(cid,'Zycie',16)
doPlayerAddHealth(cid, addhealth)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,'Musisz miec co najmniej 4 Magic level, zeby tego uzyc.')
end
else
doSendMagicEffect(frompos,3)
doPlayerSendCancel(cid,'Musisz miec co najmniej 8 lvl by, moc uzywac leczacego serca.')
end
return 1
end
teraz otwórz actions.xml i dopisz tam
Kod:
Spoiler:
<action itemid="2353" script="burningheal.lua" />
skrypt nie jest mój ale działa na tibie 8.11. jest to "palące się serce" dodające hp.
Ostatnio edytowany przez GoD Trojca (2008-12-01 16:54:01)
Offline
Zbanowany
A cóż to jest ?
Offline