This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,48 +1,48 @@
--TSU
--CHAT_MSG_COMBAT_FACTION_CHANGE
function(allstates,event,msg)
for _,v in pairs(allstates) do
v.show = false
v.changed = true
end
for k,v in ipairs(aura_env.reps) do
local name,_,_,_,repmax,rep = GetFactionInfo(i)
allstates[unit] =
{
changed = true,
show = true,
resort = true,
progressType = "static",
value = rep,
total = repmax,
index = rep,
name = repname,
}
end
return true
end
--CHAT_MSG_COMBAT_FACTION_CHANGE
function(_,msg)
local repname,change = msg:match("Reputation with ([%a+%s*%p*]+) increased by (%d+)")
for i = 1, GetNumFactions() do
local name,_,_,_,repmax,rep = GetFactionInfo(i)
if name == repName then
local repIndex = i
end
end
local isfound = 0
for k,v in ipairs(aura_env.reps) do
if v == name then
isfound = 1
break
end
end
if isfound == 0 then
table.insert(aura_env.reps, name)
end
end
--INIT
--TSU
--CHAT_MSG_COMBAT_FACTION_CHANGE
function(allstates,event,msg)
for _,v in pairs(allstates) do
v.show = false
v.changed = true
end
for k,v in ipairs(aura_env.reps) do
local name,_,_,_,repmax,rep = GetFactionInfo(i)
allstates[unit] =
{
changed = true,
show = true,
resort = true,
progressType = "static",
value = rep,
total = repmax,
index = rep,
name = repname,
}
end
return true
end
--CHAT_MSG_COMBAT_FACTION_CHANGE
function(_,msg)
local repname,change = msg:match("Reputation with ([%a+%s*%p*]+) increased by (%d+)")
for i = 1, GetNumFactions() do
local name,_,_,_,repmax,rep = GetFactionInfo(i)
if name == repName then
local repIndex = i
end
end
local isfound = 0
for k,v in ipairs(aura_env.reps) do
if v == name then
isfound = 1
break
end
end
if isfound == 0 then
table.insert(aura_env.reps, name)
end
end
--INIT
aura_env.reps = {}