| Code: if(P.eq[Slot].rarity===5){ if(N==="Falzitherin's Claw"){ animateDot(TGT,"green"); Chat(mob[TGT].name+" is blasted by noxious vapors.",3); procDot(TGT, minMax(195, .9), "Noxious Vapors", "poison", 9, 1000, "spellCastDot"); }else if(N==="Seething Myrmidon's Gavel"){ particleBurst(TGT,"orange"); g.myMagicDamage("fire", 787, TGT, c, " is struck by a sudden burst of flames", p); }else if(N==="Plankton Laced Greatsword"){ playAudio('novaice'); animateNova('frostNova'); for(var i=0;i<=4;i++){ if(mob[i].name){ var dam = minMax(458, .85); var hit=g.myMagicDamage('cold', dam, i, checkCrit(), "Vile Plankton"); if(hit!==undefined){ chillTarget(i,7000,-288); } } } }else if(N==="Jysin's Blade of the Darkwind"){ summonWolfFamiliar("Darkwind", 367, 231); }else if(N==="Sword of Truth"){ particleBurst(TGT,"teal"); stunTarget(TGT, 3000, -32); g.myMagicDamage("lightning", ~~(M.random()*375+275), TGT, c, " is blasted by crackling ether", p); }else if(N==="Indocolite Revenant Thresher"){ particleBurst(TGT,"purple"); g.myMagicDamage("poison", ~~(M.random()*111+499), TGT, c, " is crushed by despondence", p); mob[TGT].snareStatus = true; }else if(N==="Grove Walker's Scimitar"){ animateDot(TGT,"green"); Chat(mob[TGT].name+" is blasted by fungal spores.",3); procDot(TGT, minMax(211, .85), "Fungal Spores", "poison", 9, 1000, "spellCastDot"); }else if(N==="Odious Spear of Fate"){ animateDot(TGT,"purple"); Chat(mob[TGT].name+" is beset by a plague.",3); procDot(TGT, minMax(176, .8), "Odious Plague", "poison", 13, 1000, "spellCastDot"); }else if(N==="Painmurder Mallet"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 777, TGT, c, " is blasted by psychic energy", p); }else if(N==="Executioner's Thunderclap"){ particleBurst(TGT,"yellow"); stunTarget(TGT, 2100, -32); g.myMagicDamage("lightning", minMax(555, .5), TGT, c, " is zapped by a ripple of static", p); }else if(N==="Megnemon's Glacial Crook"){ g.glacialSpikeFinish(true); }else if(N==="Carbilloth's Rainbow Ire"){ var color = "green"; var mType = "poison"; var z1 = M.random()*100; if(z1>.8){ color = "magenta"; mType = "magic"; }else if(z1>.6){ color = "orange"; mType = "fire"; }else if(z1>.4){ color = "yellow"; mType = "lightning"; }else if(z1>.2){ color = "teal"; mType = "cold"; } particleBurst(TGT,color); g.myMagicDamage(mType, minMax(999, .66), TGT, c, " is blasted by rainbow hues", p); }else if(N==="Heart of Burning Embers"){ particleBurst(TGT,"orange"); g.myMagicDamage("fire", 520, TGT, c, " is blasted by a pyroclastic flow", p); procDot(TGT, minMax(162, .75), "Pyroclastic Flow", "fire", 6, 1000, "spellDoneFlames"); animateDot(TGT,"orange"); }else if(N==="Sanctified Gavel of Pharmakos"){ animateDot(TGT,"white"); addMobBuffIcon("Kelpie Haze",TGT,"snareIcon",0,-32); mob[TGT].snareStatus=true; } }else if(P.eq[Slot].rarity===4){ if(N==="Hallowed Gavel of Pharmakos"){ }else if(N==="Satyr's Artifice"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 505, TGT, c, " is struck by a crackling litany", p); }else if(N==="Bloodletter's Lancet"){ particleBurst(TGT,"red"); g.myMagicDamage("magic", 45, TGT, c, "'s blood is siphoned", p); g.popupHeal(45); }else if(N==="Daimyo's Giri"){ particleBurst(TGT,"red"); g.myMagicDamage("fire", ~~(M.random()*50+270), TGT, c, " is struck by a sudden burst of flames", p); }else if(N==="Baron's Glissando"){ particleBurst(TGT,"magenta"); stunTarget(TGT, 2500, -32); g.myMagicDamage("magic", ~~(M.random()*175+175), TGT, c, " is barraged by a sonic force", p); }else if(N==="Venova's Martel"){ animateDot(TGT,"white"); Chat(mob[TGT].name+" is engulfed in the wrath of holy light.",3); procDot(TGT, minMax(165, .8), "Primal Corruption", "magic", 7, 1000, "spellDoneFlames"); }else if(N==="Augur's Harvester"){ bleedTarget(TGT, 12, 1000); particleBurst(TGT,"red"); g.myMagicDamage("fire", minMax(333, .5), TGT, c, "'s wounds sizzle", p); } }else{ if(N==="Short Sword of the Ykesha"|| N==="Short Sword of the Crokyn"|| N==="Ykeshan Broad Axe"|| N==="Crokyn Broad Axe"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 150, TGT, c, " is struck by the force of Crokyn", p); } else if(N==="Ebony Blade"|| N==="Spriggan's Blade"){ g.myMagicDamage("magic", M.ceil(10+my.level), TGT, c, " is entangled in roots", p); if(checkRootImmune(TGT)===true){ Chat((mob[TGT].name+" is immune to Root."),1); return; } if(statusResist(TGT)===true){ Chat((mob[TGT].name+" resisted Root."),1); return; } Chat((mob[TGT].name+" is rooted."),3); stopMob(TGT); mob[TGT].rootStatus=3; $("#rootIcon"+TGT+",#rootBuffIcon"+TGT).remove(); animateRoot(TGT, true); addMobBuffIcon("Root",TGT,"rootBuffIcon",0,0,0,"root"); } else if(N==="Crystalline Scimitar" ||N==="Iceshard Scimitar"){ particleBurst(TGT,"blue"); g.myMagicDamage("cold", 44, TGT, c, " is blasted by frost", p); } else if(N==="Ghoulbane"|| N==="Soulgrinder"){ if(checkUndead(TGT)===true){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 150, TGT, c, " is blasted by holy power", p); } } else if(N==="Bladed Thulian Claws"||N==="Bladed Prenssor Claws"){ particleBurst(TGT,"red"); g.myMagicDamage("fire", 75, TGT, c, "'s flesh blisters", p); } else if(N==="Screaming Mace"|| N==="Howling Mace"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 38, TGT, c, " is struck by a lupine blast", p); } else if(N==="Cold Iron Morning Star"){ particleBurst(TGT,"blue"); g.myMagicDamage("cold", 33, TGT, c, " is struck by the frigid north", p); } else if(N==="Stormeye"){ particleBurst(TGT,"yellow"); g.myMagicDamage("lightning", 179, TGT, c, " is thunderstruck", p); } else if(N==="The Jade Tan Do"|| N==="The Witch Doctor"){ particleBurst(TGT,"green"); g.myMagicDamage("poison", 22, TGT, c, "'s flesh rots", p); } else if(N==="Sacrificial Dagger"){ particleBurst(TGT,"magenta"); Chat(("Sacrificial blood restores your mind.").fontcolor("#1e90ff")); g.popupMana(14); } else if(N==="Trident of the Seven Seas"|| N==="Trident of Edenburg"){ particleBurst(TGT,"yellow"); g.myMagicDamage("lightning", 109, TGT, c, " is struck by a thunderbolt", p); } else if(N==="Serrated Bone Dirk"|| N==="Serrated Bone Cinquedeas"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 22, TGT, c, "'s life force is drained", p); g.popupHeal(22); } else if(N==="Gigantic Zweihander"|| N==="Gigantic Frostreaper"){ particleBurst(TGT,"blue"); g.myMagicDamage("cold", 143, TGT, c, " is struck by the arctic winds of Fenwoven", p); } else if(N==="Lamentation Blade"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 195, TGT, c, " is struck by death and despair", p); } else if(N==="Blighthammer"){ particleBurst(TGT,"green"); g.myMagicDamage("poison", 175, TGT, c, " is wrought by a deathly plague", p); } else if(N==="Mroon's Toy"){ particleBurst(TGT,"yellow"); var Slot=TGT; for(var i=0;i<=5;i++){ g.myMagicDamage("lightning", M.ceil(M.random()*50)+1, Slot, c, " is pummeled by a hail of lightning", p); } } else if(N==="The Salamander"){ particleBurst(TGT,"red"); var Slot=TGT; for(var i=0;i<=2;i++){ g.myMagicDamage("fire", M.ceil(M.random()*40)+80, Slot, c, " is singed by a hydra bolt", p); } //exceptional }else if(N==="Kreizenn's Flame"|| N==="Clastocaust's Flame"){ particleBurst(TGT,"orange"); g.myMagicDamage("fire", 100, TGT, c, " skin erupts in flame", p); }else if(N==="Scimitar of the Mistwalker"|| N==="Scimitar of the Grovecaller"){ summonWolfFamiliar(); }else if(N==="Fluxbladed Axe"){ particleBurst(TGT,"magenta"); g.myMagicDamage("magic", 150, TGT, c, " is struck by fluxing strands of chaos", p); }else if(N==="Hexfire"|| N==="Hydraclash"){ function doit1(){ particleBurst(TGT,"orange","explode"+ ~~(M.random()*(3)+1)); g.myMagicDamage("fire", ~~(M.random()*25)+85, TGT, c, " is struck by a hydra bolt", p); } doit1(); T.delayedCall(.5, doit1); T.delayedCall(1, doit1); }else if(N==="Baezil's Vortex"|| N==="Rathmonan's Vortex"){ animateNova('lightningNova'); playAudio("novaelec"); for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("lightning", ~~(M.random()*75)+75, i, c, " is struck by a lightning nova", p); } } }else if(N==="Moonfall"){ animateMeteor(true); T.delayedCall(2.5, function(){ for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("fire", ~~(M.random()*100+400), i, c, " is struck by a meteor", p); } } }); }else if(N==="Truesight Hammer"){ particleBurst(TGT,"purple"); var d=133; if(mob[TGT].name.indexOf(" pet")!==-1){ d=d*5; } g.myMagicDamage("magic", d, TGT, c, " is slammed by holy light", p); }else if(N==="Earthshaker"){ screenShake(4,4,2,50); playAudio("earthquakeloop2",0,500); for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("physical",~~(M.random()*50+175), i, checkCrit(), "Tremor", true); interruptTarget(i); } } }else if(N==="Dawnfire, Morning Star of Light"|| N==="Venova's Dawn"){ particleBurst(TGT,"purple"); var d=195; if(checkUndead(TGT)===true){ d=d*3; } g.myMagicDamage("magic", d, TGT, c, " is slammed by holy light", p); }else if(N==="Gold Plated Koshigatana"){ particleBurst(TGT,"purple"); var d=175; if(mob[TGT].name.indexOf(" pet")!==-1){ d=d*5; } g.myMagicDamage("magic", d, TGT, c, " is slammed by holy light", p); }else if(N==="Soul Leech, Dark Sword of Blood"|| N==="Dark Sword of Tolloth"){ particleBurst(TGT,"purple"); g.myMagicDamage("magic", 75, TGT, c, "'s life is drained", p); g.popupHeal(75); }else if(N==="Bladestorm, Katana of Steel Sleet"|| N==="Emperor's Katana of Resolve"){ function doit2(){ animateDebuff("yellow"); for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("magic", ~~(M.random()*100+250), i, c, "'s skin shreds as swords rain down", p); } } } doit2(); T.delayedCall(2, doit2); T.delayedCall(4, doit2); }else if(N==="Blight, Hammer of the Scourge"|| N==="Blight, Hammer of Vedria"){ animateDot(TGT,"green"); Chat(mob[TGT].name+' sweats and shivers, looking feverish.',3); procDot(TGT, minMax(75,.9), "Scourge", "magic", 8, 1000); }else if(N==="Barbarian Spiritist's Hammer"){ particleBurst(TGT,"blue"); g.myMagicDamage("cold", ~~(M.random()*20)+421, TGT, c, " staggers as spirits of frost impact", p); }else if(N==="Gallantine's Gleaming Bastard Sword"){ particleBurst(TGT,"yellow","holybolt"); interruptTarget(TGT); g.myMagicDamage("magic", ~~(M.random()*25)+275, TGT, c, " is jolted by gleaming light", p); }else if(N==="Nature Walker's Scimitar"|| N==="Nature Covenant's Scimitar"){ animateDot(TGT,"yellow"); Chat(mob[TGT].name+" is gripped by nature's wrath.",3); procDot(TGT, minMax(55,.8), "Wrath of Nature", "lightning", 6, 1000); }else if(N==="Claw of Phara Dar"|| N==="Claw of Szarthax"|| N==="Claw of Darafar"){ animateHyperStrike(); myAttack.kill(); var d=frenzyRate/1000; myAttack = T.delayedCall(d, getDamage); myAttack2.kill(); myAttack2 = T.delayedCall(d, getDamage2); autoAttackTimer(d); myFrenzy=true; myFrenzyTimer.kill(); myFrenzyTimer = T.delayedCall(2, function(){ myFrenzy=false; }); }else if(N==="Singing Short Sword"|| N==="Harmonic Short Sword"){ if(my.job==="Bard"){ animateInnerPeace(); mySingingSword=true; mySingingSwordTimer.kill(); mySingingSwordTimer = T.delayedCall(12, function(){ mySingingSword=false; }); } }else if(N==="Earthcaller"|| N==="Artremian Blade"){ animateDot(TGT,"green"); Chat(mob[TGT].name+" is consumed by the embracing earth.",3); procDot(TGT, minMax(35,.8), "Earthcall", "magic", 9, 1000); }else if(N==="Smoldering Cudgel"|| N==="Singed Cudgel"){ particleBurst(TGT,"orange"); g.myMagicDamage("fire", ~~(M.random()*25)+454, TGT, c, " is singed by blazing fire", p); }else if(N==="Star of the Guardian"){ animateCleanse(); shieldHp+=1; }else if(N==="Celestial Fists"|| N==="Fists of Qiromir"){ animateHyperStrike(); myAttack.kill(); var d=frenzyRate/1000; myAttack = T.delayedCall(d, getDamage); myAttack2.kill(); myAttack2 = T.delayedCall(d, getDamage2); autoAttackTimer(d); myFrenzy=true; myFrenzyTimer.kill(); myFrenzyTimer = T.delayedCall(2.5, function(){ myFrenzy=false; }); }else if(N==="Scythe of the Shadowed Soul"|| N==="Scythe of the Reaper"|| N==="Waking Nightmare"){ animateDot(TGT,"purple"); Chat(mob[TGT].name+" is gripped by shadows of fear and terror.",3); procDot(TGT, minMax(75,.9), "Torment of Shadows", "magic", 9, 1000); }else if(N==="Razor Fang of Xygoz"|| N==="Razor Fang of Sartuz"){ animateHealing('yellow'); Chat(my.name+" is surrounded by an aura of nature.",3); var proc=uniqueId(); addBuffIcon("Blessing of Nature", "blessingOfNatureIcon"+proc, 6000, -32); function doit3(count,proc){ if(my.hp<=0){ removeIcon("blessingOfNatureIcon"+proc); return; } count++; g.popupHeal(17); if(count<6){ T.delayedCall(1, function(){ doit3(count,proc); }); }else{ removeIcon("blessingOfNatureIcon"+proc); } } var count=0; doit3(count,proc); }else if(N==="Spear of Fate"|| N==="Spear of the Ancients"){ animateDot(TGT,"purple"); Chat(mob[TGT].name+" is consumed by the raging spirits of the land.",3); procDot(TGT, 12, "Curse of the Spirits", "magic", 12, 1000); }else if(N==="Nightfall"){ var Slot=TGT; playAudio("spellDoneHeal"); spellDamage = ~~(M.random()*40)+560; Chat((mob[Slot].name+" is engulfed in darkness."),3); var damage = M.ceil(spellDamage/20); mob[Slot].doomingDarknessTickCount=1; mob[Slot].doomingDarknessTick=damage; mob[Slot].doomingDarknessInterval.kill(); mob[Slot].doomingDarknessInterval = T.to('', 1, {repeat:-1, onRepeat:function(){ doomingDarknessTick("magic", Slot); }}); addMobBuffIcon("Dooming Darkness",Slot,"doomingDarknessIcon",20000,-32); animateDot(Slot,'magenta');
}else if(N==="Palladius' Axe of Slaughter"|| N==="Wenerva's Axe of Slaughter"){ particleBurst(TGT,"white","hammer"); mob[TGT].runeHp=0; $("#MruneIcon"+TGT).remove(); g.myMagicDamage("magic", ~~(M.random()*40+350), TGT, c, " is shattered by divine force", p); }else if(N==="Curse of Ghalentus"||N==="Innoruuk's Curse"){ animateDot(TGT,"purple"); Chat(mob[TGT].name+"'s soul is consumed.",3); procDot(TGT, minMax(75,.8), "Soul Consumption", "magic", 8, 1000); }else if(N==="Fiery Defender"){ particleBurst(TGT,"orange"); stunTarget(TGT, 2500, -32); g.myMagicDamage("fire", ~~(M.random()*20)+235, TGT, c, " is burnt by the wrath of the heavens", p); }else if(N==="Jagged Blade of War"|| N==="Serrated Blade of War"){ particleBurst(TGT,"red"); g.myMagicDamage("fire", 375, TGT, c, "'s soul is consumed by the fury of Accostine", p); }else if(N==="Flamebellow"|| N==="Flamebelcher"){ playAudio("poisonnova"); animateNova('fireNova',false); for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("fire", ~~(M.random()*50)+375, i, c, " is burned by a wall of fire", p); } } }else if(N==="Staff of the Four"|| N==="Ornate Prism Staff"){ animateAncientWill(); shieldHp=355; //mana regen var proc=uniqueId(); addBuffIcon("Ornate Prism Staff", "barrierOfForceIcon"+proc, 6000, -32); function doit4(count,proc){ if(my.hp<=0){ removeIcon("barrierOfForceIcon"+proc); return; } count++; g.popupMana(21); if(count<6){ T.delayedCall(1, function(){ doit4(count,proc); }); } } doit4(0,proc); }else if(N==="Staff of the Serpent"|| N==="Staff of Sentoth"){ animateHyperStrike(); myAttack.kill(); var d=frenzyRate/1000; myAttack = T.delayedCall(d, getDamage); myAttack2.kill(); myAttack2 = T.delayedCall(d, getDamage2); autoAttackTimer(d); myFrenzy=true; myFrenzyTimer.kill(); myFrenzyTimer = T.delayedCall(4, function(){ myFrenzy=false; }); }else if(N==="Hierophant's Crook"){ function doit5(){ screenShake(4,4,2,50); playAudio("earthquakeloop2",0,500); for(var i=0;i<=4;i++){ if(mob[i].name){ g.myMagicDamage("physical",~~(M.random()*75+215), i, checkCrit(), "Tremor", true); interruptTarget(i); } } } doit5(); T.delayedCall(2.5, doit5); T.delayedCall(5, doit5); }else if(N==="Shatterfrost"){ var Slot = TGT; if(mob[Slot].name!==""){ var freezeDuration=2000; freezeDuration*=freezeReduction(); g.myMagicDamage("cold", ~~(M.random()*25)+310, TGT, c, " is slammed by a hail of ice", p); encaseTarget(Slot, freezeDuration,-256); } }else if(N==="Earth Shifter"){ screenShake(6,8,4,50); playAudio("earthquakeloop2",0,500); var hits = ~~(M.random()*4)+3; for(var i=0;i<hits;i++){ var Slot = selectRandomTarget(); g.myMagicDamage("physical",~~(M.random()*100+375), Slot, checkCrit(), "Tremor"); interruptTarget(Slot); } }else if(N==="The Cranium Basher"){ animateDot(TGT,"yellow"); Chat(my.name+" is cursed by amplify damage.",3); g.amplifyDamageStatus=true; }else if(N==="Blackstar, Mace of Night"|| N==="Blackstar Mace of Slagnon"){ animateHealing('yellow'); Chat(my.name+" is surrounded by the blessing of the Blackstar.",3); g.popupHeal(~~(M.random()*50)+75); }else if(N==="Hammer of the Dragonborn"){ animateDot(TGT,"orange"); Chat(mob[TGT].name+" is engulfed in corrupted dragon's breath.",3); procDot(TGT, minMax(175, .8), "Primal Corruption", "fire", 5, 1000, "spellDoneFlames"); } } | |