Jump to content
  • 0

Can you tell me what's wrong with my script please?


Question

Posted

My NPC won't show up

prontera,154,186,6 script Job Master 808,{
mes "[Job Master]";

mes "Which Job Would you like?";
menu "Super Novice",L_super,"Ninja",L_ninja,"Soul Linker",L_soul,"Taekwon Master",L_master,"Gunslinger",L_gun,"Lord Knight",L_lk,"Paladin",L_pally,"High Priest",L_pri,"Champion",L_champ,"High Wizard",L_wiz,"Professor",L_pro,"Whitesmith",L_white,"Stalker",L_stalk,"Sniper",L_sni,"Creator",L_cre,"Assassin Cross",L_ass,"Clown/Gypsy",L_clown;
L_clown:
charcommand strcharinfo(0)+":#job 4021 "+@player$+";
goto therest;
end;
L_ass:
charcommand strcharinfo(0)+":#job 4013 "+@player$+";
goto therest;
end;
L_cre:
charcommand strcharinfo(0)+":#job 4019 "+@player$+";
goto therest;
end;
L_sni:
charcommand strcharinfo(0)+":#job 4012 "+@player$+";
goto therest;
end;
L_stalk:
charcommand strcharinfo(0)+":#job 4018 "+@player$+";
goto therest;
end;
L_white:
charcommand strcharinfo(0)+":#job 4011 "+@player$+";
goto therest;
end;
L_pro:
charcommand strcharinfo(0)+":#job 4017 "+@player$+";
goto therest;
end;
L_wiz:
charcommand strcharinfo(0)+":#job 4010 "+@player$+";
goto therest;
end;
L_champ:
charcommand strcharinfo(0)+":#job 4016 "+@player$+";
goto therest;
end;
L_pri:
charcommand strcharinfo(0)+":#job 4009 "+@player$+";
goto therest;
end;
L_pally:
charcommand strcharinfo(0)+":#job 4015 "+@player$+";
goto therest;
end;
L_lk:
charcommand strcharinfo(0)+":#job 4008 "+@player$+";
goto therest;
end;
L_gun:
charcommand strcharinfo(0)+":#job 24 "+@player$+";
goto therest;
end;
L_master:
charcommand strcharinfo(0)+":#job 4047 "+@player$+";
goto therest;
end;
L_soul:
charcommand strcharinfo(0)+":#job 4049 "+@player$+";
goto therest;
end;
L_ninja:
charcommand strcharinfo(0)+":#job 25 "+@player$+";
goto therest;
end;
L_super:
charcommand strcharinfo(0)+":#job 23 "+@player$+";
goto therest;
end;
therest:
charcommand strcharinfo(0)+":#blvl 500 "+@player$+";
charcommand strcharinfo(0)+":#jlvl 120 "+@player$+";
charcommand strcharinfo(0)+":#allskill "+@player$+";
end;
}

7 answers to this question

Recommended Posts

Posted

here try this one, i hope this works :)

your codes have errors

[Error]:  Loading NPC file: npc/dro/jobmaster.txt
script error on npc/dro/jobmaster.txt line 7
   Unexpected newline at string.
 2 :
 3 : mes "Which Job Would you like?";
 4 : menu "Super Novice",L_super,"Ninja",L_ninja,"Soul Linker",L_soul,"Taekw
on Master",L_master,"Gunslinger",L_gun,"Lord Knight",L_lk,"Paladin",L_pally,"Hig
h Priest",L_pri,"Champion",L_champ,"High Wizard",L_wiz,"Professor",L_pro,"Whites
mith",L_white,"Stalker",L_stalk,"Sniper",L_sni,"Creator",L_cre,"Assassin Cross",
L_ass,"Clown/Gypsy",L_clown;
 5 : L_clown:
 6 : charcommand strcharinfo(0)+":#job 4021 "+@player$+";
*    7 : goto therest;
 8 : end;
 9 : L_ass:
   10 : charcommand strcharinfo(0)+":#job 4013 "+@player$+";
   11 : goto therest;
   12 : end;

used <TAB> in first line ?

yes I'm using tab in the firstline.

Posted

change

charcommand strcharinfo(0)+":#job 4021 "+@player$+";

into

charcommand strcharinfo(0)+":#job 4021 "+@player$;

and what Tr0n said is true...use jobchange command is better than using charcommand to change a character's job.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...