Ragnar Lothbrok Posted September 3, 2012 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
Yahiko Posted September 3, 2012 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
Ragnar Lothbrok Posted September 3, 2012 Author 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
Yahiko Posted September 3, 2012 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
Ragnar Lothbrok Posted September 3, 2012 Author Posted September 3, 2012 thanks alot sir Yahiko! Quote
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 arnie23024 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.