Announce Emperium Breaker

adrian26v2

New member
Messages
35
Points
0
npc/guild/agit_main.txt announce " WOW!! " + strcharinfo(0) + ", conquered [" + getcastlename(strnpcinfo(2)) + "] castle for [" + getguildname(.@GID) + "] guild!",bc_all|bc_woe; 

 Help why its not broadcasting the player who broke emperium 

 
 
where did you put it after the line?

// The Emperium has been broken.OnAgitBreak: 
and are you using custom agit controller?

default_ani_meow.gif


 
Nope, it happens with current npc/guild/agit_main.txt file:

  // Respawn the Emperium, and display new owners. sleep 500; // Slow down script execution slightly. if( agitcheck() ) donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; sleep 7000; announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe; end;

The sleep script command detaches RID from script, so it won't be able to get any user name with strcharinfo() and push an empty string. Either get the char name before the sleep commands and save to a temporary variable, or change all sleep to sleep2, which will retain attached RID to the script.

 
Back
Top