megablox Posted May 21, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Share Posted May 21, 2012 (edited) Could someone fix this script for me please? I have attached it, so you can see it with tabbings. The NPC doesn't load up, it is meant to be a mount giver. alberta,185,146,5 script Rental Services 646,{ L_menu: sName$ = "[^FF0000Rental Services^000000]"; sChar$ = "^0000FF"+strcharinfo(0) +"^000000"; if (Class == Job_Novice) { mes sName$; mes "Oi, "+sChar$+"! Go away, I can't help you."; } else { mes sName$; mes "Hey there, "+ sChar$ +". Need a mount?"; next; switch(select("Yeah, I need one.:I'm sorry, no.")) { case 1: mes sName$; mes "Okay, give me a second: I'll try to get your mount here!"; if( BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON") > 0 ) { setfalcon; goto L_bye; } else { goto L_err; } if( (BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART") > 0 ) { setcart; goto L_bye; } else { goto L_err; } if (Class == Job_Rune_Knight || Class == Job_Rune_Knight_H || Class == Job_Baby_Rune ) { if (!getskilllv("KN_RIDING") > 0 && checkriding() == 0) { setdragon; goto L_bye; } } else { goto L_err; } if (Class == Job_Royal_Guard || Class == Job_Royal_Guard_H || Class == Job_Baby_Guard) { if (!getskilllv("KN_RIDING") > 0 && checkriding() == 0) { setriding; goto L_bye; } else { goto L_err; } if (Class == 4008 || Class == 4015 || Class == 4030 || Class == 4037) { if (!getskilllv("RIDING") > 0 && checkriding() == 0) { atcommand "@mount"; goto L_bye; } else { goto L_err; } if( (Class == Job_Mechanic || Class == Job_Mechanic_T)) && checkriding() == 0 { setriding; goto L_bye; } else { goto L_err; } if ((Class >= 4054 && Class <= 4079) && (Class != 4056 && Class != 4062)) && checkriding() == 0 { atcommand "@newmount"; goto L_bye; } else { goto L_err; } case 2: close; } } L_bye: mes sName$; mes "Here you go, have a nice day!"; close; L_err: mes sName$; mes "I can't give you a mount, I'm really sorry."; goto L_menu; } rentals.txt Edited May 21, 2012 by megablox Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted May 21, 2012 http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/ LOL..what your problems...? =='' Quote Link to comment Share on other sites More sharing options...
megablox Posted May 21, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Author Share Posted May 21, 2012 Sorry, edited my post. Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted May 22, 2012 erm..try this ? http://upaste.me/88473946eb3e20f not really sure did it suit with what you want.. coz in your script...... alot syntax are not found in rAthena ? or just you add it at your own previously ? setdragon ?? O.O Anyway...in your script...if i was right...it is just the curley bracket problems.... there is so many curley bracket in your script which make you missed some of the bracket..... however, there could be other problem also... Quote Link to comment Share on other sites More sharing options...
megablox Posted May 22, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Author Share Posted May 22, 2012 Yeah, that worked. Thanks Quote Link to comment Share on other sites More sharing options...
Question
megablox
Could someone fix this script for me please? I have attached it, so you can see it with tabbings.
The NPC doesn't load up, it is meant to be a mount giver.
rentals.txt
Edited by megabloxLink 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.