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
Wipe one respawn
Author Message
RanXerox
Master
**

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



Post: #11
RE: Wipe one respawn
When a function like that is used in-game by a GM, does forinstances work on all map facets or just the one you are standing on?
08-17-2014 04:29 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #12
RE: Wipe one respawn
forinstances xx works on every instance of xx, regardless of map or position.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-17-2014 04:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Skul's post
Nara
Apprentice
*

Posts: 24
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jul 2014
Reputation: 0



Post: #13
RE: Wipe one respawn
(08-17-2014 04:08 AM)Extreme Wrote:  Go on script submissions section and search for it.. I'm on mobile and cant share the link.

I find this spawner but he can't resolve my problem Smile I still need to wipe tailor spawns. Function still not work =(
08-17-2014 07:18 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #14
RE: Wipe one respawn
You can remove all spawns using this:

PHP Code:
[FUNCTION WIPESPAWNS]
FORINSTANCES I_WORLDGEM_BIT
 REMOVE
ENFOR 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-18-2014 01:46 AM
Find all posts by this user Like Post Quote this message in a reply
Nara
Apprentice
*

Posts: 24
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jul 2014
Reputation: 0



Post: #15
RE: Wipe one respawn
lol i need to remove only tailors Big Grin
08-18-2014 04:36 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #16
RE: Wipe one respawn
Well, I don't know why, but here it works.
PHP Code:
[function npc_wipe]
forinstances i_worldgem_bit
if strmatch(*tailor*,*<more>*)
remove
endif
endfor 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-18-2014 04:38 AM
Find all posts by this user Like Post Quote this message in a reply
Nara
Apprentice
*

Posts: 24
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jul 2014
Reputation: 0



Post: #17
RE: Wipe one respawn
How you use this function? Just in game write .npc_wipe?
08-19-2014 08:40 PM
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: #18
RE: Wipe one respawn
yea use .npc_wipe

Code:
[function npc_wipe]
forinstances i_worldgem_bit
IF (<more1> == C_H_TAILOR) || (<more1> == C_H_TAILOR_F)// check if this is the right id for the vendor on the spawns
    remove
    ENDIF
endfor

[Image: htid.jpg]
08-19-2014 09:38 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #19
RE: Wipe one respawn
(08-19-2014 09:38 PM)htid4life Wrote:  yea use .npc_wipe

Code:
[function npc_wipe]
forinstances i_worldgem_bit
IF (<more1> == C_H_TAILOR) || (<more1> == C_H_TAILOR_F)// check if this is the right id for the vendor on the spawns
    remove
    ENDIF
endfor

If you are using the new scriptpack you should change C_H_* to C_, so c_h_tailor will be c_tailor. Otherwise you'll receive error about not existant character id.
08-19-2014 10:02 PM
Find all posts by this user Like Post Quote this message in a reply
Nara
Apprentice
*

Posts: 24
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jul 2014
Reputation: 0



Post: #20
RE: Wipe one respawn
(08-19-2014 09:38 PM)htid4life Wrote:  yea use .npc_wipe

Code:
[function npc_wipe]
forinstances i_worldgem_bit
IF (<more1> == C_H_TAILOR) || (<more1> == C_H_TAILOR_F)// check if this is the right id for the vendor on the spawns
    remove
    ENDIF
endfor

Thank you very much it works Wink Final question: how to remove tailor npc after removing spawns?

Code:
[function npc_wipe]
forinstances c_man
IF (<more1> == C_H_TAILOR) || (<more1> == C_H_TAILOR_F)
    remove
    ENDIF
endfor
Doesn't work for me
09-04-2014 10:44 PM
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)