Configuration
Last updated
Last updated
The items used are only for testing, you should configure to your liking using your own items!
Config = {}
Config.WebhookURL = ""
Config.WithdrawalCheckInterval = 2 -- Time that the script will check if player has consumed item while in withdrawl
-- EMOJIS FOR THE MENU
Config.Emojis = {
caffeine = "โ",
nicotine = "๐ฌ",
opium = "๐ฟ",
alcohol = "๐บ",
}
-- LOCALES
Config.MenuTitle = "Your Addictions"
Config.GotAddicted = "You got addicted to "
Config.Withdrawl = "You're on withdrawl for "
Config.WithdrawlColapse = "You're on colapse for "
Config.Detoxed = "You got detoxed!"
Config.Vices = {
caffeine = {
maxPoints = 50, -- Max points to get addicted to substance
withdrawalTime = 40,-- Time that player has to consume the substance again (in minutes)
withdrawalWarnings = 3,-- How many warning does player get before starting to get damage
withdrawalDamage = 50 -- How much damage per cicle will the player get
},
nicotine = {
maxPoints = 15,
withdrawalTime = 30,
withdrawalWarnings = 3,
withdrawalDamage = 70
},
alcohol = {
maxPoints = 35,
withdrawalTime = 20,
withdrawalWarnings = 2,
withdrawalDamage = 100
},
opium = {
maxPoints = 5,
withdrawalTime = 15,
withdrawalWarnings = 1,
withdrawalDamage = 150
},
}
Config.Items = {
["consumable_coffee"] = { -- Item that can cause addiction
type = "caffeine", -- Type of addiction
addictionPoints = 1, -- How much points does it add when a player consumes it
},
["consumable_chocolate"] = {
type = "opium",
addictionPoints = 1,
},
["tobacco"] = {
type = "nicotine",
addictionPoints = 1,
},
["beer"] = {
type = "alcohol",
addictionPoints = 1,
},
}
Config.Medicines = {
["caffeine_medicine"] = { -- Name of the item that can give the addiction
targetType = "caffeine" -- Type of addiction that removes
},
["opium_medicine"] = {
targetType = "opium"
},
["nicotine_medicine"] = {
targetType = "nicotine"
},
["alcohol_medicine"] = {
targetType = "alcohol"
},
["all_medicine"] = {
all = true -- Make it remove all of the addictions
}
}