소스 검색

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;