Jump to content
  • 0
kohjuliana

Add level requirement

Question

Hello, I need help with my script. I am planning on making an npc with level requirement. For example the location is izlu2dun and only with level 85~90 are able to enter. 

Thank you in advance :")

prontera,156,180,3    script    test    833,{
    mes "[Bathory]";
    mes "Eheeheeheehee! The spotlight is on Glast Heim this week, so I'm ferrying people there for a mere 1,000z!";
    next;
    mes "[Bathory]";
    mes "How about it? Want to take a ride on a beautiful Bathory's broom?";
    next;
    switch(select("Prepare for Takeoff!:No thanks.")) {
    case 1:
        if (BaseLevel < 85) {
            mes "[Bathory]";
            mes "Come on dearie...";
            mes "You are already mature enough to enter the portal.";
            close;
        }
        mes "[Bathory]";
        mes "Alright, hold on tight!";
        close2;
        warp "izlu2dun",50,133;
        end;
    case 2:
        mes "["+strcharinfo(0)+"]";
        mes "No thanks, maybe later.";
        close;
    }
}

 

Edited by Patskie
code

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You mean like this?

prontera,156,180,3    script    test    833,{
    mes "[Bathory]";
    mes "Eheeheeheehee! The spotlight is on Glast Heim this week, so I'm ferrying people there for a mere 1,000z!";
    next;
    mes "[Bathory]";
    mes "How about it? Want to take a ride on a beautiful Bathory's broom?";
    next;
    switch(select("Prepare for Takeoff!:No thanks.")) {
    case 1:
        if (BaseLevel < 85  || BaseLevel > 90) {
            mes "[Bathory]";
            mes "Come on dearie...";
            mes "You must be 85~90 to enter.";
            close;
        }
        mes "[Bathory]";
        mes "Alright, hold on tight!";
        close2;
        warp "izlu2dun",50,133;
        end;
    case 2:
        mes "["+strcharinfo(0)+"]";
        mes "No thanks, maybe later.";
        close;
    }
}

 

Changes

 if (BaseLevel < 85) {

to

if (BaseLevel < 85  || BaseLevel > 90) {

 

Edited by cook1e
  • Love 1

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.