Response Operation: Difference between revisions
Line 425: | Line 425: | ||
Ex: <respond text="Hello" /> | Ex: <respond text="Hello" /> | ||
== Run == | == Run Script == | ||
This response operations run a script. | This response operations run a script. | ||
Line 436: | Line 436: | ||
!Description | !Description | ||
|- | |- | ||
|script | |||
|Mandatory | |||
|string | |||
| | | | ||
|The script | |||
|- | |||
|with | |||
|Optional | |||
|string | |||
| | | | ||
| | |Binding text. | ||
|} | |} | ||
Ex: <run | Ex: <run script="My Script" with="My Binding?" /> | ||
== Respond Public == | == Respond Public == |
Revision as of 00:04, 26 December 2013
Response Operations
Action
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
anim | Mandatory | string | Name of animation | |
text | Optional | string | Action command. |
Ex: <action ... />
Action My
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <actionmy ... />
Action My Public
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <actionmypublic ... />
Action Public
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <actionpublic ... />
Assign Quest
This response operations assign a new quest to the player.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
q1 | Mandatory | string | Name of the quest | |
q2 | Optional | string | Name of the quest | |
q2 | Optional | string | Name of the quest | |
q3 | Optional | string | Name of the quest | |
q4 | Optional | string | Name of the quest | |
q5 | Optional | string | Name of the quest | |
timeout_msg | Optional | string | The timeout message. |
Ex: <assign q1="The Quest" q2="The Other Quest" timeout_msg="The Quest timeout message" />
Complete Quest
This response operations complete a quest.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
quest_id | Mandatory | string | The name of the quest. | |
error_msg | Optional | string | Error message. |
Ex: <complete quest_id="The Quest" error_msg="The Quest Complete error message" />
Do Admin Command
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <doadmincmd ... />
Faction
This response operations adjust the faction.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
name | Mandatory | string | Name of the faction. | |
value | Mandatory | integer | The faction value. |
Ex: <faction name="My Faction" value="5" />
Give Item
This response operations give items to the player.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
item | Mandatory | string or integer | The name of the item stat or the id of the item stat. | |
count | Optional | integer | 1 | The number of items to give. |
quality | Optional | integer | 0 | The quality of the new item. |
Ex: <give item="The Item" count="2" quality="50" />
Guild Award
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <guild_award ... />
Introduce
This response operations introduce the player with the NPC.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <introduce ... />
Money
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <money ... />
Narrate
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <narrate ... />
Narrate Public
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <narratepublic ... />
NPC Cmd
This response operations send a command to the NPC Client. The command will trigger NPC responses.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
cmd | Mandatory | string | Use format npccmd:global:<your cmd text> or npccmd:self:<your cmd text> |
Ex: <npccmd cmd="npccmd:global:start_riot" /> <npccmd cmd="npccmd:self:open_cage" />
Offer Reward
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <offer ... />
Respond
This response operations respond with a text to the player. This is the same as the Say operation.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
text | Mandatory | string | The chat message to respond with. |
Ex: <respond text="Hello" />
Run Script
This response operations run a script.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
script | Mandatory | string | The script | |
with | Optional | string | Binding text. |
Ex: <run script="My Script" with="My Binding?" />
Respond Public
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <respondpublic ... />
Say
This response operations respond with a text to the player. This is the same as the Respond operation.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
text | Mandatory | string | The chat message to respond with. |
Ex: <say text="Hello" />
Set Variable
This response operations .
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <setvariable ... />
Train
This response operations train the player.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <train ... />
Uncomplete Quest
This response operations Un-complete a quest.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
quest_id | Mandatory | string | The name of the quest. | |
error_msg | Optional | string | Error message. |
Ex: <uncomplete quest_id="The Quest" error_msg="The Quest Uncomplete error message" />
Unset Variable
This response operations Un-set a variable.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
Ex: <unsetvariable ... />
Verify Quest Assigned
This response operations verify if a quest is assigned.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
quest | Mandatory | string | Name of quest. | |
error_msg | Optional | string | Error message. |
Ex: <verifyquestassigned quest="The Quest" error_msg="The Quest is not assigned" />
Verify Quest Completed
This response operations verify if a quest is complete.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
quest | Mandatory | string | Name of quest. | |
error_msg | Optional | string | Error message. |
Ex: <verifyquestcompleted quest="The Quest" error_msg="The Quest is not completed" />
Verify Quest Not Assigned
This response operations verify that a quest is not assigned.
Attribute | Required | Values/Type | Default | Description |
---|---|---|---|---|
quest | Mandatory | string | Name of quest. | |
error_msg | Optional | string | Error message. |
Ex: <verifyquestnotassigned quest="The Quest" error_msg="The Quest is assigned" />