Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actualización del codigo del Apostador #656

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Codigo/Protocol_GmCommands.bas
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ Public Sub HandleGamble(ByVal UserIndex As Integer)
120 ElseIf amount < 1 Then
122 Call WriteChatOverHead(UserIndex, "El mínimo de apuesta es 1 moneda.", NpcList(.flags.TargetNPC.ArrayIndex).Char.charindex, vbWhite)

124 ElseIf amount > 10000 Then
126 Call WriteChatOverHead(UserIndex, "El máximo de apuesta es 10.000 monedas.", NpcList(.flags.TargetNPC.ArrayIndex).Char.charindex, vbWhite)
124 ElseIf amount > 5000 Then
126 Call WriteChatOverHead(UserIndex, "El máximo de apuesta es 5.000 monedas.", NpcList(.flags.TargetNPC.ArrayIndex).Char.charindex, vbWhite)

128 ElseIf .Stats.GLD < amount Then
130 Call WriteChatOverHead(UserIndex, "No tienes esa cantidad.", NpcList(.flags.TargetNPC.ArrayIndex).Char.charindex, vbWhite)

Else
132 If RandomNumber(1, 100) <= 45 Then
132 If RandomNumber(1, 100) <= 10 Then
134 .Stats.GLD = .Stats.GLD + amount
136 Call WriteChatOverHead(UserIndex, "¡Felicidades! Has ganado " & PonerPuntos(amount) & " monedas de oro!", NpcList(.flags.TargetNPC.ArrayIndex).Char.charindex, vbWhite)

Expand Down