Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function karmAttacks()
- kbashingAttack = (fire and firewhip and "whip") or (divinus and divinuswhip and "whip") or (excorable and excorablewhip and "whip") or blunt and "swing" or "jab"
- if kbashingAttack == "whip" then
- for _,dtype in ipairs(damageTypes) do
- if _G[dtype] and _G[dtype.."whip"] and not mm.me.wielded[_G[dtype.."whipnumber"]] then
- if gripping and not whipfailsafe then
- send("relax grip", false)
- send("sheathe weapon", false)
- send("draw "..razingnumber, false)
- unwieldAll()
- send("wield ".._G[dtype.."whipnumber"], false)
- send("grip", false)
- whipfailsafe = true
- tempTimer(3, [[whipfailsafe = false]])
- end
- end
- end
- elseif kbashingAttack ~= "whip" then
- for _,dtype in ipairs(damageTypes) do
- if mm.me.wielded[_G[dtype.."whipnumber"]] then
- send("relax grip", false)
- send("sheathe weapon", false)
- send("sheathe weapon", false)
- send("unwield weapon", false)
- send("unwield whip", false)
- send("unwield "..shieldnumber, false)
- send("draw "..bashingweapon, false)
- end
- end
- end
- if bscurios and not curiochangeattempted then
- if kbashingAttack == "manifest destruction at" and firecurio and curiodamagetype ~= "fire" then
- send("curio activate "..firecurionumber, false)
- curiochangeattempted = true
- elseif kbashingAttack == "whip" and divinuscurio and mm.me.wielded[tostring(divinuswhipnumber)] and curiodamagetype ~= "divinus" then
- send("curio activate "..divinuscurionumber, false)
- curiochangeattempted = true
- elseif kbashingAttack == "whip" and excorablecurio and mm.me.wielded[tostring(excorablewhipnumber)] and curiodamagetype ~= "excorable" then
- send("curio activate "..excorablecurionumber, false)
- curiochangeattempted = true
- elseif kbashingAttack == "whip" and firecurio and mm.me.wielded[tostring(firewhipnumber)] and curiodamagetype ~= "fire" then
- send("curio activate "..firecurionumber, false)
- curiochangeattempted = true
- elseif kbashingAttack == "swing" and bluntcurio and curiodamagetype ~= "blunt" then
- send("curio activate "..bluntcurionumber, false)
- curiochangeattempted = true
- elseif kbashingAttack == "jab" and cuttingcurio and curiodamagetype ~= "cutting" then
- send("curio activate "..cuttingcurionumber, false)
- curiochangeattempted = true
- end
- tempTimer(1, [[curiochangeattempted = false]])
- end
- if mtarget_shielded and (kbashingAttack == "swing" or kbashingAttack == "jab") then
- send("raze " .. mtarget, false)
- send("swing " .. mtarget, false)
- tempTimer(1, [[checkForLostAttack()]])
- mtarget_shielded = false
- return
- elseif mtarget_shielded and useshieldbreakskill and kbashingAttack == "whip" then
- send(shieldbreakskill.." "..mtarget, false)
- tempTimer(1, [[checkForLostAttack()]])
- mtarget_shielded = false
- return
- end
- if (kbashingAttack == "swing" or kbashingAttack == "jab") then
- send(kbashingAttack .. " " .. mtarget, false)
- send(kbashingAttack .. " " .. mtarget, false)
- tempTimer(1, [[checkForLostAttack()]])
- else
- send(kbashingAttack .. " " .. mtarget, false)
- tempTimer(1, [[checkForLostAttack()]])
- end
- end
- function kbashingattack()
- if canBash() then
- blunt = bluntweak[mtarget] or false
- fire = fireweak[mtarget] or false
- divinus = divinusweak[mtarget] or false
- excorable = excorableweak[mtarget] or false
- psychic = psychicweak[mtarget] or false
- cold = coldweak[mtarget] or false
- electric = electricweak[mtarget] or false
- cutting = cuttingweak[mtarget] or false
- poison = poisonweak[mtarget] or false
- asphyxiation = asphyxiationweak[mtarget] or false
- magic = magicweak[mtarget] or false
- if gmcp.Char.Vitals.beastbal == "1" then
- beastAction()
- end
- if not bashingfailsafe then
- karmAttacks()
- bashingfailsafe = true
- tempTimer(0.5, [[bashingfailsafe = false]])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement