Elvang
Member
Here is a simple script to turn the pot of water you can find out in the wild usually near humans on.
In the actions folder make a new lua file named "Camp Fire" and put this inside it:
Afterwards open your actions.xml and add in:
Now in your map editor you need to add the action id "600" or what ever you choose to make it to either of the pots.
Here is a screenshot of what I mean:
In the actions folder make a new lua file named "Camp Fire" and put this inside it:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 1427 then
doTransformItem(itemEx.itemid, 1428)
return TRUE
end
if itemEx.itemid == 1428 then
doTransformItem(itemEx.itemid, 1427)
return TRUE
end
return FALSE
end
PHP:
<action itemid="1427" event="script" value="quests/Camp Fire.lua"/>
<action itemid="1428" event="script" value="quests/Camp Fire.lua"/>
Now in your map editor you need to add the action id "600" or what ever you choose to make it to either of the pots.
Here is a screenshot of what I mean:
Last edited: