mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
I was wondering how to make a bypass for this:

Code:
ON *:TEXT:*tipped iconslots*:##hyp-casino:{ 
  if ($nick == Matylda) { 
    set %amounttipped $4
    if (%amounttipped > 5) { msg ##hyp-casino Sorry, 5 is the limit. (Silently Returned) | msg ##hyp-casino !tip $1 %amounttipped | HALT }  


Cause I need to be able to load the game with coins, but at moment if i do when script is loaded, it sends it isntantly back and I dont want to keep having to unload, deposit, then load the script... How can I do this?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Can you further explain what the problem is? I don't really understand from what you provided so far.

By unloading and loading a script, do you mean literally loading it using /load -rs script, etc?
And what exactly is the purpose of the bypass, what do you mean by bypassing?


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
ok this well this i a game that uses cryptocurrency to play


but the issue is that when I try to put coins in to it, (over the limit) it instantly returns them to me. and yea I dont want to have to unload and reload every time usint /load and /unload. and the bypass something like:

Code:
ON *:TEXT:*tipped iconslots*:##hyp-casino:{ 
  if ($nick == Matylda) { 
    set %amounttipped $4
    if (my username) { msg ##hyp-casino Deposited! }
    elseif (%amounttipped > 5) { msg ##hyp-casino Sorry, 5 is the limit. (Silently Returned) | msg ##hyp-casino !tip $1 %amounttipped | HALT }  



but idk how that would work

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
You code has not any point, please paste the text that you want to get the *tipped iconslots* is nothing whats the $4 parameter ? also if (my username) what is this? you mean if ($nick == $me) ? also what is in the $1 ?

Last edited by westor; 14/10/14 05:09 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
no no lol this is just the top part of the script lol

the whole thing is:

Code:
ON *:TEXT:*tipped iconslots*:##hyp-casino:{ 
  if ($nick == Matylda) { 
    set %amounttipped $4
    if (%amounttipped > 5) { msg ##hyp-casino Sorry, 5 is the limit. (Silently Returned) | msg ##hyp-casino !tip $1 %amounttipped | HALT }  
    var %symbol.0 9,1 &#9760; 
    var %symbol.1 0,6 &#9786; 
    var %symbol.2 0,1 &#9733; 
    var %symbol.3 0,4 &#10016; 
    var %symbol.4 0,7 &#10084; 
    var %symbol.5 1,8 &#9775; 
    var %symbol.6 11,4 &#9819; 
    var %symbol.7 4,12 &#9772; 
    var %symbol.8 1,0 &#12484; 

    var %slot1 %symbol. [ $+ [ $rand(0,8) ] ]
    var %slot2 %symbol. [ $+ [ $rand(0,8) ] ]
    var %slot3 %symbol. [ $+ [ $rand(0,8) ] ]
    notice $2 %slot1 %slot2 %slot3
    if (%slot1 == %slot2) && (%slot1 == %slot3) {
      msg ##hyp-casino 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
      msg ##hyp-casino Way to GO $2!!! You have just won the jar containing  500 HYP!!)
      msg ##hyp-casino !tip $2 500 HYP  
      msg ##hyp-casino 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
    }
  }
  on *:load:{
    var %slotwin Nobody Won the game YET!
    echo 3 -a !slot machine loaded.
  }


and the "matylda" is a tip bot used in the channel, so the game knows its getting the credits... and the $1 is the users name that placed the bet

it looks like this:

Code:
<happyfappy> !tip wheeloffortune 5
<+Matylda> happyfappy tipped iconslots 5 Hyp! "/msg Matylda help" to claim. - Sponsored by ##Hyp-Casino


the $4 parameter is the tip amount

Last edited by HappyFappy; 14/10/14 06:09 PM.

Link Copied to Clipboard