Jump to content
  • 0

buildin_strcharinfo: Fatal error ! Player not attached!


keoma

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   2
  • Joined:  08/24/17
  • Last Seen:  

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. 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

change sleep() into sleep2() to keep the player attached.

  • Love 1
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   2
  • Joined:  08/24/17
  • Last Seen:  

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

 

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.02
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/16/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   2
  • Joined:  08/24/17
  • Last Seen:  

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
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...