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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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