Forkz
Intermediate OT User
- Joined
- Jun 29, 2020
- Messages
- 528
- Solutions
- 16
- Reaction score
- 129
Hi otlanders,
my ladder spawn script is the one below
As the image below, I wanted that when there was some "item" disturbing the character spawn at the front of the stairs

my ladder spawn script is the one below
LUA:
local upFloorIds = {1386, 3678, 5543}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(upFloorIds, item.itemid) == TRUE then
fromPosition.y = fromPosition.y + 1
fromPosition.z = fromPosition.z - 1
else
fromPosition.z = fromPosition.z + 1
end
doTeleportThing(cid, fromPosition, FALSE)
return TRUE
end
