Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawn Gems
Author Message
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #1
Spawn Gems
Hey guys just wondering if some one would script me some thing to search the world n every spawngem it will set timer to 5 to reset it please thanks in advance.

[Image: htid.jpg]
04-13-2012 04:06 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

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



Post: #2
RE: Spawn Gems
Here are two functions... the first one REMOVES all the already spawned monsters on whichever map you are standing on when you run it. The second one alters each spawn gem, setting MORE2 (to activate it) and TIMER (to get one of the creatures to spawn.)

Code:
[FUNCTION respawnmap]
//GO 1,1,0,<ARGN1>
FORCHARS <ARGN1> //8000
   OBJ=<MEMORYFINDTYPE.memory_ispawned>
   IF (<OBJ>)
      SRC.SYSMESSAGE @032 Respawning <OBJ.CONT.NAME>
      REMOVE
      OBJ.TIMER=<EVAL {<OBJ.MOREX> <OBJ.MOREY>}*60>
   ENDIF
   OBJ=
ENDFOR

[FUNCTION respawnspawner]
//GO 1,1,0,<ARGN1>
FORITEMS <ARGN1> //8000
   IF (<TYPE>==t_spawn_char)
      SRC.SYSMESSAGE @032 Respawning <NAME>
      IF <MORE2>==1
         MORE2=0
      ENDIF
      TIMER=1
   ENDIF
ENDFOR

PS: You might want to comment out the SYSMESSAGE lines... it can crash your client if your maps have a lot of creatures/spawners.
04-13-2012 06:26 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #3
RE: Spawn Gems
thank you so much :Smile

[Image: htid.jpg]
04-13-2012 07:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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