viewing paste Unknown #19705 | Lua

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
 
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;
 
-- --------------------------------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
Viewed 708 times, submitted by Guest.