• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Movement request

knightxd

Member
Joined
Feb 21, 2009
Messages
211
Reaction score
16
Location
Rio de Janeiro
i used to set movements and actions to create stairs/ladders and them turn em ground again.

like.. when i pull a lever the floor become a hole/stair/ladder, and then when i push it returns to normal..

also in movements when i walk on a title it turns other in a ladder.. and when walkout it returns, the big problem is, now i can't position another ground in a ladder, it is created on a floor above.

-> this function:

Code:
elseif item.itemid == 1946 then
doCreateItem(352,1,escadapos)
doTransformItem(item.uid,1945)

i tryed to "transform" item with this one:

Code:
elseif item.itemid == 1946 then
doTransformItem(getescada.uid,352)
doTransformItem(item.uid,1945)


i also tryed to remove the ladder with this one:

Code:
elseif item.itemid == 1946 then
doRemoveItem(getescada.uid,1)
doTransformItem(item.uid,1945)

~~~~
No one of this works, i think ground/stairs can't be loaded here:

Code:
getescada = getThingfromPos(escadapos)

is it possible to make a function like this??

i'm actually using TFS 0.3.4 Crying Damson
 
i think stackpos1 is floor, and stackpos255 is on a table etc
PHP:
stackpos_ground = 0
stackpos_first_item_above_groundtile = 1
stackpos_second_item_above_groundtile = 2
stackpos_third_item_above_groundtile = 3
stackpos_fourth_item_above_groundtile = 4
stackpos_fifth_item_above_groundtile = 5
stackpos_top_creature = 253
stackpos_top_field = 254
stackpos_top_moveable_item_or_creature = 255
 
Back
Top