View Single Post
05-22-13, 11:35 PM   #1
TheModder
A Kobold Labourer
Join Date: May 2013
Posts: 1
Cool 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.

Last edited by Cairenn : 05-23-13 at 01:00 AM.