requestgump
Template to create a single field input gump.
Including Code
include ":gumps:requestgump";
RequestGump(mobile, question, option, pre_val, cancel_btn);
Parameters
Description
mobile
Mobile to send the gump to.
question
(string) Primary text field, instructing the mobile on what to enter.
option
(string) Optional text placed directly above the text entry area.
pre_val
(string) The text to display in the text entry field.
cancel_btn
CONST CANCEL_BTN_OFF - No cancel button will be shown.
CONST CANCEL_BTN_ON - A cancel button will be shown.
Return value
Returns 'error' if the cancel button is clicked.
Returns 0 or the text that was entered.
Example
use uo;
use os;
include ":gumps:requestgump";
program txtcmd_gumpstest( mobile )
var question := "Who is the best of the best from staff?";
var option := "Input you answer";
var pre_val := "Akaki";
var input:= RequestGump(mobile, question, option, pre_val, 1);
SendSysMessage( mobile, "Result: " + input );
endprogram

Last updated
Was this helpful?