Jump to content
  • 0
olg

NPC Error

Question

Dear All,

I have a Custom NPC script but it has errors on map-server. All other NPC customs are working btw. Please see attached code error and screenshot:
 

[Error]: script error in file 'npc/custom/fakeplayercommand.txt' line 57 column 27
    parse_line: need ';'
    54: input .@dye;
    55: next;
    56: //Job,Sex,hairstyle,haircolor,weapon,shield,headtop,headmid,headbot,clothcolor
*   57: .@monster_gid = fakeplayer( .@map$, .@1st, .@2nd, .@Input$, .@job, .@sex, .@hairstyle, .@haircolor, .@weapon, .@shield, .@tophead, .@midhead, .@lowhead, .@dye, 0 );
        ~~~~~~~~~~~~~~~~~~~~~~~~~~^
    58: message strcharinfo(0), "Congratulations! Your customize Fake Player "+.@Input$+" has been created.";
    59: close;
    60:
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/fp.txt', line '7'. Stopping...
 * w1=BUILDIN_FUNC(fakeplayer)
 * w2=
 * w3=
 * w4=
[Error]: script error in file 'npc/custom/daily.txt' line 67 column 18
    parse_simpleexpr: unmatched ')'
    64:         sleep2 1000;
    65:         for(.@k = 0; .@k < 2; .@k++){
    66:                 if(!.@k){
*   67:                         if(!vip_status(VIP_STATUS_ACTIVE) && .VIPRewards$[#VIPRewardCon + 1] != ""){
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    68:                                 //message strcharinfo(0),"[Daily Rewards]: Become a VIP for more rewards.";
    69:                                 continue;
    70:                         } else if(#VIPRewardCon >= .@VIPSize){

THANK YOU! :)

NPC Error.png

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Since both commands are custom, my first guess is that these commands may not exist in Hercules. although this error seems a bit weird for that... but my first suggestion would be to make sure you have those script commands in Hercules (maybe try to run them in a separate script to make sure they exists and work)

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.