SphereCommunity
Wipe one respawn - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Wipe one respawn (/Thread-Wipe-one-respawn)

Pages: 1 2 3


RE: Wipe one respawn - RanXerox - 08-17-2014 04:29 AM

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?


RE: Wipe one respawn - Skul - 08-17-2014 04:46 AM

forinstances xx works on every instance of xx, regardless of map or position.


RE: Wipe one respawn - Nara - 08-17-2014 07:18 PM

(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 =(


RE: Wipe one respawn - Extreme - 08-18-2014 01:46 AM

You can remove all spawns using this:

PHP Code:
[FUNCTION WIPESPAWNS]
FORINSTANCES I_WORLDGEM_BIT
 REMOVE
ENFOR 



RE: Wipe one respawn - Nara - 08-18-2014 04:36 AM

lol i need to remove only tailors Big Grin


RE: Wipe one respawn - Extreme - 08-18-2014 04:38 AM

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 



RE: Wipe one respawn - Nara - 08-19-2014 08:40 PM

How you use this function? Just in game write .npc_wipe?


RE: Wipe one respawn - htid4life - 08-19-2014 09:38 PM

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



RE: Wipe one respawn - XuN - 08-19-2014 10:02 PM

(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.


RE: Wipe one respawn - Nara - 09-04-2014 10:44 PM

(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