Ragnar Lothbrok Posted September 3, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted September 3, 2012 (edited) i want my script detect the level of the player, if the character is not yet lvl 99 it will not get the items or the conversation will not continue...thanks in advance if(BaseLevel <=98 ){ mes "GTFU"; close; } Edited September 3, 2012 by arnie2302 Quote Link to comment Share on other sites More sharing options...
Yahiko Posted September 3, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 81 Reputation: 14 Joined: 08/17/12 Last Seen: April 19, 2013 Share Posted September 3, 2012 (edited) If player lvl 98 , auto close can't view the NPC message after. if(BaseLevel < 99) { // this is closing mes "this is player lvl 99 can view" close; } Or if you want add mes "GTFU" , here if(BaseLevel < 99) goto notlvl; mes "this is player lvl 99 can view" close; notlvl: mes "GTFU"; close; } Edited September 3, 2012 by Yahiko Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 3, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 3, 2012 (edited) thanks sir, what if want also to detect a item in his inventory? Edited September 3, 2012 by arnie2302 Quote Link to comment Share on other sites More sharing options...
Yahiko Posted September 3, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 81 Reputation: 14 Joined: 08/17/12 Last Seen: April 19, 2013 Share Posted September 3, 2012 (edited) Multiple item if(countitem(7512)<2 || countitem(7540)<2) goto notenog; mes "Welcome"; close; notenog: mes "You don't have the items"; close; } For 1 item only if(countitem(7512)<2) goto notenog; mes "Welcome"; close; notenog: mes "You don't have the items"; close; } Edited September 3, 2012 by Yahiko Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 3, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 3, 2012 thanks alot sir Yahiko! Quote Link to comment Share on other sites More sharing options...
Question
Ragnar Lothbrok
i want my script detect the level of the player, if the character is not yet lvl 99 it will not get the items or the conversation will not continue...thanks in advance
if(BaseLevel <=98 ){
mes "GTFU";
close;
}
Edited by arnie2302Link to comment
Share on other sites
4 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.