insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Share Posted October 9, 2012 How do I set the syntax for an NPC who, for example, charges nothing below level 50, but 100*blvl zeny above 50? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 9, 2012 if( BaseLevel < 50 ){ mes "You are 50 Level below.."; mes "DONE."; }else if( Zeny < ( BaseLevel * 100 ) ){ mes "You need "+ ( BaseLevel * 100 )+" Zeny."; }else{ set Zeny,Zeny - ( BaseLevel * 100 ); mes "DONE."; } close; Quote Link to comment Share on other sites More sharing options...
insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Author Share Posted October 9, 2012 if( BaseLevel < 50 ){ mes "You are 50 Level below.."; mes "DONE."; }else if( Zeny < ( BaseLevel * 100 ) ){ mes "You need "+ ( BaseLevel * 100 )+" Zeny."; }else{ set Zeny,Zeny - ( BaseLevel * 100 ); mes "DONE."; } close; Thank you. Quote Link to comment Share on other sites More sharing options...
Question
insarius
How do I set the syntax for an NPC who, for example, charges nothing below level 50, but 100*blvl zeny above 50?
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.