Thread: [PI] How to add custom commands?

Results 1 to 2 of 2
  1. #1 [PI] How to add custom commands? 
    Registered Member
    Join Date
    Aug 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey everyone,

    I am trying to just play around on a source and client I downloaded, I want to add a custom command for it. Something along the lines of ::curses because instead of praying at the altar, simply just type the command and boom you have curses.

    Does anyone know how I would go about doing that? I know it goes in commands.java but I am not sure were or the actual code it's self.

    Thanks a ton,
    Mike
    RSPS Development is life.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    May 2013
    Age
    22
    Posts
    557
    Thanks given
    35
    Thanks received
    45
    Rep Power
    0
    Quote Originally Posted by Zewko View Post
    Hey everyone,

    I am trying to just play around on a source and client I downloaded, I want to add a custom command for it. Something along the lines of ::curses because instead of praying at the altar, simply just type the command and boom you have curses.

    Does anyone know how I would go about doing that? I know it goes in commands.java but I am not sure were or the actual code it's self.

    Thanks a ton,
    Mike
    Something like this?
    Code:
    if (playerCommand.equalsIgnoreCase("curses")) {
            if (c.altarPrayed == 1)
                c.altarPrayed = 0;
            if (c.altarPrayed == 0)
                c.altarPrayed = 1;
        }
    }
    I just googled it so I don't even know if it works
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 26
    Last Post: 03-10-2014, 07:38 PM
  2. Replies: 3
    Last Post: 03-20-2012, 10:37 PM
  3. {pi} how to add custom animations?
    By Sieu in forum Help
    Replies: 0
    Last Post: 12-24-2011, 09:51 PM
  4. Replies: 52
    Last Post: 11-28-2011, 02:22 AM
  5. [PI] How to add ::commands command?
    By JayPkz in forum Help
    Replies: 1
    Last Post: 07-26-2011, 09:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •