darkmassacre
Newbie
- Apr 27, 2015
- 39
- 11
I used to modify bot codes for video games and make it better suited for the class I played. I ended up doing some of the best dps in the world with the modified code. The problem is I dont know how to program and I could only do this if someone wrote the base code that I could go off of. I have finally decided to learn programming but I dont know what language it is that I was editing, It might be LUA, C++ or c#.
Here is a sample code, if you could please tell me what language this it, it would be greatly appreciated.
Here is a sample code, if you could please tell me what language this it, it would be greatly appreciated.
Code:
-- combat mode check --
if combatMode ~= 2 then
return false
end
-- bloodbath,if=enabled&buff.enrage.up
if IsMeeleSpellAvailable(Bloodbath) then
if HasBuff("player", EnrageBuff) > 0 then
CastSpellByID(Bloodbath)
end
end
-- cleave,if=(rage>=60&debuff.colossus_smash.up)|rage>90
if IsMeeleSpellAvailable(Cleave) then
if (GetPlayerPower() >= 60 and HasDebuff("target", ColossusSmashDB) > 0) or GetPlayerPower() > 90 then
CastSpellByID(Cleave)
end
end
-- heroic_leap,if=buff.enrage.up
if SpellCooldown(HeroicLeap) < latency then
if HasBuff("target", EnrageBuff) > 0 then
-- CastSpellByID(HeroicLeap)
end
end
-- dragon_roar,if=enabled&(!debuff.colossus_smash.up&(buff.bloodbath.up|!talent.bloodbath.enabled))
if IsMeeleSpellAvailable(DragonRoar)then
if HasDebuff("target", ColossusSmashDB) == 0 then
if HasBuff("player", BloodbathBuff) > 0.1 or IsSpellKnown(Bloodbath) == false then
CastSpellByID(DragonRoar)
end
end
end
-- bladestorm,if=enabled&buff.enrage.up&(buff.bloodbath.up|!talent.bloodbath.enabled)
if IsMeeleSpellAvailable(Bladestorm) then
if HasBuff("player", EnrageBuff) > 0 and (HasBuff("player", BloodbathBuff) > 0 or IsSpellKnown(Bloodbath) == false) then
CastSpellByID(Bladestorm)
end
end
-- shockwave,if=enabled
if IsMeeleSpellAvailable(Shockwave) then
CastSpellByID(Shockwave)
end
-- colossus_smash
if IsMeeleSpellAvailable(ColossusSmash) then
CastSpellByID(ColossusSmash)
end
-- bloodthirst,cycle_targets=1,if=dot.deep_wounds.remains<5
if IsMeeleSpellAvailable(Bloodthirst) then
if HasDebuff("target", DeepWoundsDB) > 5 then
--SwitchTarget
--TargetNearestEnemy(false)
else
CastSpellByID(Bloodthirst)
end
end
-- bloodthirst,if=!(target.health.pct<20&debuff.colossus_smash.up&rage>=30&buff.enrage.up
if IsMeeleSpellAvailable(Bloodthirst) then
if not (InExecuteRange() and HasDebuff("target", ColossusSmashDB) > 0
and GetPlayerPower() >= 30 and HasBuff("player", EnrageBuff) > 0) then
CastSpellByID(Bloodthirst)
end
end
-- storm_bolt,if=enabled
if IsSpellKnown(StormBolt) and SpellCooldown(StormBolt) < latency then
CastSpellByID(StormBolt)
end
-- wait,sec=cooldown.bloodthirst.remains,if=!(target.health.pct<20&debuff.colossus_smash.up&rage>=30&buff.enrage.up)&cooldown.bloodthirst.remains<=1&cooldown.bloodthirst.remains
if SpellCooldown(Bloodthirst) <= 1 and SpellCooldown(Bloodthirst) ~= 0 then
if not (InExecuteRange() and HasDebuff("target", ColossusSmashDB) > 0
and GetPlayerPower() >= 30 and HasBuff("player", EnrageBuff) > 0) then
return false
end
end
-- execute,if=debuff.colossus_smash.up
if IsMeeleSpellAvailable(Execute) then
if TargetHealthPct() < 20 then
if HasDebuff("player", ColossusSmashDB) > 0 then
CastSpellByID(Execute)
end
elseif HasBuff("player", Tier16ExecuteBuff) > 0 then
if HasDebuff("player", ColossusSmashDB) > 0 then
CastSpellByID(Execute)
end
end
end
-- raging_blow,if=buff.meat_cleaver.up|target.health.pct<20
if IsMeeleSpellAvailable(RagingBlow) then
local remains, stacks = HasBuff("player", WhirlwindBuff)
if stacks == 1 or TargetHealthPct() < 20 then
CastSpellByID(RagingBlow)
end
end
-- whirlwind,if=!buff.meat_cleaver.up
if IsMeeleSpellAvailable(Whirlwind) then
if HasBuff("player", WhirlwindBuff) == 0 then
CastSpellByID(Whirlwind)
end
end
-- battle_shout
if SpellCooldown(BattleShout) < latency then
if shoutMode == "battle" then
CastSpellByID(BattleShout)
else
CastSpellByID(CommandingShout)
end
end
-- heroic_throw
if SpellCooldown(HeroicThrow) < latency then
CastSpellByID(HeroicThrow)
end
Last edited: