-
Notifications
You must be signed in to change notification settings - Fork 47
Dbscript_random_templates
MantisLord edited this page Oct 12, 2017
·
4 revisions
Back to world database list of tables.
Use this table to set up an infinite amount of texts or relay scripts to be randomized in the same action. Used in SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_START_RELAY_SCRIPT, ACTION_T_TEXT_NEW and ACTION_T_START_RELAY_SCRIPT
Field | Type | Null | Key | Default | Extra |
id | int(11) unsigned | NO | PRI | No default | Id of template |
type | int(11) unsigned | NO | PRI | No default | Type of template |
target_id | int(11) | NO | PRI | 0 | Id of chanced element |
chance | int(11) | NO | 0 | Chance for element to occur in % | |
comments | varchar(500) | Yes | ’’ |
The ID of the random template.
Similar to dbscripts_on_relay the ID is assigned depending on which expansion it is used in:
- Vanilla – 1-9999
- TBC – 10000-19999
- WotLK – 20000+
0 = DBScript_string or creature_ai_texts string
1 = DBScripts_on_relay
If type = 0: The string entry from dbscript_string.entry or creature_ai_texts.entry
If type = 1: The dbscripts_on_relay ID you want to randomize
The chance in % for the string or relay script to occur
Provide a useful comment to help out yourself and other developers who may come across your work