mIRC Home    About    Download    Register    News    Help

Print Thread
#248882 02/11/14 02:59 AM
Joined: Sep 2014
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 7
Hi was wondering if anyone can help me with a code that I have seen which is !bankheist where you can rob a bank. This can vary between success of the robbery or failure. Can anyone provide a code please.

TitaniumG #248889 02/11/14 09:24 AM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
How about instead of requesting a script you either search for it first or try to create it yourself so that we can support you? Like this forum is intended to work.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Nillen #248902 02/11/14 09:28 PM
Joined: Sep 2014
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 7
Hmm good Idea I should, shouldn't I. Don't you think I have looked before posting or you just jumping to conclusion. I can't create it myself as I'm not familiar with coding, thought I would ask people on the forum to see if they would be kind enough to help as if I had a code to go off I would have posted it. The code I'm after is for a points system were people can enter number of points they have collected to do a heist with others in the chat and sometimes people are successful on the heist and win more points. If anyone could help me that would be grateful if Nillen wants to help that would be much appreciated if not no problem.

TitaniumG #248903 02/11/14 10:02 PM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
If you had searched the forums for 'heist' you'd have found this topic - https://forums.mirc.com/ubbthreads.php/ub...stem#Post244772 - Which I personally looked at long ago.

I don't think there are a lot of people who will create scripts for anyone, it depends on the purpose of it most of the times I think. If it's for something useful like monitoring your channel or something simple it's likely that people will make something. But things like games using various points aren't as likely to be scripted.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
TitaniumG #248904 02/11/14 10:25 PM
Joined: Oct 2014
Posts: 7
W
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
W
Joined: Oct 2014
Posts: 7
What you are looking for is a Bot program called DeepBot, It costs money try http://deepbot.deep.sg/

Nillen #248905 02/11/14 11:52 PM
Joined: Sep 2014
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 7
This is what I was after, didn't see the post as it was a while back my bad on that. Is there a way to add in where if a heist begins people can join in with them, as I tested it out and it seems people who type it in start a heist on their own, so like if i started a !heist is there a way to put in a command or line where if someone types !joinheist for example they join that and if they win they both get the prize and if they lose they don't get a prize, if you know what I mean. Thanks.
Code:
 
on *:text:!heist:#: {
  var %topic $+($chan,.,$nick)
  var %points $iif($readini(Points.ini,%topic,Points) == $null,0,$v1)
  if (%points < 50) { msg $chan $nick you do not have enough points to start a heist. | return }
  %points = $calc(%points - 50)
  msg $chan $nick has started a heist and it will last 15 seconds.  $+ . Removed 50 points from $nick (Had $calc(%points + 50) points and now has %points points).
  writeini -n Points.ini %topic Points %points
  var %rng $rand(1,10)
  if (%rng == 1) { 
    /timer1 1 15 msg # $nick, the heist went well, you earned 100 points
    %points = $calc(%points + 100)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 2) { 
    /timer 1 15 msg # $nick, the heist went bad, you lost 200 points
    %points = $calc(%points - 200)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 3) { 
    /timer 1 15 msg # $nick, the heist went well, you earned 50 points
    %points = $calc(%points + 50)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 4) { 
    /timer 1 15 msg # $nick, the heist went bad, you lost 100
    %points = $calc(%points - 100)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 5) {
    /timer 1 15 msg # $nick, the heist went well, you earned 300 points
    %points = $calc(%points + 300)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 6) {
    /timer 1 15 msg # $nick, the heist went bad, you lost 300 points
    %points = $calc(%points - 300)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 7) { 
    /timer 1 15 msg # $nick, the heist went well, you earned 350 points
    %points = $calc(%points + 350)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 8) { 
    /timer 1 15 msg # $nick, the heist went bad, you lost 50 points
    %points = $calc(%points - 50)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 9) { 
    /timer 1 15 msg # $nick, the heist went well, you earned 400 points
    %points = $calc(%points + 400)
    writeini -n Points.ini %topic Points %points
    return %points
  }
  if (%rng == 10) { 
    /timer 1 15 msg # $nick, the heist went bad, you lost 400 points
    %points = $calc(%points - 400)
    writeini -n Points.ini %topic Points %points
    return %points
  }
}


Link Copied to Clipboard