This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Little bit of help for project

Old posts that have not been replied to for several years.
Locked
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Little bit of help for project

Post by Rav^4u »

Hello chaps.. as you seem to be friendly and helpfull people.. I have a request :D

I am working on a CS Pickup script (mixed pcws) So far I have the teams arrnaged in irc via !addme commands.. and the whole match process if perfectly controlled via amx mod :D

The only problem i have is a way of getting people to get add themselves to the bot with their wonid as extra information.. this way when they add themselves to a game (!addme) their wonid is pulled from that and then i can send to server from there the rest is easy. But I am not very good with TCL and lack the know-how. Help would be appreciated :D

pls PM or contact via email or #aon.pickup to get me
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Can you not have them type their wonid as a parameter to !addme? Assuming you have a pub bind for !addme, the extra stuff they type is passed in the last parameter to the bind.
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

could do but..

1. They have to know their wonid everytime
2. if the get it wrong (1 digit) it buggers up the game
3. err thats it just he 2 :D
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

:( still struggling with this one
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Rav^4u wrote::( still struggling with this one
Still not sure if I understand what you want. But here is a guess.

1. The users are first added to your bot with a handle and the wonid is stored as XTRA information on the bot and the bots userfile.

2. Everytime the users does "!addme" (i.e. add that user to the game) and that user is recognised by a handle, the wonid is retrieved from the XTRA information.
Last edited by egghead on Thu Jun 19, 2003 10:39 am, edited 2 times in total.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Forum gives a weird error upon posting.

Code: Select all

                                        Failed sending email :: 

                                               DEBUG MODE

                                                 Line : 225
                             File : /home/egghelp/public_html/forum/includes/emailer.php
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Yah, I've noticed myself this a few hours ago. I've also sent a mail to slennox, but seems he is not around to fix it. I've also noticed that this happens only if you don't have the Notify on bla bla bla thing.. and sometimes it works normaly sometimes the error pops out.. weird..
Once the game is over, the king and the pawn go back in the same box.
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

1. The users are first added to your bot with a handle and the wonid is stored as XTRA information on the bot and the bots userfile.

2. Everytime the users does "!addme" (i.e. add that user to the game) and that user is recognised by a handle, the wonid is retrieved from the XTRA information.
Spot on :D from there the details of the game are sent to server (from there I know what im doing with amx scripting) ie.. the details are rcon'd to server via

set rcon [open "|$rcon_path/rcon $rcon_password1 $rcon_address1 $rcon_port1 \"changelevel $pwf_maptopic\"" r]

if I can have the xtra information sent like the $pwf_maptopic is that would be perfect.. that way the players teams can be controlled/forced and many other things from there.
Locked