Search the Community
Showing results for tags 'invisible'.
Found 1 result
-
NPC Script with Functions not working - invisible/not on a map error
latheesan posted a question in Script Support
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: // 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) Any idea what this error is about?