Jump to content
  • 0

Quest with level


RingShadow

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  07/12/13
  • Last Seen:  

can you teach me for quest with minimum lvl sir ?

 

example : We can talk with NPC at Lvl 150

 

 Can You explain Me For That Script ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  07/12/13
  • Last Seen:  

Waaah Thankyou very much sir . my script work now . /thx /thx

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