Luciano
Member
- Joined
- Feb 18, 2010
- Messages
- 998
- Reaction score
- 24
Since in my ot some doors have actionids 1040, 1100, 1070, of doors, i decided to make a script to they work. Or else they dont. I used the script of vip dor, but i want it to work with actionid from 1000 to 1100.
Also please post actions.xml code
Script:
Ty, and rep +++ for sure
Also please post actions.xml code
Script:
Code:
-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 1040) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome Player!", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome Player!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only Players can pass here!")
return TRUE
end
return FALSE
end
Ty, and rep +++ for sure