Log In
Sign Up
Go Gold
Home
Forum
Mail
Downloads
Game Search
Macro Editor
Notes
Membership
CHRMHighCha.lua - Quest File
General Info
Quest File
-- CHRMHighCha local stat_matrix = { [1] = {305,400,1}, [2] = {301,304,0.9}, [3] = {276,300,0.8}, [4] = {251,275,0.7}, [5] = {226,250,0.6}, [6] = {201,225,0.5}, [7] = {176,200,0.4}, [8] = {151,175,0.3}, [9] = {126,150,0.2}, [10] = {91,125,0.1}, [11] = {0,90,0} } function event_scale_calc(e) local cha = e.owner:GetCHA(); if(cha < 0) then cha = 0; end lookup(e,cha); end function lookup(e,query) for id, v in pairs(stat_matrix) do if (query >= v[1] and query <= v[2]) then e.self:SetScale(v[3]); end end end
Source: 17 Jan 2022
Quest Source: 28 May 2022