Thread: Question

Results 1 to 5 of 5
  1. #1 Question 
    Registered Member
    Join Date
    Mar 2015
    Posts
    20
    Thanks given
    25
    Thanks received
    9
    Rep Power
    20
    How would I make it if I wanted to click an item, and for example it would say "enter item ID to spawn" or "enter username to mute" or something like that, i've tried different kind of things but all of them got errors when was tested

    thanks for the help


    the revision: 718

    what i've tried: I added tempoary att thing or whatever it is called, and basically just added the kick command from commands section

    like, I really want my admins to have a rotten potato instead of typing commands all the time, get what I mean?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    I think they meant it ingame way, probably like a rotten potato or something idk
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    You should edit your main post and include what revision you're using and what you've already tried.
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Mar 2015
    Posts
    20
    Thanks given
    25
    Thanks received
    9
    Rep Power
    20
    updated
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    May 2011
    Age
    29
    Posts
    2,246
    Thanks given
    2,469
    Thanks received
    1,120
    Rep Power
    943
    Something we had on prodigy-x went like this:
    Code:
    	player.setInputEvent(new IntegerInputEvent("Enter the amount of money you would like to withdraw.",
    							new Runnable() {
    								@Override
    								public void run() {
    									int value = (int) player.getInputEvent().getValue();
    									if (!player.getMoneyPouch().remove(value, true))
    										player.sendMessage("Failed to remove the coins from your money pouch.");
    								}
    							}));
    Code:
    public void setInputEvent(InputEvent<?> inputEvent) {
    		this.inputEvent = inputEvent;
    		switch (inputEvent.getType()) {
    		case INTEGER:
    			getPackets().sendInputIntegerScript(inputEvent.getTitle());
    			break;
    		case NAME:
    			getPackets().sendInputNameScript(inputEvent.getTitle());
    			break;
    		case STRING:
    			getPackets().sendInputLongTextScript(inputEvent.getTitle());
    			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. My clientframe + question.
    By The kw in forum Graphics
    Replies: 14
    Last Post: 11-13-2007, 05:20 AM
  2. A Client Question
    By Mr Blah Man in forum RS2 Client
    Replies: 4
    Last Post: 10-27-2007, 10:38 AM
  3. A question
    By Fallen Azn SinZ in forum RS2 Client
    Replies: 2
    Last Post: 09-15-2007, 03:12 AM
  4. Ask your GFX Questions in this forum!
    By Bullet in forum General
    Replies: 0
    Last Post: 07-20-2007, 05:48 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
  •