I've been away from Ragnarok Online for a very long time, I have recently picked it up and I have started NPC Scripting again.
I am working on a daily reward script that uses function and I am getting this error: invisible/not on a map error
I have managed to re-produce the error with this test script:
// Main Script- script L_Test -1,{ // When script starts OnInit: // Configuration set .npc$,"[ Test NPC ] : "; end; // When player logins into game OnPCLoginEvent: dispbottom(.npc$ + callfunc(L_SayHello, strcharinfo(0))); end; }function script L_SayHello { set .playerName$,getarg(0); return "Hello "+ .playerName$;}
This script structure is identical to my real script. So when I start the server and login, I get the following error in map server:
[Warning]: Unexpected type for argument 1. Expected string.[Debug]: Data: variable name='L_SayHello' index=0[Debug]: Function: callfunc[Debug]: Source (NPC): L_Test (invisible/not on a map)[Error]: script:callfunc: function not found! [0][Debug]: Source (NPC): L_Test (invisible/not on a map)
Hi everyone,
I've been away from Ragnarok Online for a very long time, I have recently picked it up and I have started NPC Scripting again.
I am working on a daily reward script that uses function and I am getting this error: invisible/not on a map error
I have managed to re-produce the error with this test script:
This script structure is identical to my real script. So when I start the server and login, I get the following error in map server:
Any idea what this error is about?
Edited by latheesanShare this post
Link to post
Share on other sites