From 76b83fa90876685bbd1dc637fb1c80fcc6f1f643 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Tue, 28 Aug 2012 09:37:53 +0200 Subject: PvPEvent: Add a minimum for the price. --- world/map/npc/009-6/brodomir.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'world') diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt index c2743366..f60bef1d 100644 --- a/world/map/npc/009-6/brodomir.txt +++ b/world/map/npc/009-6/brodomir.txt @@ -105,8 +105,10 @@ L_Fool: L_Pay: mes "[Brodomir]"; - mes "\"How much money do you want to sponsor as price?\""; + mes "\"How much money do you want to sponsor as price? It should be at least 5000GP.\""; input @brodomir_money; + if (@brodomir_money < 5000) + goto L_TooCheap; if ($@BRODOMIR_PVP_STATUS == 1) goto L_Wait; if (getareausers("009-6.gat", 20, 20, 80, 80, 1) < 3) @@ -210,6 +212,11 @@ L_NotEnoughMoney: mes "\"You don't have enough money.\""; goto L_Close; +L_TooCheap: + mes "[Brodomir]"; + mes "\"That's too cheap as a price.\""; + goto L_Close; + L_Cleanup: pvpoff "009-5.gat"; set $@BRODOMIR_PVP_STATUS , 0; -- cgit v1.2.3-60-g2f50