1.2 KiB
1.2 KiB
Function: CreateChoiceWindow(npc, spawn, windowTextPrompt, acceptText, acceptCommand, declineText, declineCommand, time, textBox, textBoxRequired, maxLength)
Description:
Create's a choice display window for the client to provide a accept/decline prompt window and input box support (for text field).
Parameters:
npc
(Spawn) - Spawn object representingnpc
.spawn
(Spawn) - Spawn object representingspawn
.windowTextPrompt
(string) - StringwindowTextPrompt
.acceptText
(string) - StringacceptText
.acceptCommand
(string) - StringacceptCommand
.declineText
(string) - StringdeclineText
.declineCommand
(string) - StringdeclineCommand
.time
(uint32) - Integer valuetime
.textBox
(uint8) - Integer valuetextBox
.textBoxRequired
(uint8) - Integer valuetextBoxRequired
.maxLength
(uint32) - Integer valuemaxLength
.
Returns: None.
Example:
-- From SpawnScripts/DoF_design_path_script/AnimationSpeedScroll.lua
function DoSpellVisual(NPC,Spawn)
ClearChoice(Spawn, "select")
CreateChoiceWindow(NPC, Spawn, "Display Visual ID X, Visual ID Range X-Y, Visual ID String Wildcard, eg. heal", "OK", "select", "Cancel", "", 0, 1, 1, 14)
end