瀏覽代碼

Added a check in the Hugel Bingo NPC to check if the player actually has 1000 zeny to play (bugreport:4091).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15293 54d463be-8e91-2dee-dedb-b68131a5f0ec
jmanfffreak 13 年之前
父節點
當前提交
ec59ffaa6a
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      npc/other/hugel_bingo.txt

+ 5 - 0
npc/other/hugel_bingo.txt

@@ -57,6 +57,11 @@ OnInit:
 	end;
 
 OnTouch:
+    if ( zeny < 1000 ) {
+        mapannounce "que_bingo","Eukran: Oh it looks like "+strcharinfo(0)+" doesn't have enough money. I'm sorry but I must cancel the game~",1,0xFFAB54;
+        setnpctimer 201999,"start#bingo"; // manual reset
+        end;
+    }
 	set Zeny,Zeny -1000;
 	set @bingo_a1$,0;
 	set @bingo_a2$,0;