• Welcome to Vice City Multiplayer.
 

basic sansan v1.3 mIRC rcon echo bot

Started by bakasan, January 27, 2008, 12:59:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bakasan

Download Link:
http://vicecitymultiplayer.com/downloads/scripts/vcmp-sansan_v1.3.zip

Here is a very basic version of sansan, my mIRC rcon echo bot.  It is an irc channel based bot, so you will want to make an irc channel for it to live in.  It handles the basics of irc including auto-identify, auto-channel join, and keepalive.  This version only has a few commands and features, as it is more intended to be a "starting point" for someone who wishes to make their own mirc echo.  At some point, I will be releasing some more advanced versions of sansan for those who just want a full-featured mirc echo without having to code anything.  As a side note, this was only tested on mIRC version 6.16, but should work on any newer versions of mirc just fine.



Incase some people want them, here are some basic instructions.

Getting Started:
1) make a new folder and extract sansan into it
2) copy your mirc.exe into the new sansan folder
3) run the mirc.exe and fill out all the needed mirc info in Tools->Options (mirc nicks, email, irc-server address, etc)
4) in irc type: /load -rs rcon.mrc
5) sansan will ask you for your /identify password
    note: sansan uses this to auto-identify your bot on the irc network
6) sansan will ask you for your "homechan" info
    note: this is the mIRC channel you want your bot to live in - include channel password if one is required to join the channel
7) sansan will ask you for the host - this is the server ip of your vcmp server
8) sansan will ask you for the port - this is your RCON port from your vcmp server config.ini
9) sansan will ask you for the pass - this is your adminpassword from your vcmp server config.ini
10) sansan should connect to the server right away
    troubleshooting:
     -if it doesn't load right away, first try just disconnecting/reconnecting to irc
     -if it still wont connect, you may have entered wrong info (click Scripts Editor button and go to Variables tab to view/change what you entered)
     -if all the above is correct you have some other problem not related to sansan



Included Features:

mIRC Features:
-Auto-Identify
-Auto-HomeChannel Join
-HomeChannel Commands based on channel permissions (game commands for vop, basic admin commands for hop, and top level commands for op)
-Commands to chat (!say or !chat) and pm (!pm or !msg) into game as well as !ip and !players
-HomeChannel Command flood protection
-"EchoLevel" feature allows you to control how much of the game is echoed into mIRC (usage: !echolevel <level>  -  e.g. !echolevel 6) note: must be at least hop in the homechan to set the echolevel
  !echolevel settings:
  0 - no echo into home channel (but game is still processed by the bot)
  1 - only joins / parts are echoed
  2 - only joins / parts and kills / deaths are echoed
  3 - only joins / parts, kills / deaths and chat are echoed
  4 - (default setting) echo shows all events that 3 does plus shows server adminchat events
  5 - shows all events 4 does, plus adminmsg server pms to players
  6 - shows all events 5 does, plus player enter/exit vehicle events
  if you just do !echolevel with no number, it will display the current echolevel


RCON Features:
-Auto-Connect
-Keep-Alive keeps trying to reconnect the bot if it disconnects
-Basic In-Game commands like !car !spawned !loc !hp !cash etc
-Random Weather set at random times (add settings to %climate to have them included into the randomiser)
-Chat Flood protection stops spammers





If any bugs or obvious blunders are discovered, please post them.  Please do not post feature requests, as the next version released will have a great many more features included.  This is the most stripped down version I will release.

Enjoy!

GTA-Roloboy

#1
Nice job! I will try it...

But when I look at it.. the first I think is..
Theres much not told to the scripters about the Rcon output...

mbalee

Nice work!

How create admin? Im typing commands (!setechospamlevel or other) and nth. :( :-/
What is my problem?

michelle


Mattz

Thanks for releasing sansan baka, now i got to understand the scripts better without messing up ;)

javipg94

Nice work bakasan!

I could connect it better than old echo ;)

See you :o

szostol

How to run it together with script bassed on gus?

Tanner

Extract it to the gus folder and type in mirc:
/load -rs <file_name.mrc>

Pluisje

ey yo bakasan nice work...but i got a problem and im getting this:* Made hash table 'vcmp' (4000)
-
* Made hash table 'acct' (5000)
-
* Made hash table 'stfu' (2000)
-
* Made hash table 'currentpickups' (500)
-
* Made hash table 'area' (500)
-
* Made hash table 'config' (1000)
-
** all pickups deleted.

did i do something wrong or is it normal

maxorator

It's normal since neither of those messages is a warning nor an error.

Pluisje

but then when i wanto join it shows only connecting to:.....

Racing

[variables]
n0=%identpw /identify 422859
n1=%homechan #racing 422859
n2=%echochan #racing
n3=%botname Dupyspoom
n4=%host 190.47.192.72
n5=%port 5315
n6=%pass antoniox
n7=%echolevel 4
n8=%max_retry 20
n9=%dll rcon.dll
n10=%max_players 50
n11=%currentmode none
n12=%acctsfile vcmp.accounts.hash
n13=%stfufile vcmp.stfu.hash
n14=%cpickupsfile vcmp.currentpickups.hash
n15=%confighash vcmp.config.hash
n16=%configfile config.ini
n17=%climate 4 4 1 0 1 4 4 4 1 0 1 4 4 4 1 0 1 4 4 1 0 1 4 4 0 1 5 4 0 1 3 1 0 4 2 0 1 6 1 0 4 4 1 0 1 4 4 1 0 1 4 4 1 0 1 4 4 1 0 1 4
n18=%valid.weaponmodel.ids 259 260 261 262 263 264 265 266 267 268 269 272 274 275 276 277 278 279 280 281 282 283 284 288 289
n19=%invalidweapons 28 29 30



Whats Problem You Script No Connect In vcmp-svr Please Help :D

Mattz

#12
Quote from: Pluisje on April 07, 2008, 09:33:30 PM
ey yo bakasan nice work...but i got a problem and im getting this:* Made hash table 'vcmp' (4000)
-
* Made hash table 'acct' (5000)
-
* Made hash table 'stfu' (2000)
-
* Made hash table 'currentpickups' (500)
-
* Made hash table 'area' (500)
-
* Made hash table 'config' (1000)
-
** all pickups deleted.

did i do something wrong or is it normal

Nothing wrong there Pluisje. Thats how sansan normally starts up.

And Racing if you host your server on the same computer as the script, Use IP 127.0.0.1
for the host.

n4=%host 127.0.0.1



TanaX01

Quote from: Tanner on February 05, 2008, 08:31:06 PM
Extract it to the gus folder and type in mirc:
/load -rs <file_name.mrc>

mm Sasan Bot and Connect SCRIPT GUS ?

sasan bot Connect in Server.srv

n4=%host 127.0.0.1

In Gus file vcmp.ini = IP=190.47.192.200

whats Script Connect 1st ?

Gus ? Whats Ip ? 127.0.0.1 ? or ? 190.47.192.200 ?

of other Servidor (PC) ??




Jack_Bauer

man i think you better of talking in spanish than in your english,if its not against the rules,post in spanish and ill transalate.