c11 @verb #5772:"drink_stuff" none none none rxdo #5772 @program #5772:"drink_stuff" none none none b = random(14) c = random(18) y = random(12) z = random(16) {x} = args "Charm stuff" if (this.drinks[toint(x)][6] != 0) if (y == 7) this.(tostr(player))[10] = this.(tostr(player))[10] - this.drinks[toint(x)][6] player:tell("Your drink doesn't settle well, so you puke all over the bar, lose ", this.drinks[toint(x)][6], " charm ", this.drinks[toint(x)][6] == 1 ? "point" | "points", ".") else this.(tostr(player))[10] = this.(tostr(player))[10] + this.drinks[toint(x)][6] player:tell("You get a new lease on life, gain ", this.drinks[toint(x)][6], " charm ", this.drinks[toint(x)][6] == 1 ? "point" | "points", ".") endif endif "HP stuff" if (this.drinks[toint(x)][3] != 0) if (z == 8) this.(tostr(player))[11] = this.(tostr(player))[11] - this.drinks[toint(x)][3] this.(tostr(player))[12] = this.(tostr(player))[12] - this.drinks[toint(x)][3] player:tell("Due to Alcohol Poisining Your HP has been dropped to ", this.(tostr(player))[11]) else this.(tostr(player))[11] = this.(tostr(player))[11] + this.drinks[toint(x)][3] this.(tostr(player))[12] = this.(tostr(player))[12] + this.drinks[toint(x)][3] player:tell("Your HP have been upped to ", this.(tostr(player))[11]) endif endif "Defence stuff" if (this.drinks[toint(x)][5] != 0) if (b == 10) this.(tostr(player))[23] = this.(tostr(player))[23] - this.drinks[toint(x)][4] player:tell("You run into a burly drunk ", i = random(2) == 1 ? "man" | "woman", " who kicks the crap out of you, lose ", this.drinks[toint(x)][4], " defence ", this.drinks[toint(x)][4] == 1 ? "point" | "points", ".", i == 2 && this.(tostr(player))[2] == 1 ? " The Bartender looks at you in dusgust." | "") else this.(tostr(player))[23] = this.(tostr(player))[23] + this.drinks[toint(x)][4] player:tell("You get a new lease on life, gain ", this.drinks[toint(x)][4], " defence ", this.drinks[toint(x)][4] == 1 ? "point" | "points", ".") endif endif "Strength stuff" if (this.drinks[toint(x)][4] != 0) if (b == 8) this.(tostr(player))[22] = this.(tostr(player))[22] - this.drinks[toint(x)][5] player:tell("You feel really weak all of a sudden, lose ", this.drinks[toint(x)][5], " strength ", this.drinks[toint(x)][5] == 1 ? "point." | "points.") else this.(tostr(player))[22] = this.(tostr(player))[22] + this.drinks[toint(x)][5] player:tell("You feel stronger, gain ", this.drinks[toint(x)][5], " strength ", this.drinks[toint(x)][5] == 1 ? "point." | "points.") endif endif if (length(this.drinks[toint(x)]) == 7) if (this.(tostr(player))[31] == 1) if (b == 7 && z == 4) player:tell("You suddenly feel a deep sadness coming over you.") this.(tostr(player))[31] = 0 endif else if (b != 4 && a != 10) player:tell("You suddenly feel happy all over.") this.(tostr(player))[31] = 1 endif endif endif "Last modified by Dax (#789) on Tue May 3 14:12:32 2005 MDT." . 0