megablox Posted May 21, 2012 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
Emistry Posted May 21, 2012 Posted May 21, 2012 http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/ LOL..what your problems...? =='' Quote
Emistry Posted May 22, 2012 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
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 megablox4 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.