mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
610 B
610 B
Function: GetRuleFlagBool(category, name)
Description: Gets the boolean rule flag from the world based on the category and name.
Parameters:
category(string) - Stringcategory.name(string) - Stringname.
Returns: Boolean value true/false depending on the rule setting.
Example:
-- From SpawnScripts/Generic/SpiritShard.lua
function spawn(NPC)
local DebtToRemovePct = GetRuleFlagFloat("R_Combat", "ShardDebtRecoveryPercent")
if GetRuleFlagBool("R_Combat", "ShardRecoveryByRadius") == true then
SetPlayerProximityFunction(NPC, 10.0, "recovershard")
end