From d69f17d48933b92e9d1c26c86e41dabaac86e609 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 29 Jan 2010 14:26:56 +0000 Subject: Restore old banking menu --- npc/functions/banker.txt | 119 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 115 insertions(+), 4 deletions(-) (limited to 'npc/functions/banker.txt') diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt index 43f6f879..d46c1735 100644 --- a/npc/functions/banker.txt +++ b/npc/functions/banker.txt @@ -17,6 +17,19 @@ L_Dep: mes "[" + @npcName$ + "]"; mes "\"How much would you like to deposit?\""; next; + menu + "Other", L_Dep_Input, + "5,000 GP", L_Dep_5k, + "10,000 GP", L_Dep_10k, + "25,000 GP", L_Dep_25k, + "50,000 GP", L_Dep_50k, + "100,000 GP", L_Dep_100k, + "250,000 GP", L_Dep_250k, + "500,000 GP", L_Dep_500k, + "1,000,000 GP", L_Dep_1kk, + "All of my money", L_Dep_All, + "I've changed my mind", L_Start, + "Quit", -; L_Dep_Input: input @Amount; @@ -28,6 +41,51 @@ L_Dep_Input: "Deposit all", L_Dep_All, "Quit", -; goto L_Nev; + +L_Dep_5k: + if (zeny<5000) goto L_NoMoney; + set @Amount, 5000; + goto L_Deposit; + +L_Dep_10k: + if (zeny<10000) goto L_NoMoney; + set @Amount, 10000; + goto L_Deposit; + +L_Dep_25k: + if (zeny<25000) goto L_NoMoney; + set @Amount, 25000; + goto L_Deposit; + +L_Dep_50k: + if (zeny<50000) goto L_NoMoney; + set @Amount, 50000; + goto L_Deposit; + +L_Dep_100k: + if (zeny<100000) goto L_NoMoney; + set @Amount, 100000; + goto L_Deposit; + +L_Dep_250k: + if (zeny<250000) goto L_NoMoney; + set @Amount, 250000; + goto L_Deposit; + +L_Dep_500k: + if (zeny<500000) goto L_NoMoney; + set @Amount, 500000; + goto L_Deposit; + +L_Dep_1kk: + if (zeny<1000000) goto L_NoMoney; + set @Amount, 1000000; + goto L_Deposit; + +L_Dep_All: + if (zeny<1) goto L_NoMoney; + set @Amount, zeny; + goto L_Deposit; L_Dep_All: set @Amount, zeny; @@ -42,8 +100,21 @@ L_Dep_Continue: L_With: mes "[" + @npcName$ + "]"; mes "\"How much would you like to withdraw?\""; + menu + "Other", L_With_Input, + "5,000 GP", L_With_5k, + "10,000 GP", L_With_10k, + "25,000 GP", L_With_25k, + "50,000 GP", L_With_50k, + "100,000 GP", L_With_100k, + "250,000 GP", L_With_250k, + "500,000 GP", L_With_500k, + "1,000,000 GP", L_With_1kk, + "All of my money", L_With_All, + "I've changed my mind", L_Start, + "Quit", -; next; - + L_With_Input: input @Amount; if (@Amount >= 0) goto L_With_Continue; @@ -54,12 +125,52 @@ L_With_Input: "Withdraw all", L_With_All, "Quit", -; goto L_Nev; - + +L_With_5k: + if (#BankAccount < 5000) goto L_NoMoney; + set @Amount, 5000; + goto L_With_Continue; + +L_With_10k: + if (#BankAccount < 10000) goto L_NoMoney; + set @Amount, 10000; + goto L_With_Continue; + +L_With_25k: + if (#BankAccount < 25000) goto L_NoMoney; + set @Amount, 25000; + goto L_With_Continue; + +L_With_50k: + if (#BankAccount < 50000) goto L_NoMoney; + set @Amount, 50000; + goto L_With_Continue; + +L_With_100k: + if (#BankAccount < 100000) goto L_NoMoney; + set @Amount, 100000; + goto L_With_Continue; + +L_With_250k: + if (#BankAccount < 250000) goto L_NoMoney; + set @Amount, 250000; + goto L_With_Continue; + +L_With_500k: + if (#BankAccount < 500000) goto L_NoMoney; + set @Amount, 500000; + goto L_With_Continue; + +L_With_1kk: + if (#BankAccount < 1000000) goto L_NoMoney; + set @Amount, 1000000; + goto L_With_Continue; + L_With_All: - set @Amount, zeny; + if (#BankAccount < 1000000) goto L_NoMoney; + set @Amount, #BankAccount; L_With_Continue: - if (#BankAccount < @Amount) goto L_NoMoney; set zeny, zeny + @Amount; set #BankAccount, #BankAccount - @Amount; -- cgit v1.2.3-60-g2f50