How to know what previous flags compose a final flag?
#5
tblFlags = {
"Count",
"Drop",
"Upgrade",
"Exchange",
"Sell(NPC)",
"Not Delete",
"Made",
"Mix",
"Cash",
"Lord",
"No Stash",
"Change",
"Composite",
"Duplication",
"lent",
"Rare",
"ABS",
"Not Reform",
"ZoneMove Del",
"Purple Seals",
"Trigger",
"Raid Special",
"Quest",
"LuckyDraw Box",
"Not TradeAgent",
"Durability",
"Costume2",
"Socket",
"Seller",
"Castillan",
"LetsParty",
"Non-RVR",
"Quest Give",
"Toggle",
"Compose",
"NotSingle",
"Invisible Custom",
"37",
"38",
"39",
"40",
"41",
"42",
"43",
"44",
"45",
"46",
"47",
"48",
"49",
"50",
"51",
"52",
"53",
"54",
"55",
"56",
"57",
"58",
"59",
"60",
"61",
"62",
"63"
};

local FlagPicker = 60; -- Your flag

for i = 0, #tblFlags do
local Flag = 1*2^i; -- Left shift iteration num by 1

if(FlagPicker % (Flag + Flag) >= Flag)then
-- true
else
-- false
end
end

 



Messages In This Thread
[No subject] - by nicolasg - 02-23-2023, 10:13 PM
[No subject] - by nicolasg - 02-23-2023, 10:35 PM
[No subject] - by nicolasg - 02-24-2023, 03:36 AM
[No subject] - by Nikolee - 02-27-2023, 02:04 PM
[No subject] - by nicolasg - 02-27-2023, 02:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)