Jump to content
  • 0

buildin_strcharinfo: Fatal error ! Player not attached!


Question

Posted

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(.@GID) + "] 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(.@GID) + "] 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. 

 

4 answers to this question

Recommended Posts

  • 0
Posted

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)+"] , 


[ "+.@breaker$+" ]

I followed several topics

 

 

 

  • 0
Posted (edited)

Keep sleep instead of sleep2 and just set the .@breaker$ before the announce line.
did you add this line?

set .@breaker$, strcharinfo(0);
	set .@breaker$, 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 [ "+.@breaker$+" ] of the [" + getguildName(.@GID) + "] guild.",bc_all; // THIS NEW ANNOUNCER
    end;

This was mine, and worked..

Edited by BigBurrito
  • MVP 1
  • 0
Posted
20 minutes ago, BigBurrito said:

	set .@breaker$, 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 [ "+.@breaker$+" ] of the [" + getguildName(.@GID) + "] 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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...