The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Walls on Dungeon Entrances.
Author Message
ChaveS
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #6
RE: Walls on Dungeon Entrances.
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
(This post was last modified: 12-05-2012 03:46 AM by ChaveS.)
12-05-2012 03:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Walls on Dungeon Entrances. - Lazarus - 12-03-2012, 11:55 PM
RE: Walls on Dungeon Entrances. - ChaveS - 12-04-2012, 03:13 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-04-2012, 09:24 AM
RE: Walls on Dungeon Entrances. - ChaveS - 12-04-2012, 11:39 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-04-2012, 05:17 PM
RE: Walls on Dungeon Entrances. - ChaveS - 12-05-2012 03:22 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-05-2012, 03:48 AM
RE: Walls on Dungeon Entrances. - Mordaunt - 12-05-2012, 04:04 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-05-2012, 08:54 AM
RE: Walls on Dungeon Entrances. - Mordaunt - 12-05-2012, 09:26 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-05-2012, 09:34 AM
RE: Walls on Dungeon Entrances. - Mordaunt - 12-05-2012, 10:41 AM
RE: Walls on Dungeon Entrances. - Lazarus - 12-05-2012, 10:58 AM
RE: Walls on Dungeon Entrances. - Mordaunt - 12-05-2012, 11:24 AM
RE: Walls on Dungeon Entrances. - ChaveS - 12-05-2012, 12:50 PM
RE: Walls on Dungeon Entrances. - Lazarus - 12-07-2012, 02:11 AM
RE: Walls on Dungeon Entrances. - Skul - 12-10-2012, 10:38 PM
RE: Walls on Dungeon Entrances. - RanXerox - 12-11-2012, 09:52 AM
RE: Walls on Dungeon Entrances. - Skul - 12-11-2012, 04:40 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)