Thread: need help adding commands

Results 1 to 4 of 4
  1. #1 need help adding commands 
    Registered Member
    Join Date
    Dec 2013
    Posts
    20
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    i am a beginner to coding rsps's , but i was wondering how you would add a command to a src that has no commands yet?. how would you approach that? most places tell you to search for player.command in some of the files but this src does not have any commands yet. im not asking anyone to do this for me i'm just looking for a starting place to guide me to where i need to get to. any help is appreciated. thanks
    Reply With Quote  
     

  2. #2  
    Registered Member Life's Avatar
    Join Date
    Mar 2012
    Posts
    213
    Thanks given
    24
    Thanks received
    10
    Rep Power
    11
    Quote Originally Posted by dark 1075 View Post
    i am a beginner to coding rsps's , but i was wondering how you would add a command to a src that has no commands yet?. how would you approach that? most places tell you to search for player.command in some of the files but this src does not have any commands yet. im not asking anyone to do this for me i'm just looking for a starting place to guide me to where i need to get to. any help is appreciated. thanks
    Are you using PI?
    If so it is located in src\server\model\players\packets or you could search Commands.java.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2013
    Posts
    20
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    i'm using http://www.rune-server.org/runescape...474-clean.html , which i am now assuming is pi because i located what you mentioned. (i don't exactly know what pi stands for) really new to the whole rsps thing. but i appreciate your help . it lead me in the right direction.
    Reply With Quote  
     

  4. #4  
    Registered Member Life's Avatar
    Join Date
    Mar 2012
    Posts
    213
    Thanks given
    24
    Thanks received
    10
    Rep Power
    11
    Quote Originally Posted by dark 1075 View Post
    i'm using http://www.rune-server.org/runescape...474-clean.html , which i am now assuming is pi because i located what you mentioned. (i don't exactly know what pi stands for) really new to the whole rsps thing. but i appreciate your help . it lead me in the right direction.
    PI stands for Project Insanity.
    Well to me it seems like a PI, so all you do is open Commands.java then it really depends on what your going to add, you can look at some tutorials to add commands since I don't know what command you are trying to add.

    So lets say you want to make a teleport command the code would be something like this although you change the highlighted part to the coordinates you want, you could get the coordiantes by doing ::mypos, but it probably doesn't have it so you would need to code a command like that. Home is basically the command you have to type to teleport so for this, we would have to do ::home.
    Code:
    			if (playerCommand.startsWith("home")) {
    				c.getPA().startTeleport(2905, 3611, 0, "modern");	
    			}
    Well I can't really explain much but just look at some tutorials it will help a lot. PI base is good for starters since there are many tutorials for PI.
    You could visit some of these tutorials:
    http://www.rune-server.org/runescape...t-command.html
    http://www.rune-server.org/runescape...nd-coords.html
    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: 5
    Last Post: 05-26-2013, 05:02 AM
  2. need help adding "::commands" command PI
    By shocked kill in forum Help
    Replies: 1
    Last Post: 11-26-2012, 01:14 PM
  3. Need help adding a yelling command
    By Polkaman in forum Help
    Replies: 3
    Last Post: 07-26-2011, 06:48 AM
  4. Replies: 3
    Last Post: 06-17-2011, 12:58 AM
  5. [delta]need help adding command [scape]
    By qizdipin in forum Help
    Replies: 1
    Last Post: 04-26-2009, 08:47 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •