Jump to content

Icesythe7

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Icesythe7's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. What are u doing by the way executing an entire lua script in c# in a loop?
  2. No i mean i can simply return u a table containing only "known" spell ranks and names but not the id
  3. would it help u any if i could return the name and rank of only known spells?
  4. Oh didnt know u needed it in lua um let me lookup the api on that if i can do it in vanilla i can do it in tbc im sure
  5. public bool HasSpellId(int spellId) { return SpellManager.SpellBook().Any(spell => spell.Id == spellId); } The smart way to do this is make an array of the shit u wanna check and checkit onload and whatever is to add it to a new array and use that new array for what u need to do to minimize the loop thi does, then register an lua event ontrained spell(w/e the name is) and anytime it called update ur local array
  6. now i understand give me a second
  7. So you simply want a function like this if (HasSpell(56342)) { //dosomething
  8. So you are wanting to input a spell id and return the max rank of that spell if it isknown or nil if it is not known...am i understanding correctly?
  9. Maybe im not understanding correctly what exactly are you trying to do
  10. lol it's ok I enjoy coding altho this really should be implemented into core because it is hard to get the correct thread to run the lua environment on
  11. Yes, I don't have extra money right now and its not a big deal anyways only annoying part is the math equation I have to do every restart lol
  12. Hello there, I enjoy coding in lua and found that only wow's outdated lua 5.0 api can be used(for vanilla), so I had the idea of making a plugin that could use all of WRobots api in an lua script to make fight classes, profiles, or anything really, so far I have a working prototype but was curious if I would be the only one using it or if there is any interest from the community to use lua scripting? If you guys would use the plugin then I will gladly continue work on it, currently it can run a simple script like this: local me = objectManager.me local ConjureWater = spell.__new("Conjure Water"); local ConjureFood = spell.__new("Conjure Food"); local ConjureManaRuby = spell.__new("Conjure Mana Ruby"); local ConjureManaCitrine = spell.__new("Conjure Mana Citrine"); local ConjureManaJade = spell.__new("Conjure Mana Jade"); local ConjureManaAgate = spell.__new("Conjure Mana Agate"); local IceArmor = spell.__new("Ice Armor"); local FrostArmor = spell.__new("Frost Armor"); local ArcaneInt = spell.__new("Arcane Intellect"); local ManaShield = spell.__new("Mana Shield"); local IceBarrier = spell.__new("Ice Barrier"); local DampenMagic = spell.__new("Dampen Magic"); local FrostBolt = spell.__new("Frostbolt"); local FireBall = spell.__new("Fireball"); local FrostNova = spell.__new("Frost Nova"); local Blink = spell.__new("Blink"); local FireBlast = spell.__new("Fire Blast"); local CoC = spell.__new("Cone of Cold"); local CounterSpell = spell.__new("Counterspell"); local PolyMorph = spell.__new("Polymorph"); function Buff() if FrostArmor.knownSpell and (not me.haveBuff("Frost Armor")) then return FrostArmor.launch() elseif ArcaneInt.knownSpell and (not me.haveBuff("Arcane Intellect")) then return ArcaneInt.launch() end end function EatDrink() --todo end function Fight() if FrostBolt.knownSpell and objectManager.target ~= nil and (not me.isCast) then return FireBlast.launch() or FrostBolt.launch() end end function onTick() if me.isDeadMe then return end if me.inCombat then Fight() elseif (not me.haveBuff("Frost Armor")) or (not me.haveBuff("Arcane Intellect")) then Buff() end end function onDraw() if objectManager.target == nil then return end draw.line(me.position, objectManager.target.position, color.black) end If you guys have any input on callbacks needed or api needed I can probably make it all, the project can be found here if anyone is curious or has suggestions on things to change LuaPlugin
×
×
  • Create New...