Author Topic: Making a new #command  (Read 5437 times)

0 Members and 1 Guest are viewing this topic.

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
Making a new #command
« on: September 7, 2003 02:35 pm CDT »
I've looked at the files, but I don't quite understand.

How can I program in a new #command for an RPG server?

Thanks in advance.

(By the way, I came here because I know some of you are RPG gurus)

Also, as long as I'm asking things already... how can I add actions to an IDACTION on an RPG server? (So I can lock out like the jet IDACTION when I want to).
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #1 on: September 7, 2003 02:41 pm CDT »
What kind of command?
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
(No subject)
« Reply #2 on: September 7, 2003 02:58 pm CDT »
#getclass

After I learn this I'll do others, but this will be my base knowledge.
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

Particle

  • Chief Codemonger
  • Administrator
  • Centurian Lord
  • ********
  • Posts: 5,904
  • Reputation: +20/-4
    • Particle's Custom RPG
(No subject)
« Reply #3 on: September 7, 2003 04:21 pm CDT »
Crack open comchat.cs and look at the format for all the # commands.  There's some basic lines of code to add in (just copy them from any other admin command and change the admin level required) and then if they validate, then whatever the field is called for the fetchData function.  You could simply print that into the chat window of the admin.
« Last Edit: December 31, 1969 06:00 pm CST by Particle »
As a point of history:  Our last server clear was on September 27, 2004.  That is 4963 days ago (13.6 years) as of today.

If you're visiting after a long hiatus and have forgotten your password, try emailing me via the support form at http://www.pcrpg.org.

If your character is from after the 2004 clear but appears to have been deleted or reset, chances are it was caught in one of the inactive account purges over the years.  Backups were made before such events, so try the support form.

Hersh

  • Elvin Legion
  • *****
  • Posts: 413
  • Reputation: +0/-0
(No subject)
« Reply #4 on: September 7, 2003 06:24 pm CDT »
Look at #gethp that is pretty much what yours will look like.
Change a few words, mainly HP and use
fetchData(%id, "CLASS")

rpgfunk.cs has a list of all the fetchData's you could possibly need.

Hersh
« Last Edit: December 31, 1969 06:00 pm CST by Hersh »

I kissed a drunk girl on the lips.
This post, by its very length, defends itself against the risk of being read.

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #5 on: September 7, 2003 09:34 pm CDT »
wow... Hersh, that avatar looks exactly like and avatar I made but never uploaded or used :-D

Back on topic...
You'll need to have a volume tool to unvolume the scripts.vol file in your rpg folder.  You can get on from coca-bears site, which is in a link from the credits page of the FAQ in my signature link. :-)
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

Hersh

  • Elvin Legion
  • *****
  • Posts: 413
  • Reputation: +0/-0
Re: Making a new #command
« Reply #6 on: September 7, 2003 10:43 pm CDT »
Quote from: "bigbigger9"
Also, as long as I'm asking things already... how can I add actions to an IDACTION on an RPG server? (So I can lock out like the jet IDACTION when I want to).

Dunno, try "sae.cs" that should probably help you understand a bit.

Quote from: "Lidge Farkley"
wow... Hersh, that avatar looks exactly like and avatar I made but never uploaded or used :-D

Lol, check the URL, its from my friend Leth's site...maybe he got it from you...

Hersh
« Last Edit: December 31, 1969 06:00 pm CST by Hersh »

I kissed a drunk girl on the lips.
This post, by its very length, defends itself against the risk of being read.

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #7 on: September 7, 2003 11:02 pm CDT »
naa hersh, I never uploaded my mine ;-)


BUT... in that Poll I voted for ES2 as well! ! !  ES2 was the best there, followed by Unreal, then Tribes.

I really have trouble registering for new sites though... ther're so damn many of them...!

Back on topic:
I forgot what I was going to say :-/
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
(No subject)
« Reply #8 on: September 8, 2003 06:56 pm CDT »
Thanks guys.
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #9 on: September 8, 2003 11:19 pm CDT »
No problem, we're glad to help. :-D
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff