Jump to content
  • 0

Question

Posted

Hello Guys! can u help me with this Exception "script"

This is my present script in my server.

if (Class != 4108) goto L_cant;

as for my own understanding if the NPC detects that you are in that job it will decline you!

but can u guys tell/teach me how to except novice in that script?

5 answers to this question

Recommended Posts

Posted

if(Class != 4108) goto L_cant; means only Class "Baby Shadow Chaser" can enter the event otherwise it goes directly to L_cant;

should be: if(Class!=0) goto L_cant; replace 4108 to 0

or try this: if(Class != 4108 || Class != 0)

Posted (edited)

ohh btw this is my script

 prontera,108,154,5 script Spartan's Trainer 827,{



if ((Class == 7) || (Class == 14)) goto Lretrain;
if (Class != 4108) goto L_cant;
mes "[spartan's Trainer]";
mes "Hello [" + strcharinfo(0) + "], so you'd like to join in the SPARTAN EVENT?";
mes "Well, Better prepare!";
next;

if(Class == Job_Novice && JobLevel == 10 && SkillPoint == 0) {

   mes "[spartan's Trainer]";
   mes "So you would like to be Spartan?";
   next;
   menu "Yes",-,"No",L_End;



jobchange Job_Knight;
getitem 2237,1;
getitem 1404,1;
set BaseLevel, 1;
savepoint "prontera",156,191;

next;
warp "prontera",156,191;
close;
}

L_cant:
mes "[spartan's Trainer]";
mes "Sorry [" + strcharinfo(0) + "] but I only Entertain Weak People .";
close;

LLretrain:
mes "[spartan's Trainer]";
mes "Sorry [" + strcharinfo(0) + "] I think you are already Trained.";
close;

L_End:
   mes "[spartan's Trainer]";
mes "I think you are a Gay [" + strcharinfo(0) + "]!"; 
   close;
   }

- if (Class != 4108) goto L_cant;

+ if (Class != 0) goto L_cant;

0 = novice

4108 = baby shadow chaser

if 0 why goto cant?

becuase my paln is if a character is a novice he will change job it!

Edited by karazu

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...