Sallycantdance Posted November 1, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 17 hours ago Share Posted November 1, 2023 hello i would like to ask hUniversalRental.txtow to add payment for this rental npc thank you in advance Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted November 2, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted November 2, 2023 //===== eAthena Script ======================================= //= Breeder //===== By: ================================================== //= Ace //===== Current Version: ===================================== //= 1.2 //===== Compatible With: ===================================== //= rAthena SVN 15400 and up. //= Client that supports new mounts. //===== Description: ========================================= //= Known as "Universal Rental NPC" //= Let's a player rent a pecopeco, falcon, cart, warg //= or ride a dragon, gryphon, and mado. //===== Changelog: =========================================== //= 1.1 Added Peco peco option, forgot to. //= Changed KN_RIDING to RK_DRAGONTRAINING //= for renting dragons. //= 1.2 Added restrictions for renting falcons and wargs. //= Added Warg Mastery skill requirement. //===== Additional Comments: ================================= //= No bugs found so far. //= Please report bugs to me([email protected]) //============================================================ - script gbreeder 726,{ mes "^FF0000Universal Rental NPC^000000"; mes "Greetings " + strcharinfo(0) + "!"; mes "I provide you with the service to "; mes "rent a cart or animal companion."; mes "The price for this service is " + .service_fee + "z."; mes "How may I help you today?"; next; if(select("Rental Services:Cancel") == 2) { mes "^FF0000Universal Rental NPC^000000"; mes "Alright, come again!"; close; } if(.service_fee > Zeny) { mes "^FF0000Universal Rental NPC^000000"; mes "Sadly you don't have enoug money."; mes "Please come back when you have it."; close; } mes "^FF0000Universal Rental NPC^000000"; mes "Please select from the items below:"; switch(select("PecoPeco:Cart:Falcon")) { case 1: // Pecopeco if(checkriding() || getskilllv("KN_RIDING")) { mes "Sorry, please make sure that you have the required job and skill, also not riding one."; close; } setriding(); mes "There you go, enjoy your Peco Peco!"; close; case 2: // Cart if(checkcart() || getskilllv("MC_PUSHCART")) { mes "Sorry, please make sure that you have the required job and skill, also not having a cart."; close; } setcart(); mes "There you go, enjoy your cart!"; close; case 3: // Falcon if(BaseClass != Job_Archer || checkfalcon() && getskilllv("HT_FALCON")) { mes "Sorry, please make sure that you have the required job and skill, also not having a falcon."; close; } if((Class == Job_Ranger || Class == Job_Ranger_T) && checkriding()) { mes "Sorry, You can't rent a falcon while having a warg with you."; close; } setfalcon(); mes "There you go, have fun with your falcon!"; close; } OnTimer0050: showscript("Universal Rental", getnpcid(0)); initnpctimer(); end; OnInit: .service_fee = 500; initnpctimer(); end; } //===== Duplicates: ========================================== //payon,140,222,5 duplicate(gbreeder) Universal Rental NPC#1 726 payon,151,167,5 duplicate(gbreeder) Universal Rental NPC#1 726 //============================================================ eclage,116,37,5 duplicate(gbreeder) Universal Rental NPC#100 726 bg_lobby,60,42,4 duplicate(gbreeder) Universal Rental NPC#1123 726 Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
hello i would like to ask hUniversalRental.txtow to add payment for this rental npc thank you in advance
Link to comment
Share on other sites
1 answer 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.