Jump to content
  • 0

Novice Master


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Hello, I would like to put a function so that a Novice with under Job Lvl 10 can't begin a conversation with this NPC.

*Le Script*

new_zone04,100,29,6 script Novice Master 743,{
mes "[ ^ff0000Novice Master^000000 ]";
mes "Wie ich sehe hast du dein Training absolviert.";
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Möchtest du nun nach loltownwhatever gehen?";
switch(select("Ja","Nein")) {
case 1:
 Save("anymap", 38, 21);
warp "lol",38,22;
close;
case 2:
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
close; }
}

Edited by Nochii
Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

new_zone04,100,29,6 script Novice Master 743,{
if(JobLevel == 10)
{
mes "[ ^ff0000Novice Master^000000 ]";
mes "Wie ich sehe hast du dein Training absolviert.";
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "M?chtest du nun nach loltownwhatever gehen?";
switch(select("Ja:Nein")) 
{
case 1:
Save "anymap", 38, 21;
warp "lol",38,22;
close;
case 2:
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
close; 
}
}
}

Edit: For some reason codebox messes up my post.

Edited by Joseph
Codebox.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

It didn't work. I can speak to him with Jlvl 10 :/

Something wrong?

------EDIT-------

You edited the Script now it works x')

How I can add a mes so that the npc say that I must be Jlvl 10 ?

Edited by Nochii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Sorry about that, having troubles with the forums for some reason and you had a small mistake in your script that I just fixed. XP

And for your second question, here.

Edit: Geebus! I wish the code or codebox was working, it would help me greatly to keep track of those {}. XD


new_zone04,100,29,6 script Novice Master 743,{
if(JobLevel == 10)
{
mes "[ ^ff0000Novice Master^000000 ]";
mes "Wie ich sehe hast du dein Training absolviert.";
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "M?chtest du nun nach loltownwhatever gehen?";
switch(select("Ja:Nein")) 
{
case 1:
Save "anymap", 38, 21;
warp "lol",38,22;
close;
case 2:
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
close; 
}
else
{
mes "[ ^ff0000Novice Master^000000 ]";
mes "Not job level 10 text here.";
close;
}
}
} 

Edited by Joseph
Codebox again. :(
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Yes, I realized it xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

So, is the script working alright now?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

No, it didn't work ;O

mapserver Error messages:

[Error]: Missing 2 right curlys at file 'npc/my/Novi4.txt', line '26'.
[Error]:
script error on npc/my/Novi4.txt line 21
parse_line: expect command, missing function name or calling undeclared function
16 : next;
17 : mes "[ ^ff0000Novice Master^000000 ]";
18 : mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
19 : close;
20 : }
*   21 : 'e'lse
22 : {
23 : mes "[ ^ff0000Novice Master^000000 ]";
24 : mes "Du ben÷tigst ^ff0000Job Level^000000 10 um das Training abzuschließen.";
25 : close;
26 : }
[Error]:
script error on npc/my/Novi4.txt line 21
parse_line: expect command, missing function name or calling undeclared function
16 : next;
17 :		mes "[ ^ff0000Novice Master^000000 ]";
18 :		mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
19 : close;
20 : }
*   21 : 'e'lse
22 : {
23 :		mes "[ ^ff0000Novice Master^000000 ]";
24 :		mes "Du ben÷tigst ^ff0000Job Level^000000 10 um das Training abzuschließen.";
25 : close;
26 : }

Edited by Nochii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

If you want dialogue, edit:

 //do whatever 


new_zone04,100,29,6 script Novice Master 743,{
if (Class == Job_Novice && JovLevel < 10) {
//do whatever
end;
}
mes "[ ^ff0000Novice Master^000000 ]";
mes "Wie ich sehe hast du dein Training absolviert.";
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "M?chtest du nun nach loltownwhatever gehen?";
switch(select("Ja","Nein")) {
case 1:
Save("anymap", 38, 21);
warp "lol",38,22;
close;
case 2:
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
close;
}
}

Edited by Joseph
JobLevel D:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Just how do you guys make codebox work? When I try it, it gives me all the text color codes. DX

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Just how do you guys make codebox work? When I try it, it gives me all the text color codes. DX

Write [ then CODEBOX then ] then your sentence blah then [ then / then CODEBOX then ]

Safe tut for idiots xDD

Ok now my problem:

screensealeddragonro000.jpg

The NPC didn't speak more then this .. I used your script Joseph

No Close or Next .....

EDIT

Ok Joseph you made a problem in the script watch here:

if (Class == Job_Novice && NoviceJovLevel < 10) { // JoV Level? 
//do whatever
end;
}

But it is still not working ..

Edited by Nochii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Oops. Sorry.

Check my previous post.

If you're using dialogue then change:

end;

to

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Finally I made it x')

*Le Script*

new_zone04,100,29,6 script Novice Master 743,{
if (Class == Job_Novice && JobLevel < 10) {
mes "[ ^ff0000Novice Master^000000 ]";
mes "Du benötigst Job Level 10 um das Training abzuschließen.";
close;
}
mes "[ ^ff0000Novice Master^000000 ]";
mes "Wie ich sehe hast du dein Training absolviert.";
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Möchtest du nun nach BLA gehen?";
switch(select("Ja","Nein")) {
case 1:
Save("BLA", 38, 21);
warp "BLA",38,22;
close;
case 2:
next;
mes "[ ^ff0000Novice Master^000000 ]";
mes "Komm wieder wenn du bereit bist in die Stadt zu gehen.";
close;
}
}

PS: Joseph, you have not corrected the error "JovLevel" ^-^'

Edited by Nochii
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...