scripts.dll and custom commands on a server. [message #281793] |
Fri, 31 August 2007 16:46 |
qwertwert125
Messages: 73 Registered: August 2007
Karma: 0
|
Recruit |
|
|
I have finally got my server to the point of running.
I have realized that alot of servers have custom commands implemented into thier server.
examples:
!build turret:withdraws credits from player's total and places a turret at player's location
!buy mammoth: withdraws credits from player's total and spawns a mammoth in front of player
ect...
I would like to know how to do this.
1: I would like to know the excat name of the file i need to open.
2:I would like to know how to find the information in the file (what the line would look like eg: in xxxx.ini: colfgod: yes; as no one would really know what it is, it would help to have an explination.)
3: I realize this may require a C++ compiler. I have one of these and have a pretty good grasp on it. I would like to know the section of code that would make "!build turret" work so I may use it as a reference in future scripting.
Thanks
PS: if I am going in the wrong direction in getting commands to work, please DO NOT post any replys such as:
"you dont use c++ for it"
"youll need yaddayadda to do it"
"your wrong about suchandsuch"
...unless you describe how to fix such problem.
please be specific. remember
BAD DIRECTIONS: open the jar of peanutbutter
GOOD DIRECTIONS: open the jar of peanutbutter by unscrewing the lid.
fear me or i sahll do one of the following:
1)make you brain explode with a logical paradox from hell.
2)*use a statement of death, doom, and disembowlment surrounded by asteriks of debotchery*
3)eat cake.
|
|
|
Re: scripts.dll and custom commands on a server. [message #281801 is a reply to message #281793] |
Fri, 31 August 2007 18:11 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
The easiest way to make custom commands would be with the LUA SSGM plugin. It allows commands to be scripted in a simple scripting language called LUA.
You can download it here.
SSGM can be downloaded here if you don't already have it.
If you need help with the LUA plugin then post on their support forums.
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
Re: scripts.dll and custom commands on a server. [message #281912 is a reply to message #281793] |
Sat, 01 September 2007 12:27 |
qwertwert125
Messages: 73 Registered: August 2007
Karma: 0
|
Recruit |
|
|
Now THATS a usefull reply. Thank you.
Youd be surprized at how many forums would reply the same as you, but make it impossible to understand.
..............................................................
Re: scripts.dll and custom commands on a server. Fri, 31 August 2007 20:11
Whitedragon
The easiest way to make custom commands would be with the LUA SSGM plugin. It allows commands to be scripted in a simple scripting language called LUA.
You can download it here.
SSGM can be downloaded here if you don't already have it.
If you need help with the LUA plugin then post on their support forums.
.............................................................
This reply was VERY usefull.
fear me or i sahll do one of the following:
1)make you brain explode with a logical paradox from hell.
2)*use a statement of death, doom, and disembowlment surrounded by asteriks of debotchery*
3)eat cake.
|
|
|
Re: scripts.dll and custom commands on a server. [message #281950 is a reply to message #281793] |
Sat, 01 September 2007 16:27 |
|
AoBfrost
Messages: 1248 Registered: March 2007
Karma: 0
|
General (1 Star) |
|
|
There is a way to code the source files of ssgm or ssaow to do the same, but it is much harder, using lua is easier because it's VB style coding which is easy to understand, PLUS roshambo who made the lua plugin, included a turret and tower plugin, you can edit the cash, messages, blah blah, customize it, or you can even make your own commands.
Scrin wrote on Fri, 05 October 2007 12:19 | ''whoa im the photoshop''
|
KANE LIVES!!!
|
|
|