IT Community - Software Programming, Web Development and Technical Support

game server mod

This is a discussion on game server mod within the C and C++ Programming forums, part of the Software Development category; Well ive read about 5 chapters in my C++ book. Im comfortable working with the dev environment and i pretty ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-24-2007, 01:03 AM
pranky pranky is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 51
pranky is on a distinguished road
Default game server mod

Well ive read about 5 chapters in my C++ book. Im comfortable working with the dev environment and i pretty much know the basic C++ stuff. However like I did when I first started php, i'm going to start with a project that is way over my head.

I want to make a simple server mod for this game I play. Basically what i want to do is (since the game is pretty old and there are a lot of cheaters playing) create a "Punt/Ban mod." Currently only the administrator of the server can punt/ban a player (can only be done server side.) I would like to create a mod that would allow players to punt a player after a certian ammount of votes. For example, I would type "punt kick 16" and then the server would reply "Vote 1 of 5 to kick player 16" then if 4 other people did that, it would have the server execute the punt command.


I guess the first step is to find out what the players are saying in the game, and therefor when the "punt kick" command is typed, the server can recogonize it and do what its suppose to do. So, when ever a player says something it is sent to the server and stored in these hex addresses (i think, at least thats what TSearch found):
0007EEC1C
0007EEC2C
0007EEC3C

The second part would be to execute the actual punt command. To do that, when it is "Vote 5 of 5" the server would punt the player. Ive seen some VB tutorials where u can just tell the server to press ~ and type "punt 16" like this:
Code:
Code:

Private Sub WriteText(Text As String)
   
    SendAMessage (Asc("~")) 'Press's ~ *brings up the chat propmt*.
   
    Sleep (50) 'Gives the chat propmt some time to initialize.
     
    Call WriteAscii(something goes here, Text) 'Writes text to the  prompt.

    Sleep (50) 'Gives sometime to the writing to finish.

    SendAMessage (vbKeyReturn) 'Press's ENTER *submits message*.
End Sub

but im not sure how to do that in C++. So if anyone can tell me some functions or things i should look into, i would appreciate it.

Thank You.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Game Physics nhoj Game Development 4 11-04-2008 03:26 AM
First PC Game you Played tripnautic Game Development 25 03-03-2008 12:19 AM
Best Game Lighting nhoj Game Development 1 04-29-2007 02:11 PM
Your favorite game? Pixel The Lounge 6 03-16-2007 01:48 AM
XBox 360 XNA Game Programming pranky C# Programming 0 02-23-2007 09:34 AM


All times are GMT -7. The time now is 09:56 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0