Index: zones/Behemoths_Dominion/mobs/Behemoth.lua =================================================================== --- zones/Behemoths_Dominion/mobs/Behemoth.lua (revision 4008) +++ zones/Behemoths_Dominion/mobs/Behemoth.lua (working copy) @@ -27,7 +27,11 @@ ----------------------------------- function onMobFight(mob,target) - + + if(mob:getBattleTime() == 1800) then + mob:rageMode(); + end + end; ----------------------------------- Index: zones/Behemoths_Dominion/mobs/King_Behemoth.lua =================================================================== --- zones/Behemoths_Dominion/mobs/King_Behemoth.lua (revision 4008) +++ zones/Behemoths_Dominion/mobs/King_Behemoth.lua (working copy) @@ -26,7 +26,11 @@ ----------------------------------- function onMobFight(mob,target) - + + if(mob:getBattleTime() == 3600) then + mob:rageMode(); + end + end; ----------------------------------- Index: zones/Garlaige_Citadel/mobs/Serket.lua =================================================================== --- zones/Garlaige_Citadel/mobs/Serket.lua (revision 4008) +++ zones/Garlaige_Citadel/mobs/Serket.lua (working copy) @@ -13,6 +13,18 @@ end; ----------------------------------- +-- onMobFight Action +----------------------------------- + +function onMobFight(mob,target) + + if(mob:getBattleTime() == 1800) then + mob:rageMode(); + end + +end; + +----------------------------------- -- onMobDeath ----------------------------------- Index: zones/Labyrinth_of_Onzozo/mobs/Lord_of_Onzozo.lua =================================================================== --- zones/Labyrinth_of_Onzozo/mobs/Lord_of_Onzozo.lua (revision 4008) +++ zones/Labyrinth_of_Onzozo/mobs/Lord_of_Onzozo.lua (working copy) @@ -3,6 +3,18 @@ -- NM: Lord of Onzozo ----------------------------------- +----------------------------------- +-- onMobFight Action +----------------------------------- + +function onMobFight(mob,target) + + if(mob:getBattleTime() == 1200) then + mob:rageMode(); + end + +end; + ----------------------------------- -- onMobDeath ----------------------------------- Index: zones/Quicksand_Caves/mobs/Tribunus_VII-I.lua =================================================================== --- zones/Quicksand_Caves/mobs/Tribunus_VII-I.lua (revision 0) +++ zones/Quicksand_Caves/mobs/Tribunus_VII-I.lua (working copy) @@ -0,0 +1,21 @@ +----------------------------------- +-- Area: Quicksand Caves +-- MOB: Tribunus_VII-I +-- Note: +----------------------------------- + + +----------------------------------- +-- onMobFight Action +----------------------------------- + +function onMobFight(mob,target) +end; + +----------------------------------- +-- onMobDeath +----------------------------------- + +function onMobDeath(mob, killer) + GetNPCByID(17629658):hideNPC(900); +end; \ No newline at end of file Index: zones/Quicksand_Caves/npcs/qm2.lua =================================================================== --- zones/Quicksand_Caves/npcs/qm2.lua (revision 0) +++ zones/Quicksand_Caves/npcs/qm2.lua (working copy) @@ -0,0 +1,50 @@ +----------------------------------- +-- Area: Quicksand Caves +-- NPC: qm2 +-- @pos -49.944 -0.891 -139.485 208 +-- Notes: Used to spawn Tribunus VII-I +----------------------------------- +package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Quicksand_Caves/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) + + -- Trade Antican Tag + if(GetMobAction(17629643) == 0 and trade:hasItemQty(1190,1) and trade:getItemCount() == 1)then + player:tradeComplete(); + SpawnMob(17629643,900):updateEnmity(player); + end + +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + player:messageSpecial(NOTHING_OUT_OF_ORDINARY); +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +function onEventUpdate(player,csid,option) +--printf("CSID: %u",csid); +--printf("RESULT: %u",option); +end; + +----------------------------------- +-- onEventFinish +----------------------------------- + +function onEventFinish(player,csid,option) +--printf("CSID: %u",csid); +--printf("RESULT: %u",option); +end; \ No newline at end of file Index: zones/Rolanberry_Fields/mobs/Simurgh.lua =================================================================== --- zones/Rolanberry_Fields/mobs/Simurgh.lua (revision 4008) +++ zones/Rolanberry_Fields/mobs/Simurgh.lua (working copy) @@ -13,6 +13,18 @@ end; ----------------------------------- +-- onMobFight Action +----------------------------------- + +function onMobFight(mob,target) + + if(mob:getBattleTime() == 1200) then + mob:rageMode(); + end + +end; + +----------------------------------- -- onMobDeath ----------------------------------- Index: zones/RuAun_Gardens/MobIDs.lua =================================================================== --- zones/RuAun_Gardens/MobIDs.lua (revision 0) +++ zones/RuAun_Gardens/MobIDs.lua (working copy) @@ -0,0 +1,27 @@ +----------------------------------- +-- Area: RuAun Gardens +-- Comments: -- posX, posY, posZ +--(Taken from 'mob_spawn_points' table) +----------------------------------- + +-- Despot +Despot=17309954; +Despot_PH={ + [17309946] = '1', -- -20.312 -41.729 -339.929 + [17309947] = '1', -- -20.239 -42.929 -324.024 + [17309948] = '1', -- -20.239 -42.929 -315.955 + [17309949] = '1', -- -20.239 -42.929 -307.985 + [17309950] = '1', -- -20.239 -42.929 -292.006 + [17309951] = '1', -- -20.239 -42.929 -284.072 + [17309952] = '1', -- -20.239 -42.929 -276.010 + [17309953] = '1', -- -20.239 -42.929 -259.976 + [17309938] = '1', -- 20.239 -41.729 -340.048 + [17309939] = '1', -- 20.239 -41.729 -324.024 + [17309940] = '1', -- 20.239 -41.729 -315.955 + [17309941] = '1', -- 20.239 -41.729 -307.985 + [17309942] = '1', -- 20.239 -44.129 -292.006 + [17309943] = '1', -- 20.239 -44.129 -284.072 + [17309944] = '1', -- 20.239 -44.129 -276.010 + [17309945] = '1', -- 20.239 -45.329 -259.976 +}; + Index: zones/RuAun_Gardens/mobs/Byakko.lua =================================================================== --- zones/RuAun_Gardens/mobs/Byakko.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Byakko.lua (working copy) @@ -19,5 +19,5 @@ function onMobDeath(mob, killer) killer:showText(mob,SKY_GOD_OFFSET + 12); - GetNPCByID(17310049):hideNPC(900); + GetNPCByID(17310049):hideNPC(120); end; \ No newline at end of file Index: zones/RuAun_Gardens/mobs/Despot.lua =================================================================== --- zones/RuAun_Gardens/mobs/Despot.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Despot.lua (working copy) @@ -3,13 +3,23 @@ -- MOB: Despot ----------------------------------- -require("/scripts/globals/fieldsofvalor"); + + ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob,killer) - checkRegime(killer,mob,143,2); - checkRegime(killer,mob,144,1); -end; + + -- Set Despot ToD + SetServerVariable("[POP]Despot", os.time(t) + 7200); -- 2 hour + DeterMob(mob:getID(), true); + + -- Set PH back to normal, then set to respawn spawn + PH = GetServerVariable("[PH]Despot"); + SetServerVariable("[PH]Despot", 0); + DeterMob(PH, false); + GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH)); + +end; \ No newline at end of file Index: zones/RuAun_Gardens/mobs/Genbu.lua =================================================================== --- zones/RuAun_Gardens/mobs/Genbu.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Genbu.lua (working copy) @@ -19,5 +19,5 @@ function onMobDeath(mob, killer) killer:showText(mob,SKY_GOD_OFFSET + 6); - GetNPCByID(17310096):hideNPC(900); + GetNPCByID(17310096):hideNPC(120); end; \ No newline at end of file Index: zones/RuAun_Gardens/mobs/Groundskeeper.lua =================================================================== --- zones/RuAun_Gardens/mobs/Groundskeeper.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Groundskeeper.lua (working copy) @@ -1,15 +1,45 @@ ----------------------------------- --- Area: RuAun Gardens --- MOB: Groundskeeper +-- Area: RuAun Gardens +-- MOB: Groundskeeper +-- Note: Place holder Despot ----------------------------------- + +require("/scripts/zones/RuAun_Gardens/MobIDs"); +require("/scripts/globals/fieldsofvalor"); -require("/scripts/globals/fieldsofvalor"); - ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob,killer) - checkRegime(killer,mob,143,2); - checkRegime(killer,mob,144,1); + checkRegime(killer,mob,143,2); + checkRegime(killer,mob,144,1); + + -- Get Groundskeeper ID and check if it is a PH of Despot + mob = mob:getID(); + + -- Check if Groundskeeper is within the Despot_PH table + if (Despot_PH[mob] ~= nil) then + -- printf("%u is a PH",mob); + -- Get Despot previous ToD + Despot_ToD = GetServerVariable("[POP]Despot"); + + -- Check if Despot window is open, and there is not an Despot popped already(ACTION_NONE = 0) + if (Despot_ToD <= os.time(t) and GetMobAction(Despot) == 0) then + + -- printf("Despot window open"); + -- Give Groundskeeper 5 percent chance to pop Despot + if (math.random(1,20) == 5) then + -- printf("Despot will pop"); + GetMobByID(Despot):setRespawnTime(GetMobRespawnTime(mob)); + SetServerVariable("[PH]Despot", mob); + DeterMob(mob, true); + end + end + end + end; + + + + Index: zones/RuAun_Gardens/mobs/Seiryu.lua =================================================================== --- zones/RuAun_Gardens/mobs/Seiryu.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Seiryu.lua (working copy) @@ -20,7 +20,7 @@ function onMobDeath(mob, killer) killer:showText(mob,SKY_GOD_OFFSET + 10); - GetNPCByID(17310050):hideNPC(900); + GetNPCByID(17310050):hideNPC(120); end; ----------------------------------- Index: zones/RuAun_Gardens/mobs/Suzaku.lua =================================================================== --- zones/RuAun_Gardens/mobs/Suzaku.lua (revision 4008) +++ zones/RuAun_Gardens/mobs/Suzaku.lua (working copy) @@ -19,7 +19,7 @@ function onMobDeath(mob, killer) killer:showText(mob,SKY_GOD_OFFSET + 8); - GetNPCByID(17310048):hideNPC(900); + GetNPCByID(17310048):hideNPC(120); end; -- Return the selected spell ID. Index: zones/Sauromugue_Champaign/mobs/Roc.lua =================================================================== --- zones/Sauromugue_Champaign/mobs/Roc.lua (revision 4008) +++ zones/Sauromugue_Champaign/mobs/Roc.lua (working copy) @@ -6,6 +6,18 @@ require("scripts/globals/titles"); ----------------------------------- +-- onMobFight Action +----------------------------------- + +function onMobFight(mob,target) + + if(mob:getBattleTime() == 1200) then + mob:rageMode(); + end + +end; + +----------------------------------- -- onMobDeath ----------------------------------- Index: zones/The_Shrine_of_RuAvitau/mobs/Faust.lua =================================================================== --- zones/The_Shrine_of_RuAvitau/mobs/Faust.lua (revision 0) +++ zones/The_Shrine_of_RuAvitau/mobs/Faust.lua (working copy) @@ -0,0 +1,19 @@ +----------------------------------- +-- Area: The Shrine of Ru'Avitau +-- NPC: Faust +----------------------------------- + +----------------------------------- +-- onMobSpawn Action +----------------------------------- + +function OnMobSpawn(mob) +end; + +----------------------------------- +-- onMobDeath +----------------------------------- + +function onMobDeath(mob, killer) + mob:setRespawnTime(math.random((10800),(21600))); -- respawn 3-6 hrs +end; \ No newline at end of file Index: zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua =================================================================== --- zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua (revision 4008) +++ zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua (working copy) @@ -82,6 +82,8 @@ -- onMobDeath ----------------------------------- function onMobDeath( mob, killer ) + mob:setRespawnTime(math.random((10800),(21600))); -- respawn 3-6 hrs + for i = 17506397, 17506402 do if (GetMobAction(i) ~= 0) then DespawnMob(i); Index: zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua =================================================================== --- zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua (revision 4008) +++ zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua (working copy) @@ -15,5 +15,5 @@ ----------------------------------- function onMobDeath(mob, killer) - GetNPCByID(17502582):hideNPC(900); + GetNPCByID(17502582):hideNPC(300); end; \ No newline at end of file Index: zones/VeLugannon_Palace/mobs/Zipacna.lua =================================================================== --- zones/VeLugannon_Palace/mobs/Zipacna.lua (revision 0) +++ zones/VeLugannon_Palace/mobs/Zipacna.lua (working copy) @@ -0,0 +1,19 @@ +----------------------------------- +-- Area: VeLugannon Palace +-- NPC: Zipacna +----------------------------------- + +----------------------------------- +-- onMobSpawn Action +----------------------------------- + +function OnMobSpawn(mob) +end; + +----------------------------------- +-- onMobDeath +----------------------------------- + +function onMobDeath(mob, killer) + mob:setRespawnTime(math.random((10800),(14400))); -- respawn 3-4 hrs +end; \ No newline at end of file