RingShadow Posted November 24, 2014 Posted November 24, 2014 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 ? Quote
Nerfwood Posted November 24, 2014 Posted November 24, 2014 (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 November 24, 2014 by kalkalkal Quote
RingShadow Posted November 28, 2014 Author Posted November 28, 2014 Waaah Thankyou very much sir . my script work now . /thx Quote
Question
RingShadow
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 ?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.