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
Breakable Wall
Author Message
Jim
Apprentice
*

Posts: 28
Likes Given: 1
Likes Received: 12 in 4 posts
Joined: Jan 2015
Reputation: 0



Post: #2
RE: Breakable Wall
i don't konw if it is ok for you, the following :

//difine a type "t_wall_breakable", the wall will be remove in 5 seconds after first-doubleclicking by player
[TYPEDEF t_wall_breakable]
ON=@DCLick
if !(<src.flags>&statf_war)
src.message peace mode?
return 1
endif
SRC.MESSAGE hitting the wall!
link=<src>
if (<timer>>=0)
return 1
else
timer=5
return 1
endif

ON=@Timer
link.message broken the wall!
remove
return 1

//attach the type to the item "TEVENTS=t_wall_breakable"
[ITEMDEF i_wall_stone_aged_breakable]
ID=i_wall_stone_aged
TEVENTS=t_wall_breakable

//maybe add the distance judgement after war mode judgement.
if (<distance> > 1)
src.message too far away!
return 1
endif
(This post was last modified: 01-30-2015 07:06 PM by Jim.)
01-30-2015 06:47 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Breakable Wall - Leonidas - 01-30-2015, 05:08 PM
RE: Breakable Wall - Jim - 01-30-2015 06:47 PM
RE: Breakable Wall - Leonidas - 01-31-2015, 08:06 AM
RE: Breakable Wall - azmanomer - 01-31-2015, 09:02 AM
RE: Breakable Wall - XuN - 01-31-2015, 07:27 PM
RE: Breakable Wall - Leonidas - 02-01-2015, 06:55 AM

Forum Jump:


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