-
Notifications
You must be signed in to change notification settings - Fork 1
npcHelper.lua utility file
Category: Utility Lua-Based Scripts
Type: number
Notes: Used as a previous color argument value to the text color functions.
Type: number
Notes: Used as a previous color argument value to the text color functions.
Type: number
Notes: Used as a previous color argument value to the text color functions.
Type: number
Notes: Used as a previous color argument value to the text color functions.
Type: number
Notes: Used as a previous color argument value to the text color functions.
Type: number
Notes: Used as a previous text decoration argument value to the text decoration functions.
Type: number
Notes: Used as a previous text decoration argument value to the text decoration functions.
Return(s):
- formattedText: string
- text: string
- Optional - previousColor: number
Return(s):
- formattedText: string
- text: string
- Optional - previousColor: number
Return(s):
- formattedText: string
- text: string
- Optional - previousColor: number
Return(s):
- formattedText: string
- text: string
- Optional - previousColor: number
Return(s):
- formattedText: string
- text: string
- Optional - previousColor: number
Return(s):
- formattedText: string
- text: string
- Optional - previousQuality: number
Return(s):
- formattedText: string
- text: string
- Optional - previousQuality: number
Return(s):
- formattedText: string
- text: string
Return(s):
- formattedText: string
- itemId: number
Return(s):
- formattedText: string
- mobId: number
Return(s):
- formattedText: string
- mapId: number
Return(s):
- formattedText: string
- itemId: number
Return(s):
- formattedText: string
- skillId: number
Return(s):
- formattedText: string
- itemId: number
Return(s):
- formattedText: string
- itemId: number
Return(s):
- formattedText: string
- N/A
Return(s):
- formattedText: string
- npcId: number
Return(s):
- formattedText: string
- N/A
Return(s):
- formattedText: string
- experience: number
Return(s):
- formattedText: string
- mesos: number
Return(s):
- formattedText: string
- itemId: number
- Optional - qty: number
Return(s):
- formattedText: string
- skillId
Return(s):
- formattedText: string
- femaleText: string
- maleText: string
Return(s):
- formattedText: string
- completionPercentage: number
Return(s):
- formattedText: string
- choice: table OR string
- Optional - choiceId: number
Return(s):
- choiceSelection: table
- choice: string
- data: table
Usage:
makeChoiceData("Skin", getSkinStyles()),
Return(s):
- choiceSelection: table
- choice: string
- handler: function
- Return(s): value: any
- Argument(s): Optional - choiceId: number
Usage:
makeChoiceHandler("No, it's okay.", function() addText("I guess you already know a lot about Victoria Island. "); addText("Have a good trip..."); sendNext(); end),
Conditional Return(s):
- If the selected choice contains a handler: The return result of the handler
-
If the selected choice contains data:
- The item associated to the choice
- choiceId: number
- Any other case: The choice itself
- choices: table
- choiceId: number
Usage:
choice = askChoice(); data = selectChoice(choices, choice); item, worth = data[1], data[2];