Aller au contenu

Photo

Ondeath for a group


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
kamal_

kamal_
  • Members
  • 5 250 messages

A script I haven't done before is an Ondeath script for a group. ie once the entire group dies, the script runs. Is there a sample script out there for this? The group will be spawned by an encounter trigger, and will not be a specific number of creatures.



#2
Tchos

Tchos
  • Members
  • 5 054 messages

GroupOnDeathExecuteCustomScript(string sGroupName, string sScriptName) in ginc_group.



#3
kamal_

kamal_
  • Members
  • 5 250 messages

GroupOnDeathExecuteCustomScript(string sGroupName, string sScriptName) in ginc_group.

In the Ondeath script of the individual group members, or elsewhere?



#4
Tchos

Tchos
  • Members
  • 5 054 messages

Do not change the On Death script from the default for any of the group members.  The death script must remain the default (or a custom one which includes the same relevant code), because this function will set a custom death script that is loaded from the default script.  This function should be fired once, after the group is created and its members are defined with the other group scripts, and it can be fired from a script in any event, such as On Client Enter or when crossing a trigger.


  • kamal_ aime ceci

#5
kamal_

kamal_
  • Members
  • 5 250 messages

Working now thanks to your help. :)



#6
Tchos

Tchos
  • Members
  • 5 054 messages

Glad to hear it.