eluna-scripts-isidorsson/TestStackAmount.lua
Clotic 9bf7b62555 Updates clean
Update few things nothing special
2020-11-01 20:12:32 +01:00

23 lines
796 B
Lua

--[[ -- Can put more in with the comma like 123, 123. Also it seems 255 is max for stack ]]
local StackTest = {26393}
local MSG_TESTSTACK = ("#stack")
local function TestStack(event, player, msg, Type, lang)
if (msg:find(MSG_TESTSTACK)) then
for _, v in pairs(StackTest) do
if not player:HasAura(v) then
player:AddAura(v, player)
else
local v = player:GetAura(v)
if v:GetStackAmount() < 100 then
v:SetStackAmount(v:GetStackAmount() + 3) --Give stacks from StackTest
end
player:SendBroadcastMessage("|cFFFFFF9F" .. "You Have " .. v:GetStackAmount().. " Stacks")
end
end
return false
end
end
RegisterPlayerEvent(18, TestStack)