Jump to content
  • 0
Baps

Problem with script_rid2sd: fatal error ! player not attached!

Question

Hi everyone,

 

Sorry to ask some help but I haven't solution here... I try many possibilities but i can't find the mistake in this script... So if you can help me, I'll appreciat that !

 

http://pastebin.com/pqBJ93LE

 

On map-server.bat :

 

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Function: mes (1 parameter):

[Debug]: Data: string value="[Healer]"

[Debug]: Source (NPC): Healer#uni (invisible/not on a map)

 

What I want it's on normal days i have de callsub S_Healer and on WoE days, the callsub S_HealerWoE. But i try with OnAgitStart/End but I still have this problem. I read that is a problem with a RID but i don't very understand what it is. I search on the internet and on script_commands.txt but i don't understand everything.

So if you fix this problem, please explain to me where it comes from and what is exactly RID.

 

Best !

 

Baps

Edited by Baps

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Remove

if ((gettime(4) == 3 && gettime(3) == 21) || (gettime (4) == 6 && gettime(3) == 21)){ //Sub Routine S_HealerWoE si Mercredi ou Samedi 21h
            callsub S_HealerWoE;
            if ((gettime(4) == 3 && gettime(3) == 23) || (gettime (4) == 6 && gettime(3) == 23)){ //Sub Routine S_Healer si Mercredi ou Samedi 23h
                callsub S_Healer;
            }
        }
        else { //Sub Routine jour normaux
            callsub S_Healer;
        }
And insert the same code after

-   script  Healer#uni  -1,{

(And an 'end;' after those statement)

Share this post


Link to post
Share on other sites
  • 0

Ok thx Dastgir it works ! But can you explain to me what is the RID and why i had this error ?

I check and I put OnAgitStart on this script, the error comes back. Why ?

Share this post


Link to post
Share on other sites
  • 0

Rid means player.

In your script, the OnInit was calling labels which needed player attached

(mes/input/select needs player to be attached)

While OnInit dont have any players attached..

 

So for menu selection, you need to put that at start of npc and not on OnInit

Share this post


Link to post
Share on other sites
  • 0

Okay thank you but i have still the error if I put callsub in a label OnAgitStart at the beginning of the NPC. Why ? It's the same thing than with OnInit ?

Edited by Baps

Share this post


Link to post
Share on other sites
  • 0

Just change all the "close" at the end of all your label by "end".

 

Close is use to close a conversation box, so it need a player attached.

 

http://pastebin.com/fnG8UL7j

 

Just keep the close from the OnMyMobDeath label since it has a "mes" command.

 

Also, you shouldn't use a variable named such as $monster, that's too common, you may end having the same variable in an other script.

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

×
×
  • Create New...

Important Information

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