Thread: Ticket command system (fully working) c&p 317 pi

Results 1 to 6 of 6
  1. #1 Ticket command system (fully working) c&p 317 pi 
    Registered Member
    Join Date
    Aug 2016
    Age
    25
    Posts
    159
    Thanks given
    26
    Thanks received
    3
    Rep Power
    63
    delete
    Reply With Quote  
     

  2. #2  
    Registered Member Mr. Snow's Avatar
    Join Date
    Feb 2015
    Age
    25
    Posts
    222
    Thanks given
    42
    Thanks received
    33
    Rep Power
    61
    Quote Originally Posted by CoderRelapse View Post
    I just thought i would make this because i was in need of a quick one for my server and as i was copying other peoples work that they kindly had released, it was working 50% and the other 50% was just failing on me, so i decided to take about 10 minutes just to come up with a simple one that fully works, with no issues.

    If you need help, feel free to comment
    or if u have questions feel free to comment.

    Go to commands.java
    and simply just copy and paste the code below
    Spoiler for Ticket system:
    if (playerCommand.startsWith("ticket")) {
    c.getPA().startTeleport(2009, 4755, 0, "modern");
    String[] args = playerCommand.split("");
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c2 = (Client)Server.playerHandler.players[j];
    c2.sendMessage("@red@[HELP] @blu@"+c.playerName+" is requesting help at the help zone!");
    c.sendMessage("@red@Help will be with you shortly");
    }
    }
    }

    if (playerCommand.startsWith("acceptticket")) {
    String[] args = playerCommand.split("Sanity");
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c2 = (Client)Server.playerHandler.players[j];
    c2.sendMessage("@red@[STAFF] @blu@"+c.playerName+" has accepted the recent ticket");
    c.getPA().startTeleport(2009, 4755, 0, "modern");
    c.forcedChat("Hello, how may i assist you?");
    }
    }
    }


    you can tidy it up if you would like but, a simple copy and paste will do the work just fine!
    Id recommend putting that code into a..

    Code:
    Block
    Id give you my opinion of the code but im not going to try reading it while its in a spoiler & disorganized.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2016
    Age
    25
    Posts
    159
    Thanks given
    26
    Thanks received
    3
    Rep Power
    63
    Quote Originally Posted by mushroom tip View Post
    Id recommend putting that code into a..

    Code:
    Block
    Id give you my opinion of the code but im not going to try reading it while its in a spoiler & disorganized.
    was my first time posting something like this so im not going to complain with criticism, but i will try to tidy it up .
    Reply With Quote  
     

  4. #4  
    Registered Member Mr. Snow's Avatar
    Join Date
    Feb 2015
    Age
    25
    Posts
    222
    Thanks given
    42
    Thanks received
    33
    Rep Power
    61
    Quote Originally Posted by CoderRelapse View Post
    was my first time posting something like this so im not going to complain with criticism, but i will try to tidy it up .
    No worries. I just dont want to put effort into understanding your code. If its coded & placed in the correct format its much easier to read.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    https://www.rune-server.ee/runescape...m-command.html

    At least change the fucking coords & texts jesus

    edit; ok u 'made it 100% working' but at least credit the guy lmao
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    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. Buying 100% working GrandExchange for my 317 pi
    By BryceTheCoder in forum Buying
    Replies: 16
    Last Post: 12-19-2015, 06:09 PM
  2. Replies: 0
    Last Post: 07-14-2013, 02:48 PM
  3. The Fully Working Unban command.
    By Musicmad in forum Tutorials
    Replies: 53
    Last Post: 12-23-2008, 11:19 PM
  4. Fully working CREATIVE Thieving System [Very Economic]
    By Hybrid Pk3r in forum Tutorials
    Replies: 23
    Last Post: 07-16-2008, 05:17 AM
  5. Fully Working UNban command
    By Martin in forum Tutorials
    Replies: 2
    Last Post: 04-19-2008, 03:13 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
  •