Thread: Help with a command [PI]

Results 1 to 3 of 3
  1. #1 Help with a command [PI] 
    Registered Member
    Join Date
    Nov 2012
    Posts
    33
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Well ive seen a few people with this but how do i make a command named ::god and it sets my stats at for an example like 600 for all stats and then do ::god to disable it. im on pi source please help me with this i will + rep
    Reply With Quote  
     

  2. #2  
    Registered Member KANYE WEST's Avatar
    Join Date
    Oct 2011
    Posts
    178
    Thanks given
    9
    Thanks received
    61
    Rep Power
    44
    If you want just a quick/temporary skill increase since this is from a small command, you can edit the contents of the "playerLevel" array in the Player class.

    For an example, if you were to add this statement in your god command:

    Code:
    c.playerLevel[2] = 99;
    c.getPA().refreshSkill(2);
    It will set the player's strength level to 99.
    Instead of just spoiling the fun and letting me write the command for you, you should try and play around with this yourself.
    This list of skill ids might help you.

    Spoiler for Skill ID List:
    Code:
    	playerAttack = 0;
    	playerDefence = 1
    	playerStrength = 2
    	playerHitpoints = 3
    	playerRanged = 4
    	playerPrayer = 5
    	playerMagic = 6
    	playerCooking = 7
    	playerWoodcutting = 8
    	playerFletching = 9
    	playerFishing = 10
    	playerFiremaking = 11
    	playerCrafting = 12
    	playerSmithing = 13
    	playerMining = 14
    	playerHerblore = 15
    	playerAgility = 16
    	playerThieving = 17
    	playerSlayer = 18
    	playerFarming = 19
    	playerRunecrafting = 20
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    33
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    ty so much +rep
    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: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 1
    Last Post: 08-16-2008, 04:05 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
  •