Thread: Small little problem

Results 1 to 3 of 3
  1. #1 Small little problem 
    Kanketsu
    JacobiYounger's Avatar
    Join Date
    Aug 2009
    Posts
    723
    Thanks given
    49
    Thanks received
    31
    Rep Power
    31
    case 18:
    sendOption5("Donator", "", "", "", "");
    if (c.isDonator == 1) {
    c.teleAction = 500;
    } else {
    c.sendMessage("This is @red@donators@bla@ only feature.");
    }
    break;
    I know I am missing a small little code, but I honestly can't remember or find for the life of me.

    The problem is even if a player is not "isDonator == 1" they will still teleport to a random place, and get the message. But if they do have donator status they don't get the message and teleport to the right place.

    Anyone?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2012
    Posts
    900
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    Code:
    case 18:
    sendOption5("Donator", "", "", "", "");
    if (c.isDonator == 1) {
    c.teleAction = 500;
    } else {
    c.sendMessage("This is @red@donators@bla@ only feature.");
    c.teleAction = -1;
    return;
    }
    break;
    Reply With Quote  
     

  3. #3  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    in ClickingButton.java search for
    Code:
    teleAction == 500
    If you find that line then make sure where its teleporting you is where you wanna go. If you can't find that line then search for
    Code:
    case 9190:
    in ClickingButtons, the same class your in, and put something like;
    Code:
    if(c.teleAction == 500) {
    c.getPA().startTeleport(6400 / 2, 6400 / 2, "modern");
    c.teleAction = -1;
    c.sendMessage("You teleport to the center of RuneScape.");
    }
    Replace what you have in DialogueHandler with
    Code:
    case 18:
    sendOption5("Donator", "", "", "", "");
    if (c.isDonator == 1)
          c.teleAction = 500;
    else {
          c.sendMessage("This is @red@donators@bla@ only feature.");
          c.teleAction = -1;
          c.dialogueAction = -1;
    }
    break;
    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. little problem with barrows
    By Hexagon in forum Help
    Replies: 1
    Last Post: 02-13-2009, 09:18 PM
  2. A little problem
    By Bloodyfire in forum Help
    Replies: 12
    Last Post: 01-30-2009, 09:27 AM
  3. having a little problem on my forum.
    By Gsus in forum Help
    Replies: 3
    Last Post: 11-12-2008, 03:56 PM
  4. Small little shop command
    By zakc20 in forum Configuration
    Replies: 0
    Last Post: 05-16-2008, 06:27 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
  •