Jump to content
  • 0
keoma

buildin_strcharinfo: Fatal error ! Player not attached!

Question

Woe Breaker name add on annoumce

rathena/npc/guild/agit_main.txt

// 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([email protected]) + "] guild.",bc_all|bc_woe;
	end;

 

 

I edited the ad option for

Quote

   // Respawn the Emperium, and display new owners.
    sleep 500; // Slow down script execution slightly.
    if( agitcheck() )
        donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
    sleep 7000;
    announce "[" + strcharinfo(0) + "] conquered [" + getcastlename(strnpcinfo(2)) + "] castle for [" + getguildName([email protected]) + "] guild!",bc_all|bc_woe;
    end;

 

After @reloadscript, the name of who conquered the castle does not appear. following error appears in the emulador

" Buildin_strcharinfo: Fatal error ! Player not Attached. 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Print - Here is the image of the error.

The error is happening when i add this to the file .....

It would be the name of who broke the clastle.

 

 

Quote

[" + strcharinfo(0) + "]

I tried to add too

 

Quote

[" +strcharinfo(0)+ "] , ["+strcharinfo(0)+"] , 

[ "[email protected]$+" ]

I followed several topics

 

 

 

Link to comment
Share on other sites

  • 0

Keep sleep instead of sleep2 and just set the [email protected]$ before the announce line.
did you add this line?

set [email protected]$, strcharinfo(0);
	set [email protected]$, strcharinfo(0);  ///THIS IS THE NEW LINE ADDED
    // 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 [ "[email protected]$+" ] of the [" + getguildName([email protected]) + "] guild.",bc_all; // THIS NEW ANNOUNCER
    end;

This was mine, and worked..

Edited by BigBurrito
  • MVP 1
Link to comment
Share on other sites

  • 0
20 minutes ago, BigBurrito said:
	set [email protected]$, strcharinfo(0);  ///THIS IS THE NEW LINE ADDED
    // 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 [ "[email protected]$+" ] of the [" + getguildName([email protected]) + "] guild.",bc_all; // THIS NEW ANNOUNCER
    end;

This was mine, and worked..

 

Thank you very much, saved my day hahaha, Like Like Like Thank you <3
  • Love 1
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...