You should silence them all.. It\'s quite big so easy to flood
instead of msg $chan, .msg $chan
And instead of all those different variables like %selfroul, %quickchange, ...
Make them like this: %GAMBLEselfroul, %GAMBLEquickchange, ...
So you don\'t need to type unset %, unset %, unset %, ... Just use unset %GAMBLE*
You want something like a ... Creditcard or so?
if (% $+ $nick > = 100) {
.Describe $chan ~The bartender shakes his head and continues wiping down his glasses, \"Sorry there $nick you have racked up too high of a tab. I can\'t serve you anymore until you pay me.\"
}
Try the following
if (% [ $+ [ $nick ] ] > = 100) {
.Describe $chan ~The bartender shakes his head and continues wiping down his glasses, \"Sorry there $nick you have racked up too high of a tab. I can\'t serve you anymore until you pay me.\"
}
Omg thanks Jonesy <3 I found it.
I now use:
var %maxhp = 99, %myhp = %Deathmatch.HPplayer1, %hpremaining = $calc(%maxhp - %myhp)
msg $chan 04• 1D14m 4[3 %Deathmatch.Player1 $+ : 3,3 $str(.,$calc(%myhp / 3)) 4,4 $str(.,$calc(%hpremaining / 3)) 7(1 %myhp $+ % 7) 4]
Fark, thanks man, you saved like 200 lines! ^_^
^ Wth you can\'t say the f word O.o
Oeyeah <3 100th comment
Huh wth Jonesy, I really don\'t get it O.O
Code:
var %maxhp = 10, %myhp = 40, myhpremain = %myhprem = $calc(%maxhp - %myhp)
msg $chan $+ $str(|,%myhp) $+ %myhp $+ $+ $str(|,%myhprem)
In your code the %myhprem ends up negative but okai you say It\'d work if you apply it correctly so forget that.
But in my code there are Only 20 |\'s, else it ends up WAAAY to big.
Maybe i\'m wrong but I think your code can give 99 |\'s.
Wtf I really don\'t get it anymore.