diff options
Diffstat (limited to 'npc/other/mc_cameri')
-rw-r--r-- | npc/other/mc_cameri/bank.txt | 2794 | ||||
-rw-r--r-- | npc/other/mc_cameri/heal.txt | 30 | ||||
-rw-r--r-- | npc/other/mc_cameri/jobchanger.txt | 18 | ||||
-rw-r--r-- | npc/other/mc_cameri/warper.txt | 418 |
4 files changed, 0 insertions, 3260 deletions
diff --git a/npc/other/mc_cameri/bank.txt b/npc/other/mc_cameri/bank.txt deleted file mode 100644 index 25074f4c7..000000000 --- a/npc/other/mc_cameri/bank.txt +++ /dev/null @@ -1,2794 +0,0 @@ -//======================================================================================== -// -»» OmniAthena Scripts ««- -// Copyright (c) 2004, Athena Advanced -// http://agelessanime.com/aaforums/ -// By MC_Cameri -// This Bank NPC doesn't need any items. -// It is useful for servers in which you -// lose zeny when you die. -// Also, if you have 1,000,000,000z this -// will be good to use. -//======================================================================================== -//0072FF (sky blue) -//FF7F01 (orange) - -prt_in.gat,165,141,4 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -izlude_in.gat,57,110,4 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -morocc_in.gat,142,64,3 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} -geffen_in.gat,77,169,2 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -//Fixed location for new payon -payon.gat,155,97,4 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -alberta_in.gat,187,26,2 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} -aldebaran.gat,144,120,4 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -xmas_in.gat,35,37,5 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -cmd_in01.gat,115,171,7 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -yuno_in01.gat,119,29,2 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -amatsu.gat,189,108,6 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -gonryun.gat,146,142,3 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -} - -um_in.gat,154,125,4 script Bank Manager 109,{ - set @tInterestRate, 2; //no decimals - set @tMaxAccZeny, 1000000000; //max zeny allowed in ^FF7F01Bank Account^000000 1,000,000,000=1 billion - set @tMaxZeny, 1000000000; //max zeny that a player can carry - set @tMinZeny, 100; //min zeny allowed or Bank Account is closed - set @tCreateZeny, 500; //zeny needed in order to create a Bank Account - set @tMinDeposit,100; //min zeny to deposit - set @tBeginningZeny, 100; //amount of zeny in Bank Account after creating - mes "^0072FF[Bank Manager]^000000"; - mes "Welcome to this office branch of Midgard's Bank."; - next; - if (vBankAccActive==1) goto AccMenu; - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have a ^FF7F01Bank Account^000000 yet, you must buy one."; - mes "It will cost you ^0000FF" + @tCreateZeny + "z^000000 to create it."; - next; - menu "^FF7F01Create Account.^000000",CreateAcc,"^FF7F01Information.^000000",BankInfo,"^FF7F01No thanks.^000000",NoCreateAcc; - BankInfo: - mes "^0072FF[Bank Manager]^000000"; - mes "Here are some points that you need to know:"; - mes "1. To create a ^FF7F01Bank Account^000000 you have to pay ^0000FF" + @tCreateZeny + "z^000000."; - mes "2. You will be charged ^0000FF" + @tInterestRate + " percent^000000 everytime you Deposit."; - mes "3. You must always have no less than ^0000FF" + @tMinZeny + "z^000000 on your ^FF7F01Bank Account^000000."; - next; - mes "4. You can save up to ^0000FF" + @tMaxAccZeny + "z^000000 in your bank account."; - mes "5. You will be able to access your ^FF7F01Bank Account^000000 in any town with a Bank Office."; - mes "6. You will start by having ^0000FF" + @tBeginningZeny + "z^000000 in your bank account."; - close; - CreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "First of all, you will have to have at least ^0000FF" + @tCreateZeny + "z^000000 with you."; - mes "Your account will start with ^0000FF" + @tBeginningZeny +"z^000000."; - mes "Are you sure you want to continue?"; - next; - menu "^FF7F01Sure.^000000",CreateAccCont,"^FF7F01Nah, it's ok.^000000",NoCreateAcc; - CreateAccCont: - if (@tCreateZeny > Zeny) goto CreateAccNoEnoughZeny; - set Zeny, Zeny - @tCreateZeny; - set vBankAccActive,1; - set vBankAccZeny, @tBeginningZeny; - set vBankAccLastZeny, @tBeginningZeny; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Congratulations, your ^FF7F01Bank Account^000000 is now created with ^0000FF" + vBankAccZeny + "z^000000."; - mes "You may now proceed to do any transactions."; - next; - goto AccMenu; - CreateAccNoEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Didn't I tell you to make sure you had enough zeny?"; - mes "You can't create it with just ^0000FF" + Zeny + "z^000000."; - mes "Come back when you get those ^0000FF" + @tCreateZeny + "z^000000..."; - next; - goto EndNPC; - NoCreateAcc: - mes "^0072FF[Bank Manager]^000000"; - mes "Come back when you change your mind!"; - next; - goto EndNPC; - AccMenu: - mes "^0072FF[Bank Manager]^000000"; - mes "Your current balance is ^0000FF" + vBankAccZeny +"z^000000."; - mes "What would you like to do now?"; - next; - menu "^FF7F01Deposit.^000000",AccDeposit,"^FF7F01Withdraw.^000000",AccWithdraw,"^FF7F01Bank Account Info.^000000",AccBalance,"^FF7F01Close Bank Account^000000",AccClose,"^FF7F01Cancel.^000000",EndNPC; - AccDeposit: - mes "^0072FF[Bank Manager]^000000"; - mes "It's always good to deposit every once in a while."; - mes "Be noticed that we charge a ^0000FF" + @tInterestRate + " percent ^000000 of interest rate in every deposit you make."; - mes "This means that to deposit ^0000FF100z^000000 you need to have pay us ^0000FF" + 100 * @tInterestRate / 100 + "z^000000."; - mes "How much are you willing to deposit?"; - next; - AccDepositInput: - input @tDeposit; - set @tDepositTax, @tDeposit * @tInterestRate / 100; - set @tDepositTotal, @tDeposit - @tDepositTax; - if (@tDeposit <= 0) goto AccDepositNoInput; - if (@tDeposit < @tMinDeposit) goto AccDepositNotEnoughInput; - if (@tDepositTotal > Zeny) goto AccDepositNotEnoughZeny; - set @tBankAccZenyTemp, vBankAccZeny + @tDepositTotal; - if (@tBankAccZenyTemp > @tMaxAccZeny) goto AccDepositOver; - if ((@tDeposit <= Zeny) && (@tBankAccZenyTemp <= @tMaxAccZeny)) goto AccDepositCont; - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, for some weird reason I couldn't deposit your money."; - next; - goto AccMenu; - AccDepositCont: - set Zeny, Zeny - @tDeposit; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, @tBankAccZenyTemp; - set vBankAccInterests, vBankAccInterests + @tDepositTax; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "^0000FF" + @tDeposit + "z^000000 substracted from your money (Taxes applied)."; - mes "^0000FF" + @tDepositTotal + "z^000000 successfully added to your ^FF7F01Bank Account^000000."; - next; - goto AccMenu; - AccDepositOver: - mes "^0072FF[Bank Manager]^000000"; - mes "There is a limit of ^0000FF" + @tMaxAccZeny + "z^000000 of how much zeny your ^FF7F01Bank Account^000000 can hold."; - mes "You can't deposit more than that, please try again."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You need to put more money in order to make a deposit."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "You must enter a value higher than ^0000FF" + @tMinDeposit + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccDepositNotEnoughZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "You don't have ^0000FF" + @tDepositTotal + "z^000000."; - mes "Remember that taxes are being applied."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccDepositInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdraw: - mes "^0072FF[Bank Manager]^000000"; - mes "This is the only transaction I don't like... you figure out why..."; - mes "You can't withdraw leaving less than ^0000FF" + @tMinZeny +"z^000000 in your ^FF7F01Bank Account^000000."; - mes "Your current balance is ^0000FF" + vBankAccZeny + "z^000000."; - mes "How much are you going to widthdraw?"; - next; - AccWithdrawInput: - input @tWithdraw; - set @tZenyLeft, vBankAccZeny - @tWithdraw; - set @tZenyTemp, Zeny + @tWithdraw; - if (@tWithdraw == 0) goto AccWithdrawNoInput; - if (@tZenyLeft < @tMinZeny) goto AccWithdrawMinZeny; - if (@tZenyTemp > @tMaxZeny) goto AccWithDrawOverCharZeny; - set Zeny, Zeny + @tWithdraw; - set vBankAccLastZeny, vBankAccZeny; - set vBankAccZeny, vBankAccZeny - @tWithdraw; - mes "^0072FF[Bank Manager]^000000"; - mes "Transaction completed successfully."; - mes "Thank you for using our services."; - next; - goto AccMenu; - AccWithdrawNoInput: - mes "^0072FF[Bank Manager]^000000"; - mes "In order to withdraw from the bank, you must withdraw more than 0 zeny."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithdrawMinZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "I'm sorry..."; - mes "You can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your ^FF7F01Bank Account^000000 must have ^0000FF" + @tMinZeny + "z^000000 left or more at all times."; - mes "In order to take all your money from the bank you must select Close Account in the Account Menu."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccWithDrawOverCharZeny: - mes "^0072FF[Bank Manager]^000000"; - mes "Sorry, but you can't withdraw ^0000FF" + @tWithdraw + "z^000000 because your Player can't carry more than ^0000FF" + @tMaxZeny + "z^000000."; - mes "Do you want to try again?"; - next; - menu "^FF7F01Yes, please.^000000",AccWithdrawInput,"^FF7F01No, thanks.^000000",AccMenu; - AccBalance: - mes "^0072FF[Bank Manager]^000000"; - mes "Account Status:"; - //shown in blue if the same or more, show in red if less than previous balance - if (vBankAccZeny >= vBankAccLastZeny) goto AccBalance2; - mes "Current Balance: ^FF0000" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance2: - mes "Current Balance: ^0000FF" + vBankAccZeny +"z^000000."; - goto AccBalance3; - AccBalance3: - mes "Previous Balance: ^0000FF" + vBankAccLastZeny +"z^000000."; - mes "Interest Rate: ^0000FF" + @tInterestRate + "%^000000."; - mes "Interests Payed: ^0000FF" + vBankAccInterests + "z^000000."; - next; - goto AccMenu; - AccClose: - mes "^0072FF[Bank Manager]^000000"; - mes "If you close your ^FF7F01Bank Account^000000, it means you eliminate it."; - mes "Of course, you will get all your money back."; - mes "Are you sure you want to close your ^FF7F01Bank Account^000000?"; - next; - menu "^FF7F01I don't want it anymore.^000000",AccCloseConfirm,"^FF7F01No, I'll keep it.^000000",AccCloseKeep; - AccCloseConfirm: - set vBankAccActive,0; - set Zeny, Zeny + vBankAccZeny; - set vBankAccZeny,0; - set vBankAccLastZeny,0; - set vBankAccInterests,0; - mes "^0072FF[Bank Manager]^000000"; - mes "Thanks for using our services, we hope you come back to visit us."; - mes "Here's your money."; - next; - goto EndNPC; - AccCloseKeep: - mes "^0072FF[Bank Manager]^000000"; - mes "Good choice, thanks for staying with us."; - next; - goto AccMenu; - EndNPC: - set @random,rand(4); - mes "^0072FF[Bank Manager]^000000"; - if (@random == 0) mes "Have a nice day!"; - if (@random == 1) mes "See you soon!"; - if (@random == 2) mes "See you next time!"; - if (@random == 3) mes "Come back soon!"; - close; -}
\ No newline at end of file diff --git a/npc/other/mc_cameri/heal.txt b/npc/other/mc_cameri/heal.txt deleted file mode 100644 index a3135f855..000000000 --- a/npc/other/mc_cameri/heal.txt +++ /dev/null @@ -1,30 +0,0 @@ -//===== eAthena Script ======================================= -//= Heal Npc -//===== By: ================================================== -//= MC Cameri -//===== Current Version: ===================================== -//= 1.0 -//===== Compatible With: ===================================== -//= eAthena 0.1+; -//===== Description: ========================================= -//= Poring Which Heals For Free -//===== Additional Comments: ================================= -//= You can use this one if you want simple one-click healing -//============================================================ - -prontera.gat,150,184,5 script Healring::Healring0 1002,{ - npctalk "Booing!"; - emotion 21; - percentheal 100,100; -} - -morocc.gat,159,96,5 duplicate(Healring0) Healring 1002 -geffen.gat,121,61,5 duplicate(Healring0) Healring 1002 -payon.gat,180,105,5 duplicate(Healring0) Healring 1002 -alberta.gat,185,144,5 duplicate(Healring0) Healring 1002 -aldebaran.gat,134,123,5 duplicate(Healring0) Healring 1002 -izlude.gat,125,118,5 duplicate(Healring0) Healring 1002 -xmas.gat,149,136,5 duplicate(Healring0) Healring 1002 -comodo.gat,188,162,5 duplicate(Healring0) Healring 1002 -amatsu.gat,200,80,5 duplicate(Healring0) Healring 1002 -gonryun.gat,164,130,5 duplicate(Healring0) Healring 1002
\ No newline at end of file diff --git a/npc/other/mc_cameri/jobchanger.txt b/npc/other/mc_cameri/jobchanger.txt deleted file mode 100644 index 0436b0a4f..000000000 --- a/npc/other/mc_cameri/jobchanger.txt +++ /dev/null @@ -1,18 +0,0 @@ -//===== eAthena Script ======================================= -//= Job Changer NPC -//===== By: ================================================== -//= MC Cameri -//===== Current Version: ===================================== -//= 1.0 -//===== Compatible With: ===================================== -//= eAthena 0.1+; -//===== Description: ========================================= -//= Job Changer NPC -//===== Additional Comments: ================================= -//= v1.0 - -//============================================================ - -prontera.gat,157,188,0 script Job Changer 730,{ - mes "[Job Advisor]"; - close; -}
\ No newline at end of file diff --git a/npc/other/mc_cameri/warper.txt b/npc/other/mc_cameri/warper.txt deleted file mode 100644 index 0d0a94cc0..000000000 --- a/npc/other/mc_cameri/warper.txt +++ /dev/null @@ -1,418 +0,0 @@ -//===== eAthena Script ======================================= -//= Warp NPC -//===== By: ================================================== -//= MC Cameri -//===== Current Version: ===================================== -//= 2.0 -//===== Compatible With: ===================================== -//= Any eAthena Version with duplicate; RO Ep6+ -//===== Description: ========================================= -//= Warp NPC with warp to almost everywhere that show how -//= many people are on each map -//===== Additional Comments: ================================= -//= Most of the code here has been taken from warper2.txt in -//= the folder /npc/other/. -//= Credits given to Someone(that's his nickname). -//= 2.0 Increased performance by removing variables. -//= -Fixed the memory problem. -//= 1.0 First Version, consumed a lot of memory, about 2MB. -//============================================================ - -- script Warp NPC::warpra 115,{ -// colors - set @red$,"^FF0000"; - set @reset$,"^000000"; - -// towns - set @towns, getmapusers("alberta.gat") + getmapusers("aldebaran.gat") - + getmapusers("amatsu.gat") + getmapusers("comodo.gat") + getmapusers("gonryun.gat") - + getmapusers("geffen.gat") + getmapusers("izlude.gat") + getmapusers("xmas.gat") - + getmapusers("morocc.gat") + getmapusers("niflheim.gat") + getmapusers("payon.gat") - + getmapusers("prontera.gat") + getmapusers("yuno.gat") + getmapusers("umbala.gat") - + getmapusers("valkyrie.gat") + getmapusers("louyang.gat"); -// town inns - set @towns, @towns + getmapusers("alberta_in.gat") + getmapusers("aldeba_in.gat") - + getmapusers("geffen_in.gat") + getmapusers("izlude_in.gat") + getmapusers("morocc_in.gat") - + getmapusers("prt_in.gat") + getmapusers("xmas_in.gat") + getmapusers("cmd_in01.gat") - + getmapusers("cmd_in02.gat") + getmapusers("yuno_in01.gat") + getmapusers("yuno_in02.gat") - + getmapusers("yuno_in03.gat") + getmapusers("yuno_in04.gat") + getmapusers("yuno_in05.gat") - + getmapusers("ama_in01.gat") + getmapusers("ama_in02.gat") + getmapusers("gon_in.gat") - + getmapusers("um_in.gat") + getmapusers("nif_in.gat") + getmapusers("lou_in01.gat") - + getmapusers("lou_in02.gat") + getmapusers("payon_in01.gat") + getmapusers("payon_in02.gat") - + getmapusers("payon_in03.gat"); -// dungeons - set @anthell, getmapusers("anthell01.gat") + getmapusers("anthell02.gat"); - set @beach, getmapusers("beach_dun.gat") + getmapusers("beach_dun2.gat") + getmapusers("beach_dun3.gat"); - set @byalan, getmapusers("iz_dun00.gat") + getmapusers("iz_dun01.gat") + getmapusers("iz_dun02.gat") + getmapusers("iz_dun03.gat") + getmapusers("iz_dun04.gat"); - set @clock, getmapusers("alde_dun01.gat") + getmapusers("alde_dun02.gat") + getmapusers("alde_dun03.gat") + getmapusers("alde_dun04.gat") + getmapusers("c_tower1.gat") + getmapusers("c_tower2.gat") + getmapusers("c_tower3.gat") + getmapusers("c_tower4.gat"); - set @coal, getmapusers("mjo_dun01.gat") + getmapusers("mjo_dun02.gat") + getmapusers("mjo_dun03.gat"); - set @culvert, getmapusers("prt_sewb1.gat") + getmapusers("prt_sewb2.gat") + getmapusers("prt_sewb3.gat") + getmapusers("prt_sewb4.gat"); - set @geffen, getmapusers("gef_dun00.gat") + getmapusers("gef_dun01.gat") + getmapusers("gef_dun02.gat") + getmapusers("gef_dun03.gat"); - set @glast, getmapusers("glast_01.gat") + getmapusers("gl_cas01.gat") + getmapusers("gl_cas02.gat") + getmapusers("gl_knt01.gat") + getmapusers("gl_knt02.gat") - + getmapusers("gl_chyard.gat") + getmapusers("gl_sew01.gat") + getmapusers("gl_sew02.gat") + getmapusers("gl_sew03.gat") + getmapusers("gl_sew04.gat") + getmapusers("gl_church.gat") - + getmapusers("gl_step.gat") + getmapusers("gl_dun01.gat") + getmapusers("gl_dun02.gat") + getmapusers("gl_prison.gat") + getmapusers("gl_prison1.gat"); - set @hidden, getmapusers("prt_maze01.gat") + getmapusers("prt_maze02.gat") + getmapusers("prt_maze03.gat"); - set @magma, getmapusers("mag_dun01.gat") + getmapusers("mag_dun02.gat"); - set @orc, getmapusers("orcsdun01.gat") + getmapusers("orcsdun02.gat"); - set @payond, getmapusers("pay_dun00.gat") + getmapusers("pay_dun01.gat") + getmapusers("pay_dun02.gat") + getmapusers("pay_dun03.gat") + getmapusers("pay_dun04.gat"); - set @pyramids, getmapusers("moc_pryd01.gat") + getmapusers("moc_pryd02.gat") + getmapusers("moc_pryd03.gat") + getmapusers("moc_pryd04.gat") + getmapusers("moc_pryd05.gat") + getmapusers("moc_pryd06.gat"); - set @sphinx, getmapusers("in_sphinx1.gat") + getmapusers("in_sphinx2.gat") + getmapusers("in_sphinx3.gat") + getmapusers("in_sphinx4.gat") + getmapusers("in_sphinx5.gat"); - set @sunken, getmapusers("treasure01.gat") + getmapusers("treasure02.gat"); - set @toy, getmapusers("xmas_dun01.gat") + getmapusers("xmas_dun02.gat"); - set @turtle, getmapusers("tur_dun01.gat") + getmapusers("tur_dun02.gat") + getmapusers("tur_dun03.gat") + getmapusers("tur_dun04.gat"); - set @ama, getmapusers("ama_dun01.gat") + getmapusers("ama_dun02.gat") + getmapusers("ama_dun02.gat"); - set @gon, getmapusers("gon_dun01.gat") + getmapusers("gon_dun02.gat") + getmapusers("gon_dun03.gat"); - set @gefenia, getmapusers("gefenia01.gat") + getmapusers("gefenia02.gat") + getmapusers("gefenia03.gat") + getmapusers("gefenia04.gat"); - set @dungeons, @anthell + @beach + @dbyalan + @clock + @coal + @culvert + @geffen + @glast + @hidden - + @magma + @orc + @payond + @pyramids + @sphinx + @sunken + @toy + @turtle + @ama + @gon + @gefenia; - - mes "[Warp NPC]"; - mes "Hello, I can warp you to any Town and Dungeon! Were do you want to go?"; - next; - menu "Towns [" + @red$ + @towns + @reset$ + "]",town,"Dungeons [" + @red$ + @dungeons + @reset$ +"]",dungeon; -town: -// + getmapusers("prt_in.gat") + getmapusers("xmas_in.gat") + getmapusers("cmd_in01.gat") -// + getmapusers("cmd_in02.gat") + getmapusers("yuno_in01.gat") + getmapusers("yuno_in02.gat") -// + getmapusers("yuno_in03.gat") + getmapusers("yuno_in04.gat") + getmapusers("yuno_in05.gat") -// + getmapusers("ama_in01.gat") + getmapusers("ama_in02.gat") + getmapusers("gon_in.gat") -// + getmapusers("um_in.gat") + getmapusers("nif_in.gat") + getmapusers("lou_in01.gat") -// + getmapusers("lou_in02.gat"); - menu "Alberta [" + @red$ + (getmapusers("alberta.gat")+getmapusers("alberta_in.gat")) + @reset$ + "]",walberta, - "Aldebaran [" + @red$ + (getmapusers("aldebaran.gat")+ getmapusers("aldeba_in.gat")) + @reset$ + "]",waldebaran, - "Amatsu [" + @red$ + (getmapusers("amatsu.gat")+getmapusers("ama_in02.gat")) + @reset$ + "]",wamatsu, - "Comodo [" + @red$ + (getmapusers("comodo.gat")+getmapusers("cmd_in01.gat")+getmapusers("cmd_in02.gat")) + @reset$ + "]",wcomodo, - "Gonryun [" + @red$ + (getmapusers("gonryun.gat")+getmapusers("gon_in.gat")) + @reset$ + "]",wgonryun, - "Geffen [" + @red$ + (getmapusers("geffen.gat")+getmapusers("geffen_in.gat")) + @reset$ + "]",wgeffen, - "Izlude [" + @red$ + (getmapusers("izlude.gat")+getmapusers("izlude_in.gat")) + @reset$ + "]",wizlude, - "Lutie [" + @red$ + (getmapusers("xmas.gat")+getmapusers("xmas_in.gat")) + @reset$ + "]",wxmas, - "Morroc [" + @red$ + (getmapusers("morocc.gat")+getmapusers("morocc_in.gat")) + @reset$ + "]",wmorroc, - "Niflheim [" + @red$ + (getmapusers("niflheim.gat")+getmapusers("nif_in.gat")) + @reset$ + "]",wniflheim, - "Payon [" + @red$ + (getmapusers("payon.gat")+getmapusers("payon_in01.gat")+getmapusers("payon_in02.gat")+getmapusers("payon_in03.gat")) + @reset$ + "]",wpayon, - "Prontera [" + @red$ + (getmapusers("prontera.gat")+getmapusers("prt_in.gat")) + @reset$ + "]",wprontera, - "Yuno [" + @red$ + (getmapusers("yuno.gat")+getmapusers("yuno_in01.gat")+getmapusers("yuno_in02.gat")+getmapusers("yuno_in03.gat")+getmapusers("yuno_in04.gat")+getmapusers("yuno_in05.gat")) + @reset$ + "]",wyuno, - "Umbala [" + @red$ + (getmapusers("umbala.gat")+getmapusers("um_in.gat")) + @reset$ + "]",wumbala, - "Valkyrie [" + @red$ + getmapusers("valkyrie.gat") + @reset$ + "]",wvalk, - "Louyang [" + @red$ + (getmapusers("louyang.gat")+getmapusers("lou_in01.gat")+getmapusers("lou_in02.gat")) + @reset$ + "]",wlouyang; -dungeon: - menu "Amatsu Dungeon [" + @red$ + @ama + @reset$ + "]",ama, - "Gonryun Dungeon [" + @red$ + @gon + @reset$ + "]",gon, - "Anthell [" + @red$ + @anthell + @reset$ + "]",ant, - "Beach Dungeon [" + @red$ + @beach + @reset$ + "]",beach, - "Byalan Dungeon [" + @red$ + @byalan + @reset$ + "]",byalan, - "Clock Tower [" + @red$ + @clock + @reset$ + "]",clock, - "Coal Mines [" + @red$ + @coal + @reset$ + "]",coal, - "Culvert [" + @red$ + @culvert + @reset$ + "]",culvert, - "Geffen Dungeon [" + @red$ + @geffen + @reset$ + "]",geffen, - "Glast Heim [" + @red$ + @glast + @reset$ + "]",glast, - "Hidden Dungeon [" + @red$ + @hidden + @reset$ + "]",hidden, - "Magma Dungeon [" + @red$ + @magma + @reset$ + "]",magma, - "Orc Dungeon [" + @red$ + @orc + @reset$ + "]",orc, - "Payon Dungeon [" + @red$ + @payond + @reset$ + "]",payon, - "Pyramids [" + @red$ + @pyramids + @reset$ + "]",pyramids, - "Sphinx [" + @red$ + @sphinx + @reset$ + "]",sphinx, - "Sunken Ship [" + @red$ + @sunken + @reset$ + "]",sunken, - "Toy Factory [" + @red$ + @toy + @reset$ + "]",toy, - "Turtle Dungeon [" + @red$ + @tutrle + @reset$ + "]",turtle, - "Gefenia [" + @red$ + @gefenia + @reset$ + "]",gefenia; -ant: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("anthell01.gat")+ @reset$ + "]",danthell1, - "Level 2 [" + @red$ + getmapusers("anthell02.gat")+ @reset$ + "]",danthell2; -beach: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("beach_dun.gat") + @reset$ + "]",dbeach1, - "Level 2 [" + @red$ + getmapusers("beach_dun2.gat") + @reset$ + "]",dbeach2, - "Level 3 [" + @red$ + getmapusers("beach_dun3.gat") + @reset$ + "]",dbeach3; -byalan: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("iz_dun00.gat") + @reset$ + "]",dbyalan1, - "Level 2 [" + @red$ + getmapusers("iz_dun01.gat") + @reset$ + "]",dbyalan2, - "Level 3 [" + @red$ + getmapusers("iz_dun02.gat") + @reset$ + "]",dbyalan3, - "Level 4 [" + @red$ + getmapusers("iz_dun03.gat") + @reset$ + "]",dbyalan4, - "Level 5 [" + @red$ + getmapusers("iz_dun04.gat") + @reset$ + "]",dbyalan5; -clock: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("c_tower1.gat") + @reset$ + "]",dclock1, - "Level 2 [" + @red$ + getmapusers("c_tower2.gat") + @reset$ + "]",dclock2, - "Level 3 [" + @red$ + getmapusers("c_tower3.gat") + @reset$ + "]",dclock3, - "Level 4 [" + @red$ + getmapusers("c_tower4.gat") + @reset$ + "]",dclock4, - "Basement 1 [" + @red$ + getmapusers("alde_dun01.gat") + @reset$ + "]",dalde1, - "Basement 2 [" + @red$ + getmapusers("alde_dun02.gat") + @reset$ + "]",dalde2, - "Basement 3 [" + @red$ + getmapusers("alde_dun03.gat") + @reset$ + "]",dalde3, - "Basement 4 [" + @red$ + getmapusers("alde_dun04.gat") + @reset$ + "]",dalde4; -coal: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("mjo_dun01.gat") + @reset$ + "]",dcoal1, - "Level 2 [" + @red$ + getmapusers("mjo_dun02.gat") + @reset$ + "]",dcoal2, - "Level 3 [" + @red$ + getmapusers("mjo_dun03.gat") + @reset$ + "]",dcoal3; -culvert: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("prt_sewb1.gat") + @reset$ + "]",dculvert1, - "Level 2 [" + @red$ + getmapusers("prt_sewb2.gat") + @reset$ + "]",dculvert2, - "Level 3 [" + @red$ + getmapusers("prt_sewb3.gat") + @reset$ + "]",dculvert3, - "Level 4 [" + @red$ + getmapusers("prt_sewb4.gat") + @reset$ + "]",dculvert4; -geffen: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("gef_dun00.gat") + @reset$ + "]",dgeffen1, - "Level 2 [" + @red$ + getmapusers("gef_dun01.gat") + @reset$ + "]",dgeffen2, - "Level 3 [" + @red$ + getmapusers("gef_dun02.gat") + @reset$ + "]",dgeffen3, - "Level 4 [" + @red$ + getmapusers("gef_dun03.gat") + @reset$ + "]",dgeffen4; -glast: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Entrance [" + @red$ + getmapusers("glast_01.gat") + @reset$ + "]",dglastent, - "Castle 1 [" + @red$ + getmapusers("gl_cas01.gat") + @reset$ + "]",dglastcast1, - "Castle 2 [" + @red$ + getmapusers("gl_cas02.gat") + @reset$ + "]",dglastcast2, - "Chivalry 1 [" + @red$ + getmapusers("gl_knt01.gat") + @reset$ + "]",dglastchiv1, - "Chivalry 2 [" + @red$ + getmapusers("gl_knt02.gat") + @reset$ + "]",dglastchiv2, - "Churchyard [" + @red$ + getmapusers("gl_chyard.gat") + @reset$ + "]",dglastyard, - "Culvert 1 [" + @red$ + getmapusers("gl_sew01.gat") + @reset$ + "]",dglastcul1, - "Culvert 2 [" + @red$ + getmapusers("gl_sew02.gat") + @reset$ + "]",dglastcul1, - "Culvert 3 [" + @red$ + getmapusers("gl_sew03.gat") + @reset$ + "]",dglastcul3, - "Culvert 4 [" + @red$ + getmapusers("gl_sew04.gat") + @reset$ + "]",dglastcul4, - "St.Abbey [" + @red$ + getmapusers("gl_church.gat") + @reset$ + "]",dglastchur, - "Staircase Dungeon [" + @red$ + getmapusers("gl_step.gat") + @reset$ + "]",dglaststep, - "Underground Cave 1 [" + @red$ + getmapusers("gl_dun01.gat") + @reset$ + "]",dglastcave1, - "Underground Cave 2 [" + @red$ + getmapusers("gl_dun02.gat") + @reset$ + "]",dglastcave2, - "Underground Prison 1 [" + @red$ + getmapusers("gl_prison.gat") + @reset$ + "]",dglastpris1, - "Underground Prison 2 [" + @red$ + getmapusers("gl_prison1.gat") + @reset$ + "]",dglastpris2; -hidden: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("prt_maze01.gat") + @reset$ + "]",dhidden1, - "Level 2 [" + @red$ + getmapusers("prt_maze02.gat") + @reset$ + "]",dhidden2, - "Level 3 [" + @red$ + getmapusers("prt_maze03.gat") + @reset$ + "]",dhidden3; -magma: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("mag_dun01.gat") + @reset$ + "]",dmagma1, - "Level 2 [" + @red$ + getmapusers("mag_dun02.gat") + @reset$ + "]",dmagma2; -orc: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("orcsdun01.gat") + @reset$ + "]",dorc1, - "Level 2 [" + @red$ + getmapusers("orcsdun02.gat") + @reset$ + "]",dorc2; -payon: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("pay_dun00.gat") + @reset$ + "]",dpayon1, - "Level 2 [" + @red$ + getmapusers("pay_dun01.gat") + @reset$ + "]",dpayon2, - "Level 3 [" + @red$ + getmapusers("pay_dun02.gat") + @reset$ + "]",dpayon3, - "Level 4 [" + @red$ + getmapusers("pay_dun03.gat") + @reset$ + "]",dpayon4, - "Level 5 [" + @red$ + getmapusers("pay_dun04.gat") + @reset$ + "]",dpayon5; -pyramids: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("moc_pryd01.gat") + @reset$ + "]",dpyramids1, - "Level 2 [" + @red$ + getmapusers("moc_pryd02.gat") + @reset$ + "]",dpyramids2, - "Level 3 [" + @red$ + getmapusers("moc_pryd03.gat") + @reset$ + "]",dpyramids3, - "Level 4 [" + @red$ + getmapusers("moc_pryd04.gat") + @reset$ + "]",dpyramids4, - "Basement 1 [" + @red$ + getmapusers("moc_pryd05.gat") + @reset$ + "]",dpyramidsb1, - "Basement 2 [" + @red$ + getmapusers("moc_pryd06.gat") + @reset$ + "]",dpyramidsb2; -sphinx: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("in_sphinx1.gat") + @reset$ + "]",dsphinx1, - "Level 2 [" + @red$ + getmapusers("in_sphinx2.gat") + @reset$ + "]",dsphinx2, - "Level 3 [" + @red$ + getmapusers("in_sphinx3.gat") + @reset$ + "]",dsphinx3, - "Level 4 [" + @red$ + getmapusers("in_sphinx4.gat") + @reset$ + "]",dsphinx4, - "Level 5 [" + @red$ + getmapusers("in_sphinx5.gat") + @reset$ + "]",dsphinx5; -sunken: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("treasure01.gat") + @reset$ + "]",dsunken1, - "Level 2 [" + @red$ + getmapusers("treasure02.gat") + @reset$ + "]",dsunken2; -toy: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("xmas_dun01.gat") + @reset$ + "]",dtoy1, - "Level 2 [" + @red$ + getmapusers("xmas_dun02.gat") + @reset$ + "]",dtoy2; -turtle: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Entrance [" + @red$ + getmapusers("tur_dun01.gat") + @reset$ + "]",dturtleent, - "Level 1 [" + @red$ + getmapusers("tur_dun02.gat") + @reset$ + "]",dturtle1, - "Level 2 [" + @red$ + getmapusers("tur_dun03.gat") + @reset$ + "]",dturtle2, - "Level 3 [" + @red$ + getmapusers("tur_dun04.gat") + @reset$ + "]",dturtle3; -ama: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("ama_dun01.gat") + @reset$ + "]",dama1, - "Level 2 [" + @red$ + getmapusers("ama_dun02.gat") + @reset$ + "]",dama2, - "Level 3 [" + @red$ + getmapusers("ama_dun03.gat") + @reset$ + "]",dama3; -gon: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("gon_dun01.gat") + @reset$ + "]",dgon1, - "Level 2 [" + @red$ + getmapusers("gon_dun02.gat") + @reset$ + "]",dgon2, - "Level 3 [" + @red$ + getmapusers("gon_dun03.gat") + @reset$ + "]",dgon3; -gefenia: - mes "[Warp NPC]"; - mes "Please select a Level. Beware that you will be warped directly into the dungeon."; - next; - menu "Level 1 [" + @red$ + getmapusers("gefenia01.gat") + @reset$ + "]",dgefenia1, - "Level 2 [" + @red$ + getmapusers("gefenia02.gat") + @reset$ + "]",dgefenia2, - "Level 3 [" + @red$ + getmapusers("gefenia03.gat") + @reset$ + "]",dgefenia3, - "Level 4 [" + @red$ + getmapusers("gefenia04.gat") + @reset$ + "]",dgefenia4; - -//----------------Towns----------------\\ - -walberta: warp "alberta.gat",192,147; close; -waldebaran: warp "aldebaran.gat",140,131; close; -wamatsu: warp "amatsu.gat",198,84; close; -wcomodo: warp "comodo.gat",209,143; close; -wgonryun: warp "gonryun.gat",160,121; close; -wgeffen: warp "geffen.gat",119,59; close; -wizlude: warp "izlude.gat",128,114; close; -wxmas: warp "xmas.gat",147,134; close; -wmorroc: warp "morocc.gat",156,93; close; -wniflheim: warp "niflheim.gat",85,154; close; -wpayon: warp "payon.gat",152,75; close; -wprontera: warp "prontera.gat",156,191; close; -wyuno: warp "yuno.gat",157,51; close; -wumbala: warp "umbala.gat",145,155; close; -wlouyang: warp "louyang.gat",210,108; close; -wvalk: warp "valkyrie",48,8; close; - -//----------------Dungeons----------------\\ - -danthell1: warp "anthell01.gat",35,262; close; -danthell2: warp "anthell02.gat",168,170; close; -dbeach1: warp "beach_dun.gat",266,67; close; -dbeach2: warp "beach_dun2.gat",255,244; close; -dbeach3: warp "beach_dun3.gat",23,260; close; -dbyalan1: warp "iz_dun00.gat",168,168; close; -dbyalan2: warp "iz_dun01.gat",253,252; close; -dbyalan3: warp "iz_dun02.gat",236,204; close; -dbyalan4: warp "iz_dun03.gat",32,63; close; -dbyalan5: warp "iz_dun04.gat",26,27; close; -dalde1: warp "alde_dun01.gat",297,25; close; -dalde2: warp "alde_dun02.gat",127,169; close; -dalde3: warp "alde_dun03.gat",277,178; close; -dalde4: warp "alde_dun04.gat",268,74; close; -dclock1: warp "c_tower1.gat",199,159; close; -dclock2: warp "c_tower2.gat",148,283; close; -dclock3: warp "c_tower3.gat",65,147; close; -dclock4: warp "c_tower4.gat",56,155; close; -dcoal1: warp "mjo_dun01.gat",52,17; close; -dcoal2: warp "mjo_dun02.gat",381,343; close; -dcoal3: warp "mjo_dun03.gat",302,262; close; -dculvert1: warp "prt_sewb1.gat",131,247; close; -dculvert2: warp "prt_sewb2.gat",19,19; close; -dculvert3: warp "prt_sewb3.gat",180,169; close; -dculvert4: warp "prt_sewb4.gat",100,92; close; -dgeffen1: warp "gef_dun00.gat",104,99; close; -dgeffen2: warp "gef_dun01.gat",115,236; close; -dgeffen3: warp "gef_dun02.gat",106,132; close; -dgeffen4: warp "gef_dun03.gat",203,200; close; -dglastent: warp "glast_01.gat",375,304; close; -dglastcast1: warp "gl_cas01.gat",199,29; close; -dglastcast2: warp "gl_cas02.gat",104,25; close; -dglastchiv1: warp "gl_knt01.gat",150,15; close; -dglastchiv2: warp "gl_knt02.gat",157,287; close; -dglastyard: warp "gl_chyard.gat",147,15; close; -dglastcul1: warp "gl_sew01.gat",258,255; close; -dglastcul2: warp "gl_sew02.gat",108,291; close; -dglastcul3: warp "gl_sew03.gat",171,283; close; -dglastcul4: warp "gl_sew04.gat",68,277; close; -dglastchur: warp "gl_church.gat",156,7; close; -dglaststep: warp "gl_step.gat",12,7; close; -dglastcave1: warp "gl_dun01.gat",133,271; close; -dglastcave2: warp "gl_dun02.gat",224,274; close; -dglastpris1: warp "gl_prison.gat",14,70; close; -dglastpris2: warp "gl_prison1.gat",150,14; close; -dhidden1: warp "prt_maze01.gat",176,7; close; -dhidden2: warp "prt_maze02.gat",94,9; close; -dhidden3: warp "prt_maze03.gat",23,8; close; -dmagma1: warp "mag_dun01.gat",126,68; close; -dmagma2: warp "mag_dun02.gat",47,30; close; -dorc1: warp "orcsdun01.gat",32,170; close; -dorc2: warp "orcsdun02.gat",21,185; close; -dpayon1: warp "pay_dun00.gat",21,183; close; -dpayon2: warp "pay_dun01.gat",19,33; close; -dpayon3: warp "pay_dun02.gat",19,63; close; -dpayon4: warp "pay_dun03.gat",155,159; close; -dpayon5: warp "pay_dun04.gat",201,204; close; -dpyramids1: warp "moc_pryd01.gat",192,9; close; -dpyramids2: warp "moc_pryd02.gat",10,192; close; -dpyramids3: warp "moc_pryd03.gat",100,92; close; -dpyramids4: warp "moc_pryd04.gat",181,11; close; -dpyramidsb1: warp "moc_pryd05.gat",94,96; close; -dpyramidsb2: warp "moc_pryd06.gat",192,8; close; -dsphinx1: warp "in_sphinx1.gat",288,9; close; -dsphinx2: warp "in_sphinx2.gat",149,81; close; -dsphinx3: warp "in_sphinx3.gat",210,54; close; -dsphinx4: warp "in_sphinx4.gat",10,222; close; -dsphinx5: warp "in_sphinx5.gat",100,99; close; -dsunken1: warp "treasure01.gat",69,24; close; -dsunken2: warp "treasure02.gat",102,27; close; -dtoy1: warp "xmas_dun01.gat",205,15; close; -dtoy2: warp "xmas_dun02.gat",129,133; close; -dturtleent: warp "tur_dun01.gat",154,49; close; -dturtle1: warp "tur_dun02.gat",148,261; close; -dturtle2: warp "tur_dun03.gat",132,189; close; -dturtle3: warp "tur_dun04.gat",100,192; close; -dama1: warp "ama_dun01.gat",228,11; close; -dama2: warp "ama_dun02.gat",34,41; close; -dama3: warp "ama_dun03.gat",119,14; close; -dgon1: warp "gon_dun01.gat",153,53; close; -dgon2: warp "gon_dun02.gat",28,113; close; -dgon3: warp "gon_dun03.gat",68,16; close; -dgefenia1: warp "gefenia01.gat",40,103; close; -dgefenia2: warp "gefenia02.gat",203,34; close; -dgefenia3: warp "gefenia03.gat",266,168; close; -dgefenia4: warp "gefenia04.gat",130,272; close; -} -alberta.gat,31,240,4 duplicate(warpra) Warp NPC 115 -aldebaran.gat,145,118,4 duplicate(warpra) Warp NPC 115 -amatsu.gat,194,83,1 duplicate(warpra) Warp NPC 115 -comodo.gat,194,158,4 duplicate(warpra) Warp NPC 115 -geffen.gat,115,66,4 duplicate(warpra) Warp NPC 115 -izlude.gat,131,116,4 duplicate(warpra) Warp NPC 115 -xmas.gat,150,136,4 duplicate(warpra) Warp NPC 115 -morocc.gat,156,99,4 duplicate(warpra) Warp NPC 115 -payon.gat,182,110,4 duplicate(warpra) Warp NPC 115 -prontera.gat,153,183,4 duplicate(warpra) Warp NPC 115 -yuno.gat,137,162,4 duplicate(warpra) Warp NPC 115 -moc_fild04.gat,207,331,4 duplicate(warpra) Warp NPC 115 -izlu2dun.gat,104,82,4 duplicate(warpra) Warp NPC 115 -mjolnir_02.gat,85,363,4 duplicate(warpra) Warp NPC 115 -prt_fild05.gat,273,215,4 duplicate(warpra) Warp NPC 115 -glast_01.gat,370,308,4 duplicate(warpra) Warp NPC 115 -yuno_fild03.gat,37,135,4 duplicate(warpra) Warp NPC 115 -gef_fild10.gat,71,339,4 duplicate(warpra) Warp NPC 115 -pay_arche.gat,39,135,4 duplicate(warpra) Warp NPC 115 -moc_ruins.gat,64,166,4 duplicate(warpra) Warp NPC 115 -moc_fild19.gat,106,97,4 duplicate(warpra) Warp NPC 115 -alb2trea.gat,73,101,4 duplicate(warpra) Warp NPC 115 -tur_dun01.gat,148,239,4 duplicate(warpra) Warp NPC 115 -gonryun.gat,151,130,4 duplicate(warpra) Warp NPC 115 -louyang.gat,210,106,4 duplicate(warpra) Warp NPC 115 -umbala.gat,132,130,4 duplicate(warpra) Warp NPC 115 -valkyrie.gat,48,35,8 duplicate(warpra) Warp NPC 115 |