RingShadow Posted November 24, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 17 Reputation: 1 Joined: 07/12/13 Last Seen: August 10, 2018 Share 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 Link to comment Share on other sites More sharing options...
Nerfwood Posted November 24, 2014 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 104 Reputation: 27 Joined: 12/05/13 Last Seen: August 26, 2015 Share 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 Link to comment Share on other sites More sharing options...
RingShadow Posted November 28, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 17 Reputation: 1 Joined: 07/12/13 Last Seen: August 10, 2018 Author Share Posted November 28, 2014 Waaah Thankyou very much sir . my script work now . /thx Quote Link to comment Share on other sites More sharing options...
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 ?
Link to comment
Share on other sites
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.