Forkz
Well-Known Member
- Joined
- Jun 29, 2020
- Messages
- 360
- Solutions
- 1
- Reaction score
- 76
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