[WoW] Help with some code! menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Alejolas's Avatar Member
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    35
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WoW] Help with some code!

    Hello all!

    So, after loong time trying to figure this out, I just can't. That's why I come here to ask for the community's wisdom! Ok, I'm trying to revive some old LUA scripts for automated rotations to use in a private server, there was an addon that had a couple rotations but it was "Legal" to the point that even if all the code to make it automated is there, it is restricted because it only enables a "print" function which shows what spell to use in the raid frames. It has to be coded to use with a LUA unlocker in order to be automated, but I've tried and dunno how.

    Thing looks like this:

    Code:
    function VAS_Cast(t,u)	
    	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
    		if u == nil or u == "target" then u = "player" end
    		print("\124cFFFF55FFCast queue: "..GetSpellInfo(t).." at "..UnitName(u)) 
    	end
    	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
    		if u == nil or u == "target" then u = "player" end
    		raidfu = u
    		vicon = select(3,GetSpellInfo(t))
    		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
    		return true
    		--Blizzard Frame
    	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
    		if u == nil or u == "target" then u = "player" end
    		raidfu = u
    		vicon = select(3,GetSpellInfo(t))
    		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
    		return true
    		--Healbot
    	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
    		if u == nil or u == "target" then u = "player" end
    		raidfu = u
    		vicon = select(3,GetSpellInfo(t))
    		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
    		--ElvUI	
    		end
    So, to my understanding, what this does:
    Code:
    if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
    		if u == nil or u == "target" then u = "player" end
    		print("\124cFFFF55FFCast queue: "..GetSpellInfo(t).." at "..UnitName(u)) 
    	end
    Is exactly calling the spellinfo and putting it into the raid frame, that way, it shows me what to use, to what target frame. (btw the rest, healbot, blizzard frames, ElvUI its just the same spellicon printing but in those frames). As I said before, I'm trying to find a way that instead of printing and getting the spellinfo it casts the spell, so I can automate the rotation and it will do it by its own.

    Any suggestions?

    Thanks!

    [WoW] Help with some code!
  2. #2
    Veritable's Avatar OwnedCore News Correspondent
    Reputation
    326
    Join Date
    Apr 2007
    Posts
    372
    Thanks G/R
    52/123
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Casting by spell id was removed from public access and moved to Blizzard API, which is why you need a lua unlocker to get it to work. That makes the client believe that your lua script is a Blizzard Official LUA script, which would then allow it to use:

    docs/api/CastSpellByID - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

    You just need the lua unlocker for your client version, which is available by searching google (there's even links to the forums).

Similar Threads

  1. [Buying] Need helping, making wow accounts with promo codes. Repped users only. Paying!
    By ChrisD in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 07-30-2016, 08:45 PM
  2. Will help with some scams
    By nolander001 in forum WoW Scams Help
    Replies: 0
    Last Post: 04-13-2008, 05:10 PM
  3. Help with some stuff plz
    By Minichili in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 04-03-2008, 12:56 PM
  4. [PHP-SITE] Little Help With A Code...
    By viKKmaN in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 03-16-2008, 07:12 AM
All times are GMT -5. The time now is 10:14 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search