Thread: [PI] 317 - Need an ::item command - 317 [PI]

Results 1 to 2 of 2
  1. #1 [PI] 317 - Need an ::item command - 317 [PI] 
    Registered Member
    Join Date
    Jun 2013
    Posts
    84
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    So everytime I try to make my own ::item command for my spawn/pk server, I get errors. I need a command that when you do :haroks, it spawns the dharoks but you have to have 50m to spawn it. Once spawned, the money is taken and the dharoks is given. I know this is released and stupid of me to ask, but I really need it.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    24
    Posts
    4,445
    Thanks given
    892
    Thanks received
    1,525
    Rep Power
    3206
    Well a dharoks command specificly just add:

    Code:
    if (playerCommand.startsWith("dharoks")) {
    if (c.getItems().playerHasItem(995, 50000000)) {
    c.getItems().deleteItem2(995, 50000000);
    c.getItems().addItem(4716, 1);
    c.getItems().addItem(4718, 1);
    c.getItems().addItem(4720, 1);
    c.getItems().addItem(4722, 1);
    } else {
    c.sendMessage("You need 50m to buy this.");
    }
    }
    Lack of indentation. You get the idea though.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Need an economy reseter for PI
    By asillybunny in forum Help
    Replies: 6
    Last Post: 12-14-2010, 11:12 PM
  2. Help Needed For A Command 317 Delta
    By pyrotic in forum Help
    Replies: 0
    Last Post: 12-11-2010, 01:47 PM
  3. [PI] How to make an item 2handed :fp: [PI]
    By Kickyamom in forum Help
    Replies: 2
    Last Post: 12-06-2010, 06:11 AM
  4. Replies: 3
    Last Post: 11-21-2010, 01:13 PM
  5. [317]Need an experienced coder[Paying]
    By L0KI in forum Requests
    Replies: 4
    Last Post: 07-26-2010, 06:34 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
  •