Jump to content
  • 0

Quest with level


Question

2 answers to this question

Recommended Posts

Posted (edited)

Use the if statement, and the constant BaseLevel.

if(BaseLevel<150) {
mes "Don't talk to me. You are too weak";
close;
}
mes "Do you want to get cool items?";

The code above restricts players below Lvl 150 from accessing the rest of the script.

 

I suggest you check this link if you're new to scripting. Also, make sure to read the script_commands.txt in the doc folder to know all the functions used for scripting.

 

 

There are many quest scripts in the forum, just search for them. If it doesn't have a BaseLevel checker, you can just add the codes provided above at the top of the script (but below the function declarations). Then, remove the mes "Do you want...".

There are some scripts, however, that doesn't start from the top, and starts from a specific label. On that case, just add the BaseLevel checker on that label.

Edited by kalkalkal

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