-
Notifications
You must be signed in to change notification settings - Fork 0
Simulate
David edited this page Dec 10, 2017
·
1 revision
Author: Davnit / Pyro
Description: Simulates Battle.net events.
WARNING: This is an advanced script and using it could cause problems with your bot.
Commands:
- /sim <event> [args]
- Simulates <event>
- Recognized events:
- leave <username>: Simulates a user leaving the channel.
- Example: /sim leave %me
- Wildcards are accepted to simulate multiple users leaving.
- load <size> <base_name> [flags] [ping] [stats]: Simulates a massload of <size> accounts, with numbered names based on <base_name>. Optional flags, ping, and stats can be specified for the joining users.
- Examples:
- /sim load 40 bawts
- /sim load 40 notblizzard 1
- Examples:
- rejoin <username>: Simulates the specified user leaving the channel and rejoining.
- Example: /sim leave %me
- Wildcards are accepted to simulate multiple users rejoining.
- ban <target> <operator> [reason]: Simulates <target> being banned by user <operator> for [reason].
- Reason is optional.
- Examples:
- /sim ban bob steve
- /sim ban bob steve get out of my house
- kick <target> %lt;operator> [reason]: Same as ban except a kick.
- info <message>: Simulates a server info message.
- Example: /sim info hello
- error <message>: Same as info except its an error.
- icontest <type>: Simulates users joining the channel with different icons.
- Available types:
- flags: Users join with flag-based icons (blizzard, operator, squelched, etc)
- products: Users join with the base icons for each of the products.
- diablo: Users join with each of the icons for Diablo 1.
- starcraft: Users join with each of the icons for StarCraft.
- warcraft2: Users join with each of the icons for WarCraft 2.
- diablo2: Users join with each of the icons for Diablo 2.
- warcraft3: Users join with each of the icons for WarCraft 3.
- Available types:
- Also accepted are any of the standard Battle.net chat events.
- When using these options the arguments are: [username] [flags] [ping] [message]
- user: A user is present in the channel
- join: A user joins the channel
- whisper: A whisper is received from a user
- talk: A user talks in the channel
- broadcast: A server broadcast is received
- channel: A channel is joined.
- flags: A flag update is received for a user.
- chanfull: A channel is full.
- channoexist: A channel doesn't exist.
- chanrestrict: A channel is restricted.
- emote: A user uses an /emote in the channel.
- When specifying flags for any of the events, they can be either numeric or named. When named, they can be combined using pipes (|).
- Example: /sim join bob op|squelch
- Recognized named flags: blizzard, op, speaker, admin, udp, squelch, guest, reserved, beep, pglplay, pgloff, kbkplay, wcgoff, kbksingle, kbkbegin, kbkwhite, gfoff, gfplay, pglplay2
- leave <username>: Simulates a user leaving the channel.
Notes: To "reset" the simulation to reality can usually be achieved by rejoining the channel. If that does not work, reconnecting the bot should fix any issues.