Jump to content
  • 0
Sign in to follow this  
adrian26v2

Announce Emperium Breaker

Question

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 

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

where did you put it after the line?

// The Emperium has been broken.OnAgitBreak: 

and are you using custom agit controller?

 

:meow:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.