summaryrefslogtreecommitdiff
path: root/npc/020-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-02 17:18:51 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-02 17:18:51 -0200
commitf51a38c84fa6b8f3a059551e195a2ebebb2e1ddb (patch)
tree5a8462903b543ef4187f16f06e11511a107834ef /npc/020-4
parent567d982f612d8cdd744162ab060f72291a0685f4 (diff)
downloadserverdata-f51a38c84fa6b8f3a059551e195a2ebebb2e1ddb.tar.gz
serverdata-f51a38c84fa6b8f3a059551e195a2ebebb2e1ddb.tar.bz2
serverdata-f51a38c84fa6b8f3a059551e195a2ebebb2e1ddb.tar.xz
serverdata-f51a38c84fa6b8f3a059551e195a2ebebb2e1ddb.zip
Diffstat (limited to 'npc/020-4')
-rw-r--r--npc/020-4/gambler.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/npc/020-4/gambler.txt b/npc/020-4/gambler.txt
index 865ee9f37..17f66cbc8 100644
--- a/npc/020-4/gambler.txt
+++ b/npc/020-4/gambler.txt
@@ -19,7 +19,7 @@
case 13:
return l("Joker"); break;
default:
- return getarg(0);
+ return atoi(getarg(0)+1);
}
}
@@ -41,7 +41,7 @@ L_Info:
mes "";
mesc l("Rules:");
mesc l("A card will be flipped, you'll need to decide if next flip will be HIGHER or LOWER.");
- mesc l("Cards are ranked on this priority: @@", "A - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - J - Q - K - Joker");
+ mesc l("Cards are ranked on this priority: A - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - J - Q - K - Joker");
next;
mesc l("Prizes:");
mesc l("If you're right, you'll get 80 GP!");
@@ -69,8 +69,8 @@ L_Spin:
mesn;
mesc l("It's a @@!", cardname(.@card1));
mesc l("Will next draw be HIGHER or LOWER?!");
- mesc l("Cards are ranked on this priority: @@", "A - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - J - Q - K - Joker");
next;
+ mesc l("Cards are ranked on this priority: A - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - J - Q - K - Joker");
select
l("HIGHER!"),
l("LOWER!");
@@ -86,11 +86,11 @@ L_Spin:
mesc l("It's a tie!");
getitem CasinoCoins, 1;
.@bypass=1;
- } else if (.@card1 < .@card2 && @menu == 2) {
+ } else if (.@card2 < .@card1 && @menu == 2) {
mesc l("It's lower! That's right!");
Zeny=Zeny+80;
@gambler_winstreak=@gambler_winstreak+1;
- } else if (.@card1 > .@card2 && @menu == 1) {
+ } else if (.@card2 > .@card1 && @menu == 1) {
mesc l("It's higher! That's right!");
Zeny=Zeny+80;
@gambler_winstreak=@gambler_winstreak+1;
@@ -139,6 +139,10 @@ OnInit:
close;
OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, JeansShorts);
+
.sex = G_MALE;
.distance = 4;
npcsit;