Thread: vote command

Results 1 to 6 of 6
  1. #1 vote command 
    Registered Member
    Join Date
    Apr 2012
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    hello i have been looking and looking and i was wanting to know if anyone has a command were when a play in game types vote it opens a webpage like google. anyone have anything like that for a 718? looking for the server side one not the client side
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Nov 2012
    Posts
    404
    Thanks given
    42
    Thanks received
    43
    Rep Power
    0
    if (playerCommand.equals("vote")) {
    if (c.inWild()) {
    c.sendMessage("You are unable to vote in the wilderness.");
    return;
    } else {
    if (System.currentTimeMillis() - c.restoreDelay >= 86400000) {
    c.sendMessage("Opening voting page...");
    c.getPA().sendFrame126("VOTING LINK HERE", 12000);
    c.getItems().addItem(995, 100000000);
    c.restoreDelay = System.currentTimeMillis();
    } else {
    c.sendMessage("You can only vote once every 24 hours.");
    }
    }
    }
    Reply With Quote  
     

  3. #3  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Also post in the correct section next time please =)


    Attached image

    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    starting...
    src\com\rs\game\player\content\Commands.java:2509: error: illegal start of expre
    ssion
    private Commands() {
    ^
    src\com\rs\game\player\content\Commands.java:2509: error: ';' expected
    private Commands() {
    ^
    src\com\rs\game\player\content\Commands.java:2512: error: reached end of file wh
    ile parsing
    }
    ^
    3 errors
    Press any key to continue . . .


    i get that as a error
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2012
    Posts
    28
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    This is a simple vote code this one should work fine =P ripped it off my commands.java it just takes you to the desired website also the code the guy gave you has illegal expressions...

    if (playerCommand.equals("vote")) {
    c.getPA().sendFrame126("YOURLINKHERE", 12000);
    c.sendMessage("Please vote every 24 hours!");
    }
    Reply With Quote  
     

  6. #6  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    28
    Posts
    1,318
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    He said for a 718 not 317. And RyPeZ why would that code give you a reward for opening a vote link but not even voting lol....
    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. ::vote command help :/
    By Scenemo in forum Help
    Replies: 5
    Last Post: 04-26-2011, 11:00 AM
  2. (pi) need help vote command i pay $5
    By H1N1 in forum Help
    Replies: 2
    Last Post: 01-11-2011, 11:09 PM
  3. [pi]::vote command or vote for cash
    By jessie thompson in forum Help
    Replies: 0
    Last Post: 12-30-2010, 07:53 AM
  4. vote command
    By Bondie8 in forum Help
    Replies: 1
    Last Post: 04-13-2010, 12:52 AM
  5. Command Vote
    By Africa in forum Help
    Replies: 11
    Last Post: 03-20-2010, 11:31 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
  •