Lazarus
Master
Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1
Hybris Ultima Online
|
RE: Walls on Dungeon Entrances.
(12-04-2012 11:39 AM)ChaveS Wrote: try it:
[typedef t_dungeon_tile]
on=@step
if <destine_blocktest>
src.sysmessage @,,1 The other side is blocked
src.go <morep>
return 1
endif
[function destine_blocktest] //to test where it is
if !<args>
serv.newitem i_gold
new.attr 090
new.p <morep>
new.destine_blocktest 1
else
timerf,0 remove
FORITEMS 0
IF (<baseid> == i_wall_of_stone_8 )
return 1
ENDIF
ENDFOR
endif
Not working. Everytime [with a wall of stone or without] the IF on the function gets in first and never else.
The function never get's the 1 on new.destine_blocktest 1
If I use return 1 works the return 1 but... the morep don't get's save or something else that not let me works fine.
So, i have a question, why is there that else?
else
timerf,0 remove
FORITEMS 0
IF (<baseid> == i_wall_of_stone_8 )
return 1
ENDIF
ENDFOR
Thanks for all the help ^_^ really
Lazarus.
|
|
12-04-2012 05:17 PM |
|
|