Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Script Showroom => Topic started by: bakasan on January 27, 2008, 12:59:02 PM

Title: basic sansan v1.3 mIRC rcon echo bot
Post by: bakasan on January 27, 2008, 12:59:02 PM
Download Link:
http://vicecitymultiplayer.com/downloads/scripts/vcmp-sansan_v1.3.zip (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!
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: GTA-Roloboy on January 27, 2008, 03:06:00 PM
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...
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: mbalee on January 27, 2008, 05:23:13 PM
Nice work!

How create admin? Im typing commands (!setechospamlevel or other) and nth. :( :-/
What is my problem?
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: michelle on January 28, 2008, 05:18:04 PM
 ;D
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Mattz on January 29, 2008, 07:19:18 PM
Thanks for releasing sansan baka, now i got to understand the scripts better without messing up ;)
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: javipg94 on February 03, 2008, 12:50:28 AM
Nice work bakasan!

I could connect it better than old echo ;)

See you :o
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: szostol on February 04, 2008, 06:01:47 PM
How to run it together with script bassed on gus?
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Tanner on February 05, 2008, 08:31:06 PM
Extract it to the gus folder and type in mirc:
/load -rs <file_name.mrc>
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: 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
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: maxorator on April 07, 2008, 11:06:29 PM
It's normal since neither of those messages is a warning nor an error.
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Pluisje on April 08, 2008, 04:10:57 PM
but then when i wanto join it shows only connecting to:.....
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Racing on May 19, 2008, 06:34:50 AM
[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
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Mattz on May 20, 2008, 03:04:13 PM
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


Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: TanaX01 on June 17, 2008, 06:00:28 AM
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) ??



Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Jack_Bauer on June 17, 2008, 04:52:38 PM
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.
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: Jkownz on August 28, 2008, 06:03:59 AM
Works good thats all I care so Good Job
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: spike on September 02, 2008, 09:16:56 PM
Dont' Work M8
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: fibox on September 08, 2010, 04:26:15 PM
link is broken please repair this
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: StriKe on September 08, 2010, 04:31:47 PM
It's 2.5 year old topic and get yourself latest vcmp rcon dll or vrocker's dll to script your own echo bot :>
Title: Re: basic sansan v1.3 mIRC rcon echo bot
Post by: fibox on September 09, 2010, 12:15:20 AM
join in this link is a database with gus9 and sansan 3 and more
http://db-forge.comuv.com/