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.
Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.