INDIGO_STRATUM_ABYSSITE
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE")) then -- Sallow Seymour Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE"), 1) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE"),"INDIGO_STRATUM_ABYSSITE",1,true);
end
end
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE")) then -- Ushumgal Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE"), 2) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE"),"INDIGO_STRATUM_ABYSSITE",2,true);
end
end
INDIGO_STRATUM_ABYSSITE_II
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE_II")) then -- Lorbulcrud Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_II"), 1) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_II"),"INDIGO_STRATUM_ABYSSITE_II",1,true);
end
end
killer:addCurrency("bayld", 50);
INDIGO_STRATUM_ABYSSITE_III
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE_III")) then -- Baneberry Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_III"), 1) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_III"),"INDIGO_STRATUM_ABYSSITE_III",1,true);
end
end
killer:addCurrency("bayld", 75);
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE_III")) then -- Melancholic Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_III"), 2) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_III"),"INDIGO_STRATUM_ABYSSITE_III",2,true);
end
end
killer:addCurrency("bayld", 75);
INDIGO_STRATUM_ABYSSITE_IV
if (player:hasKeyItem("INDIGO_STRATUM_ABYSSITE_IV")) then -- Celano Kill
if (player:getMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_IV"), 1) == false) then
player:setMaskBit(player:getVar("INDIGO_STRATUM_ABYSSITE_IV"),"INDIGO_STRATUM_ABYSSITE_IV",1,true);
end
end
killer:addCurrency("bayld", 125);
CRIMSON_STRATUM_ABYSSITE
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE")) then -- Sarimanok Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE"), 1) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE"),"CRIMSON_STRATUM_ABYSSITE",1,true);
end
end
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE")) then -- Cottus Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE"), 2) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE"),"CRIMSON_STRATUM_ABYSSITE",2,true);
end
end
CRIMSON_STRATUM_ABYSSITE_II
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE_II")) then -- Krabimanjaro Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_II"), 1) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_II"),"CRIMSON_STRATUM_ABYSSITE_II",1,true);
end
end
killer:addCurrency("bayld", 50);
CRIMSON_STRATUM_ABYSSITE_III
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE_III")) then -- Belephoebe Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_III"), 1) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_III"),"CRIMSON_STRATUM_ABYSSITE_III",1,true);
end
end
killer:addCurrency("bayld", 75);
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE_III")) then -- Kholomodumo Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_III"), 2) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_III"),"CRIMSON_STRATUM_ABYSSITE_III",2,true);
end
end
killer:addCurrency("bayld", 75);
CRIMSON_STRATUM_ABYSSITE_IV
if (player:hasKeyItem("CRIMSON_STRATUM_ABYSSITE_IV")) then -- Havana Kill
if (player:getMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_IV"), 1) == false) then
player:setMaskBit(player:getVar("CRIMSON_STRATUM_ABYSSITE_IV"),"CRIMSON_STRATUM_ABYSSITE_IV",1,true);
end
end
killer:addCurrency("bayld", 125);
JADE_STRATUM_ABYSSITE
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE")) then -- Virvatuli Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE"), 1) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE"),"JADE_STRATUM_ABYSSITE",1,true);
end
end
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE")) then -- Pancimanci Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE"), 2) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE"),"JADE_STRATUM_ABYSSITE",2,true);
end
end
JADE_STRATUM_ABYSSITE_II
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE_II")) then -- Ogbunabali Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_II"), 1) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_II"),"JADE_STRATUM_ABYSSITE_II",1,true);
end
end
killer:addCurrency("bayld", 50);
JADE_STRATUM_ABYSSITE_III
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE_III")) then -- Lord Asag Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_III"), 1) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_III"),"JADE_STRATUM_ABYSSITE_III",1,true);
end
end
killer:addCurrency("bayld", 75);
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE_III")) then -- Akupara Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_III"), 2) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_III"),"JADE_STRATUM_ABYSSITE_III",2,true);
end
end
killer:addCurrency("bayld", 75);
JADE_STRATUM_ABYSSITE_IV
if (player:hasKeyItem("JADE_STRATUM_ABYSSITE_IV")) then -- Voidwrought Kill
if (player:getMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_IV"), 1) == false) then
player:setMaskBit(player:getVar("JADE_STRATUM_ABYSSITE_IV"),"JADE_STRATUM_ABYSSITE_IV",1,true);
end
end
killer:addCurrency("bayld", 125);
-- --------- Forced DespawnMob -------------------------------
function onMobSpawn(mob)
mob:setLocalVar("depopTime", os.time(t) + 1800); -- despawn in 30 min
end;
function onMobFight(mob,target)
local depopTime = mob:getLocalVar("depopTime");
if (os.time(t) > depopTime) then
DespawnMob(mob:getID());
end
end;
-- --------------------------bayld-----------------------------------
killer:addCurrency("bayld", 50);
-- ------------------------------------------------------------------
-- ----------------------Rift Spawns---------------------------------
function onTrigger(player,npc)
local voidstones = player:getCurrency("voidstones");
if (GetMobAction(00000000) == ACTION_NONE) then
if (player:hasKeyItem(INDIGO_STRATUM_ABYSSITE) and player:hasCurrency("voidstones", 1)) then
SpawnMob(00000000, 300):updateClaim(player);
player:delCurrency("voidstones", 1);
player:tradeComplete();
end
end
end;
-- --------------------------------------------------------------------------