Problem with script_rid2sd: fatal error ! player not attached!

Baps

New member
Messages
43
Points
0
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

 
Last edited by a moderator:
find this line

.delay2 = 120;    // Nombre en secondes de delay pour BaseLevel > 70

then insert after

end;

OnTouch:

 
Hi, 

Thanks for the reply but apparently it didn't solved the problem ...
default_sad.png


 
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
Code:
-   script  Healer#uni  -1,{
(And an 'end;' after those statement)

 
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 ?

 
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

 
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 ?

 
Last edited by a moderator:
Same problem..

http://pastebin.com/7i5d2P7z

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

[Debug]: Function: close (no parameters)

[Debug]: Source (NPC): Poring (invisible/not on a map)

event working ok

default_mellow.png


 
Last edited by a moderator:
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.

 
Back
Top