Thread: (317) Help me please

Results 1 to 4 of 4
  1. #1 (317) Help me please 
    Registered Member
    Join Date
    May 2014
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    So i have just got my server online and me being the owner have this tab in the green quest tab so i may make certain selections and i will get a zerker set, or melee set, or pots, or veng runes, etc. this being a pk server i would like everyone to be able to have this i there green quest tab or just be able to do the ::melee, and ::zerker, and ::hybrid, and ::range, and :ots, and ::food, and ::veng, etc..... PLEase add me on skype if u can help me at Accountv2



    http://tinypic.com/r/2i9ah1/8
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2013
    Posts
    594
    Thanks given
    261
    Thanks received
    104
    Rep Power
    247
    wrong section mate, you seem new to coding, i strongly advise you don't use that for your first server


    coding those commands literally take 3 mins, if you cant do that, you shouldn't be hosting that server

    TIP: remember to use a IDE such as eclipse
    goodluck, hex
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    813
    Thanks given
    69
    Thanks received
    47
    Rep Power
    9
    For the ::melee or ::range, you can just add your own commands. Like this

    Code:
     if (playerCommand.equalsIgnoreCase("melee"))
                {
                    if (c.inWild())
                    {
                        c.sendMessage("You cannot use this in the Wilderness1.");
                        return;
                    }
                    if (c.getItems().freeSlots() > 13)
                    {
                        if (c.getItems().playerHasItem(995, 265000))
                        {
                            c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 265000);
                            c.sendMessage("You spawn a melee set for 265k.");
                            c.getItems().addItem(2440, 1);
                            c.getItems().addItem(2436, 1);
                            c.getItems().addItem(6685, 1);
                            c.getItems().addItem(3024, 3);
                            c.getItems().addItem(557, 100);
                            c.getItems().addItem(9075, 40);
                            c.getItems().addItem(560, 20);
                            c.getItems().addItem(10828, 1);
                            c.getItems().addItem(1712, 1);
                            c.getItems().addItem(1127, 1);
                            c.getItems().addItem(1079, 1);
                            c.getItems().addItem(3105, 1);
                        }
                        else
                        {
                            c.sendMessage("You need 265k to buy this item.");
                        }
                    }
                    else
                    {
                        c.sendMessage("You must have at least 14 inventory spaces to buy this item.");
                    }
                }
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    May 2014
    Age
    29
    Posts
    78
    Thanks given
    0
    Thanks received
    6
    Rep Power
    0
    Go to whatever class that is handling your clicking of buttons and you should find the code that says you can only click it if you're admin. Simply remove it and you're good to go. Wrong section btw.
    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. Help me please
    By ima r4p3 y0u in forum Models
    Replies: 3
    Last Post: 01-29-2015, 10:25 PM
  2. PI 317 client help me please guys!
    By phonesout123 in forum Help
    Replies: 0
    Last Post: 05-01-2012, 08:44 PM
  3. [317]Help me please..
    By RSong in forum Help
    Replies: 1
    Last Post: 07-21-2010, 04:33 PM
  4. Help me please, this is urgent..
    By Mike in forum Chat
    Replies: 7
    Last Post: 02-16-2009, 03:57 AM
  5. help me please
    By uchiha owner in forum Tutorials
    Replies: 4
    Last Post: 01-23-2008, 07:27 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •