WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Tech Chat (https://www.wowinterface.com/forums/forumdisplay.php?f=139)
-   -   Give me some tips, please (https://www.wowinterface.com/forums/showthread.php?t=46516)

TheModder 05-22-13 11:35 PM

Give me some tips, please
 
I'm wanted to make an autocast addon for instances. It's possible, i think. GCD isn't a problem. I'm using OnUpdate. Sure, the source code will be large, but easy. So, i just begin start coding. I wrote the code - maybe it will be for you a mess. Just one thing what i can't deal with. I'm starting to explain the code.

Code:

SLASH_HEALER = '/healer', '/heal';
SLASH_DPSM = '/dpsm';
SLASH_DPSH = '/dpsh';
SLASH_DPSP = '/dpsp';
::first::
local function handler(msg, editbox)
 if msg == '/heal' then
  goto heal
 elseif msg == '/dpsm'then
  goto dpsmage;
 elseif msg == '/dpsh' then
  goto dpshunter
 elseif msg == '/dpsp' then
  goto dpspriest
 end
end

i think it's not too hard to understand. i used wowwiki's guide to write a command. i don't think it's perfect i just didn't found here any problem.
i made some labels for heal, dpsmage and so on.
i'm making this addon for myself. i made 5 accounts in a private server. all of it will have a 80 player (yes, wotlk 3.3.5a). two priest, one paladin, one hunter and one mage. so, i used CastSpellByName.
i wrote next the labels. went fine, and here comes the problem.
this is my toc file
Code:

## Interface: 12340
## Title: Raid BoT
## Notes: "Not yet complete"
## Version: 1.0
RaidBoT.lua

My client says: incompatible. Yea, i don't have any *.xml files, 'cause if i did understand well, then i don't need any of those. (It is for frames)

I'm waitain' for useful tips. i don't want to hear about it's impossible, you are crazy it won't work, so on. i know that is possible, just need to think. i attach my lua files.
my toc file is up there.

Cairenn 05-23-13 12:59 AM

Discussion of Private Servers, in any manner other than theoretical, is completely against our rules. We are an Official Fan Site. We follow Blizzard's rules, on top of our own rules.

Threads requesting assistance with Private Servers get locked. Repeated postings get you banned.


All times are GMT -6. The time now is 05:41 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI