Zwik - 2008-07-11 21:49:02

Tworzymy w data\actions\scripts ziolo.lua i wpisujemy

Spoiler:

MAX_FOOD = 500
function onUse(cid, item, frompos, item2, topos)
-- Get food value depending on item.itemid
food = 60
if (getPlayerFood(cid) + food > MAX_FOOD) then
doPlayerSendCancel(cid,"O fuck... I took tooo much.")
return 1
end
doPlayerFeed(cid,food)
doRemoveItem(item.uid,1)
doPlayerAddHealth(cid,350)
doSendMagicEffect(topos,2)
doPlayerSay(cid,"It is great stuff!",1)
return 1
end

Pozniej w actions.xml (data\actions\) dodajemy taka linijke:

Spoiler:

<action itemid="2802" script="ziolo.lua" />

www.grascooby.pun.pl www.gaudiumforum.pun.pl www.importtuning.pun.pl www.forumgrajacychinaczej.pun.pl www.kibicebukowna.pun.pl