Matheus Vieira
Member
- Joined
- Apr 11, 2015
- Messages
- 98
- Reaction score
- 5
Hello guys, im having some problem doing this on my own, so here i am asking for help
I want a script that, when the player opens a door (with actionid), after 5 seconds, the door closes. Simple as that
I was trying to do this, but I keep getting this error:
(luaDoTransformItem) Item not found
Anyway, here's the code that i tried to do alone.
Thanks.
I want a script that, when the player opens a door (with actionid), after 5 seconds, the door closes. Simple as that
I was trying to do this, but I keep getting this error:
(luaDoTransformItem) Item not found
Anyway, here's the code that i tried to do alone.
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 44100 then
doTransformItem(item.uid, 5737)
addEvent(function()
doTransformItem(item2.uid, 5736)
end, 6000)
end
return true
end
Thanks.