Jump to content
  • 0

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


chronick

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/20/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

Try to see your map_server console if theres an error..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

used <TAB> in first line ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/20/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

I recommend you to use this:

jobchange >job number<;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

Umm..just a small tip. Try L_therest instead of therest ( goto l_therest; ).

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
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.   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.

×
×
  • Create New...