Wylatujace papugi z drzewa.
w data/actions/scripts tworzymy parrottree.lua a w nim:
Spoiler:
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
if item.itemid == 6094 then
doSendMagicEffect(topos,1)
doTransformItem(item.uid, 4007)
doSummonCreature("parrot", pos)
else
return 0
end
return 1
end
w data/actions/actions.xml
Spoiler:
<action itemid="6094" script="parrottree.lua"/>
(ID drzewka z papugą:6094)
Pozdrawiam
Offline
Heh... mocne to na pewno się przyda leci "+"
Offline