The configuration file allows you to customize various aspects of Ks_Mystic_Spells_v2, such as tarot tables, seating options, potion properties, and item probability. Below is a breakdown of the key sections:
Configuration Example
Config = {}Config.TarotTables = { {coords =vector3(162.4500027, 164.1986, 106.8614), dist =3.0, job ='tarotist'}, --KS Mystic Spells}Config.Seats = { Text ='3D', -- '3D' - 'ox_target' - 'qb-target' Key =47, -- [G] -- only for SeatText == '3D'}-- Potion configuration:-- value: Healing or protection value (if applicable)-- time: Duration of the effect in seconds (if applicable)-- useTime: Time it takes to use the potion in seconds-- animals: List of animals (only applicable for the 'Animals' potion)Config.Potions = { ['Healing'] = { value =100, useTime =5-- Time on seconds }, ['Shield'] = { value =100, useTime =5 }, ['Animals'] = { value =60, useTime =5, -- Note: value is the time the animal will be active animals = {'a_c_boar', 'a_c_chickenhawk', 'a_c_chimp', 'a_c_cormorant', 'a_c_cow', 'a_c_coyote', 'a_c_deer'} }, ['Invisibility'] = { value =25, useTime =5-- Note: value is the duration of invisibility in seconds -> default 25 seconds }, ['Speed'] = { value =30, useTime =5-- Note: value is the duration of speed boost in seconds -> default 30 seconds },}Config.Probability = { -- Note: works only if Config.RandomItems = false ['common'] =70, -- <- is percentage ['rare'] =20, -- <- is percentage ['legendary'] =10-- <- is percentage}Config.RandomItems =true-- true will give random items, false will be based on the probability percentage of Config.ProbabilityConfig.CristalBallItems = { {name ='p1', amount =1, rarity ='common'}, -- Health Potion {name ='p2', amount =1, rarity ='common'}, -- Shield Potion {name ="p3", amount =1, rarity ='common'}, -- Animals Potion {name ="p4", amount =1, rarity ='rare'}, -- Invisibility Potion {name ="p5", amount =1, rarity ='rare'}, -- Speed Potion {name ="ouija", amount =1, rarity ='legendary'}, -- Ouija Board}
Tarot Table Configuration
Define tarot table locations and their specific settings:
The configuration file allows you to customize various aspects of Ks_Mystic_Spells_v2, such as tarot tables, seating options, potion properties, and item probability. Below is a breakdown of the key sections:
Tarot Table Configuration
Define tarot table locations and their specific settings:
Customize the interaction text and key for seating at specific locations:
luaCopyEditConfig.Seats = { Text ='3D', -- Options: '3D', 'ox_target', 'qb-target' Key =47, -- [G] key for '3D' interaction.}
Potion Configuration
Define properties for each potion type:
Config.Potions = { ['Healing'] = { value =100, useTime =5-- Restores health (value) in 5 seconds. }, ['Shield'] = { value =100, useTime =5-- Adds 100 points of protection in 5 seconds. }, ['Animals'] = { value =60, useTime =5, animals = {'a_c_boar', 'a_c_chickenhawk', 'a_c_chimp', 'a_c_cormorant', 'a_c_cow', 'a_c_coyote', 'a_c_deer'} }, ['Invisibility'] = { value =25, useTime =5-- Grants invisibility for 25 seconds. }, ['Speed'] = { value =30, useTime =5-- Boosts speed for 30 seconds. },}
value: The effect's intensity or duration.
useTime: Time (in seconds) required to consume the potion.
animals: Specific to the "Animals" potion, defines the available animal models.
Usage
Configuration (config.lua)
The configuration file allows you to customize various aspects of Ks_Mystic_Spells_v2, such as tarot tables, seating options, potion properties, and item probability. Below is a breakdown of the key sections:
Tarot Table Configuration
Define tarot table locations and their specific settings: