soul4soul
Intermediate OT User
here is how to get jungle maws working like real tibia. they give 30 damage to any creature player or monster they walks over it and will close after some time they will open again. they will also close if you place an item on top of it.
make junglemaw.lua in data/movements/scripts
add this to movements.xml
now go to items.xml and search 4209 add this for its attributes. i'm not sure how long it takes for them to open again but i no its not to long so i put it to 2mins and 30secs for it to open again
edits:thanks marcinek for the info, thanks again marcinek
make junglemaw.lua in data/movements/scripts
Code:
function onStepIn(cid, item, pos)
doTargetCombatHealth(0, cid, COMBAT_POISONDAMAGE, -30, -30, CONST_ME_POFF)
doTransformItem(item.uid, item.itemid + 1)
return TRUE
end
function onAddItem(moveitem, tileitem, position)
doTransformItem(tileitem.uid, tileitem.itemid + 1)
doSendMagicEffect(position, CONST_ME_POFF)
return TRUE
end
add this to movements.xml
Code:
<movevent event="StepIn" itemid="4208" script="junglemaw.lua"/>
<movevent event="AddItem" tileitem="1" itemid="4208" script="junglemaw.lua"/>
now go to items.xml and search 4209 add this for its attributes. i'm not sure how long it takes for them to open again but i no its not to long so i put it to 2mins and 30secs for it to open again
Code:
<attribute key="decayTo" value="4208"/>
<attribute key="duration" value="150"/>
edits:thanks marcinek for the info, thanks again marcinek
Last edited: