Namaste Posted May 1, 2013 Share Posted May 1, 2013 How to setup prices depending on base lvl or job in toasty warper? Can someone make code for me with differentiation? For example: free for < 30lvl 1000zeny for 30<lvl<60 2k for 60<lvl<80 Quote Link to comment Share on other sites More sharing options...
Jarek Posted May 3, 2013 Share Posted May 3, 2013 1) usercountreplace set [email protected]$, [email protected]$ + (([email protected])?([email protected]$ +((.showNodeUserCount)?(" [^0000FF" + [email protected] + "^000000]"):"")):""); with set [email protected]$, [email protected]$ + (([email protected])?([email protected]$ +((.showNodeUserCount && (getgmlevel()==99))?(" [^0000FF" + [email protected] + "^000000]"):"")):""); 2)zenyreplace set Zeny, Zeny - [email protected]; with set @price, 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3); if (Zeny<@price){ mes "Not enough Zeny"; close; } set Zeny, Zeny - @price; P.S.: Namaste, если еще будут вопросы по теме - пиши сразу в личку (= Quote Link to comment Share on other sites More sharing options...
Jarek Posted May 1, 2013 Share Posted May 1, 2013 @price = 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3); if (Zeny<@price) { mes "not enough Zeny"; close; } Zeny -= @price;free for < 30lvl1k zeny for 30<lvl<60 2k for 60<lvl<80 3k for higher Quote Link to comment Share on other sites More sharing options...
Namaste Posted May 1, 2013 Author Share Posted May 1, 2013 (edited) @price = 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3); if (Zeny<@price) { mes "not enough Zeny"; close; } Zeny -= @price;free for < 30lvl1k zeny for 30<lvl<60 2k for 60<lvl<80 3k for higher Thanks a lot ! How to insert this code in toasty warper, be patient, say please. (I understand rA scripting syntax very very small, perhabs it need be function or smth. else...i don't know where insert function, and how to use it in toasty syntax) And How to disable to see count of players on map by players but enables for GMs? Edited May 1, 2013 by Namaste Quote Link to comment Share on other sites More sharing options...
Anakid Posted May 2, 2013 Share Posted May 2, 2013 And How to disable to see count of players on map by players but enables for GMs? if( getgmlevel() >= 5 ) { mes "Users on the Map ( " + getmapusers("prontera") + " )"; Quote Link to comment Share on other sites More sharing options...
Namaste Posted May 3, 2013 Author Share Posted May 3, 2013 And How to disable to see count of players on map by players but enables for GMs? if( getgmlevel() >= 5 ) { mes "Users on the Map ( " + getmapusers("prontera") + " )"; I'm talking about modification toastwarper132, how to change it, not new script Quote Link to comment Share on other sites More sharing options...
Namaste Posted May 3, 2013 Author Share Posted May 3, 2013 Thanks a lot ! Спасибо огроменное ! Quote Link to comment Share on other sites More sharing options...
How to setup prices depending on base lvl or job in toasty warper? Can
someone make code for me with differentiation?
For example:
free for < 30lvl
1000zeny for 30<lvl<60
2k for 60<lvl<80
Link to comment
Share on other sites