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
Spawn activated when a player approach or say xxx
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #3
RE: Spawn activated when a player approach or say xxx
Here is another idea... a "multi" item with a defined area, where the component of the multi is a creature spawner, and the area of effect is defined by the size of the region (my example item is MULTIREGION=-2,-2,2,2 which is a 5x5 area):

Code:
[SPEECH speech_spawntrigger]
ON=*fight me*
   FORITEMS 2
      IF (<TYPE>==t_spawn_char)
         SRC.SYSMESSAGE @032 Respawning <NAME>
         IF <MORE2>==1
            MORE2=0
         ENDIF
         TIMER=1
      ENDIF
   ENDFOR

[ITEMDEF i_multi_spawntrigger]
NAME=Spawn Area
TYPE=t_multi
TSPEECH=speech_spawntrigger
MULTIREGION=-2,-2,2,2
COMPONENT=i_worldgem_lg,0,0,0
ON=@Create
   ATTR=attr_move_never|attr_invis
   COLOR=021

Keep in mind that since it is a multi (albeit an invisible one), it does have a name and region flags etc... so if you are in the range of the speech you are also in the region of the multi so the result of .where will include the multi's name.
11-25-2012 08:12 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Spawn activated when a player approach or say xxx - RanXerox - 11-25-2012 08:12 AM

Forum Jump:


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