Thread: Input Dialogie

Results 1 to 2 of 2
  1. #1 Input Dialogie 
    Registered Member
    Join Date
    Dec 2011
    Posts
    706
    Thanks given
    9
    Thanks received
    3
    Rep Power
    30
    Hello,

    Trying to get input dialogue to work. For example, one of my NPCs takes GP, but I want the player to be able to customize the amount of GP to give.

    Want to do this by sending an input dialogue similar to "buy x".

    How can I do this?

    Thanks.
    Reply With Quote  
     

  2. #2  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Create an InputField, grab examples from text-based Wogw or any NPC options you've got that allow input.
    So, I'd send an interface + inputfield... might not be the best way to do it since I am not great with interfaces n stuff... but works for me.

    Example can be taken from my NPC Droptable Search function
    Code:
    addInputField(39806, 30, 0xFF981F, "NPC/Item Name..", 130, 28, false, false, "[A-Za-z0-9 .,]");

    Server
    Code:
    case 39806:
    			Server.getDropManager().search(player, text);
    			break;

    Attached image
    Attached image
    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. Some input files use unchecked or unsafe operations
    By Vittu perkelee in forum Help
    Replies: 4
    Last Post: 06-03-2009, 04:24 PM
  2. Input (Link creator)
    By Nikki in forum Application Development
    Replies: 2
    Last Post: 04-19-2009, 01:41 AM
  3. Replies: 2
    Last Post: 03-20-2009, 03:58 AM
  4. Replies: 3
    Last Post: 07-11-2008, 10:06 AM
  5. making a command with an input sub int/String
    By littleplop in forum Tutorials
    Replies: 0
    Last Post: 02-22-2008, 08:39 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
  •