it is removing the gold used to check if there is a wall on that place
and checking if there is a wall on that place
my bad, try
Code:
[typedef t_dungeon_tile]
on=@step
if <destine_blocktest>
src.sysmessage @,,1 The other side is blocked
move <dtag.moveback>
return 1
endif
[function destine_blocktest2] //to test where it is
if !<args>
serv.newitem i_gold
new.attr 090
new.p <morep>
new.destine_blocktest2
return <new.destine_blocktest2>
[function destine_blocktest2]
timerf,0 remove
FORITEMS 0
IF (<baseid> == i_wall_of_stone_8 )
return 1
ENDIF
ENDFOR
endif
Then set
.xtag.moveback 2,0 (move 2 tiles right)
.xtag.moveback -2,0 (move left)
.xtag.moveback 0,2 (move top)
.xtag.moveback 0,2 (move bot)
and .xmorep XXXX,YYYY where XXXX,YYYY is the place where this dungeon tile is sending to...
You can use tilef to make this function better:
http://forum.spherecommunity.net/Thread-...-of-a-item
somthing like
IF (<serv.itemdef.<baseid>.tilef> & tilef_impassable) || ... tilef_wall || etc
return 1
ENDIF