mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
I want to make a script for playing multi-user online. Please help me.

Example when BOT say "veso please typing !veso 000 => 999 to play" my nick is automatically completed "!veso 000 to !veso 999"

Illustration:



Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
I don't think anyone understands what you're asking for smirk

Try and give another example, or explain it differently

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
I'm pretty sure he wants to loop from 000 to 999 and message a chan that number whenever a bot triggers that


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Other examples:

When bot informed Blackjack game. BOT said it was time to play blackjack, put money. Meanwhile, my nick is automatically put money to play the game. With that command !Xidach 100000000. (in Vietnam blackjack also called xidach). Automated scripts to perform things like. Please help me. Thank you.

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Oh, ok. Well, that's very basic. You need an on text event. Just use this guide: http://en.wikichip.org/wiki/mirc/on_event#On_Text.2C_Action.2C_and_Notice

But please don't use it to abuse other bots that are poorly coded.

Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Originally Posted By: Sakana
Oh, ok. Well, that's very basic. You need an on text event. Just use this guide: http://en.wikichip.org/wiki/mirc/on_event#On_Text.2C_Action.2C_and_Notice

But please don't use it to abuse other bots that are poorly coded.


Thank you! Big thank for you! But sorry, my english is bad, so I still do not understand.

I would reinterpret photos



Veso means lottery. This is buy lottery game.

Now I have one piece of code used to register and join:

Code:
 on *:START:{
  server googlesky.hopto.org
}

on *:CONNECT:{
  if ($network == TorViet) {
    nick quanbhvn-HD
    timer 1 2 join #TorViet
    timer 1 4 msg HD|BOT !register 9a6cdc5788a949aa45c35bf43a3***** ee95b8c7b8946d537323f744c06a****
    timer 1 5 msg HD|BOT !login 9a6cdc5788a949aa45c35bf43a3*****
  }
}


please complete the script, so I can start playing the game mentioned above. Time between two commands is 3 seconds. Thank you.


Bonus Video. Please help me. Thank all.
[video]https://youtu.be/3YY3-t6xoLY[/video]

Last edited by quanbhvn; 20/07/15 02:27 PM.
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Someone please help me!

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Sorry bro, that's unethical unless you have permission from the owner of that bot

Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Owners BOT says: allows auto. But he did not instruct how to auto. He said let's find out.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:*!veso 000 -=> 999*:#Torviet: { 
if ($nick == HD|Bot) timerVeso_loop 0 3 veso_loop # 
}

alias veso_loop {
  var %chan $$1
  if (%veso == 999) { timerVeso_loop off | unset %veso | return }
  elseif (%veso == $null) %veso = 0
  else inc %veso
  if ($len(%veso) == 1) var %0s 00
  elseif ($len(%veso) == 2) var %0s 0
  msg %chan !veso $+(%0s,%veso) 
}
Paste this script below your other scripts you had. Untested but should work.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Originally Posted By: Nillen
Code:
on *:text:*!veso 000 -=> 999*:#Torviet: { 
if ($nick == HD|Bot) timerVeso_loop 0 3 veso_loop # 
}

alias veso_loop {
  var %chan $$1
  if (%veso == 999) { timerVeso_loop off | unset %veso | return }
  elseif (%veso == $null) %veso = 0
  else inc %veso
  if ($len(%veso) == 1) var %0s 00
  elseif ($len(%veso) == 2) var %0s 0
  msg %chan !veso $+(%0s,%veso) 
}
Paste this script below your other scripts you had. Untested but should work.


Thank you very much, Nillen.

time to play this game is 1 minute. time between 2 command is 3 seconds. So just 20 commands. I wish the numbers include: 000, 111, 222, 333, 444, 555, 666, 777, 888, 999, 100, 011, 022, 033, 044, 055, 066, 077, 088, 099.
If it is difficult, I want the numbers 000, 001 .... 019. if still difficult, the random numbers are selected, but must end after 20 commands

So the code above should modify anything?

Last edited by quanbhvn; 23/07/15 01:44 PM.
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
That script is not working, Nillen. Try to help me. Thank you.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Tested it and working.
How do you want to trigger the script? It's currently set to trigger when the bot named HD|Bot says the string you posted in the image.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 25
Q
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jul 2015
Posts: 25
Thank you, Nillen. But i'm sure this script not working. BOT owners say: wrong in this paragraph *!veso 000 -=> 999*
Because there are other hidden characters and color of the characters.


Last edited by quanbhvn; 31/08/15 11:31 AM.
Joined: Jul 2006
Posts: 4,146
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,146
Yes, you must strip the colors from the text before matching, you can't do that with regular wildcard matching, but mIRC has a special modifier for regular expression, the 'S' modifier, allowing to do that, change:
Code:
on *:text:*!veso 000 -=> 999*:#Torviet: {

to
Code:
on $*:text:/!veso 000 -=> 999/Si:#Torviet: { 


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard