Just in case someone get mad on me for posting such an obvious script, but as an excuse I have searched through my server distro (Avesta 0.6.5) without any luck, as well as OTLand.
In my case - if you pull the specific lever a fire field(which is not decaying) will be removed at a spot nearby, and if you pull the lever again it will reappear.
Now, I didn't get it to work at the first part where it should remove the fire field (actionid = 201 for lever, 202 for fire field)
I know, simple but not useable yet :s Thanks!
In my case - if you pull the specific lever a fire field(which is not decaying) will be removed at a spot nearby, and if you pull the lever again it will reappear.
Now, I didn't get it to work at the first part where it should remove the fire field (actionid = 201 for lever, 202 for fire field)
Code:
function onUse(cid, item, frompos, item2, topos)
if(item.actionid == 201) then
doRemoveItem(item.actionid, 202)
return TRUE
end
end
I know, simple but not useable yet :s Thanks!