Autor Wiadomość
vilagie
PostWysłany: Śro 18:54, 22 Mar 2006    Temat postu: Extazy

Dodaj ten wers:

Kod:
<action itemid="3673" script="extaza.lua" /> Nastepnie wchodzimy w <...data/actions/scripts
I dodaj ten plik lua, nazwij go "extaza"

Kod:
MAX_FOOD = 400
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,"Chyba za duzo sie nacpalem, o.0 .")
return 1
end
doPlayerFeed(cid,food)
doRemoveItem(item.uid,1)
doPlayerAddHealth(cid,20)
doSendMagicEffect(topos,2)
doPlayerSay(cid,"More, more lady plx, AAAAAHHHH, UHHHHHH",1)
return 1
end Nastenie w /data/items/items.xml dodaj zamien to :
Zamieniamy to:

Kod:
<item id="3673" name="sling herb" weight="0.9" />
Na to:

Kod:
<item id="3673" name="extaza" weight="0.5" />I Extaze mamy

Powered by phpBB © 2001,2002 phpBB Group