Added: 2 years ago
From: smariot
Views: 11,465
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (49)

Sign In or Sign Up now to post a comment!
  • can you make more tut for create addons please? :D

  • @OfficialRox The legal implications of this request are questionable.

  • Also: ## Desc: My addon does: blah

  • So if Print puts the message in the chatbox, how to do I get it to be a window? I imagine I would have to make a window.

    or is there an easier method that puts the print message after all the addon spam?

  • @cksboy If you want a delay, you need to create a frame (it can be invisible) and use the OnUpdate event to measure out some amount of elapsed time, and then unregister the event and print the message.

    There might be something buried in FrameXML for displaying message boxes, but I don't know of anything, and I don't feel like searching through it.

  • @smariot How would I go about doing that? Just making a addon for a UI compilation.

  • You'd want something like this (YouTube wasn't designed for pasting code, so YMMV):

    local frame=CreateFrame("FRAME")

    local elapsed=0

    frame:SetScript("OnUpdate", function (self, delta) elapsed = elapsed+delta if elapsed > NUMBER_OF_SECONDS_TO_WAIT then self:SetScript("OnUpdate", nil) print("Hello World")  end

    end

  • @cksboy I should have wrote CreateFrame("Frame") there, I expect case matters.

  • @smariot I get

    Message: Interface\AddOns\BobUI\BobUI.l­ua:5: unexpected symbol near '?'

    Time: 08/31/11 19:35:18

    Count: 1

    Stack:

    Locals:

  • What softwear Can I use to Open/use .lua and .toc files?

  • @nfsmwanted You can use any text editor you want, although you'll more than likely want one with syntax highlighting. Wowpedia has a page called Lua_editors, which has a nice list of programs you can use.

    Windows Notepad, while technically usable, will break horribly on the code from most AddOns. 26 years of development and it still can't handle linefeed characters. Avoid it like the plague.

  • this is eazy (has experience) way easier than java to me

  • Thank you for this tutorial, and thank you for the hours you put into what was and is still a great addon in QuestHelper.

  • I want to make an addon for my rogue that makes a group of a bunch of skills onto just 1 skill so I just press one buttom then the group of skills are executed in order btw I just want to have to work with 4 buttoms as dota ^^

  • @Gh0StSecurity Addons aren't allowed to control your player, to prevent people from making bots. What you probably want is a /castsequence macro.

  • I fell asleep.

  • Is there anyway to make this wait?? Please help me

  • i gave up on making a addon cuz its to much to learn lua :'( might try again maybe when i have alot of time on my hands lol :D

  • it's usally where ever the .... you installed it! LOL

  • The porgram to make addons is "Add on studio for world of warcraft"

  • @Flowgeta I was the original author of QuestHelper, which I believe one or two people found useful. Of course, I haven't contributed anything to it in well over a year, and it has just recently changed hands for the third time, but still.

  • @smariot Can you help me?? If you can pm me on yt. Im not trying to write my own addon, im just trying to update one of my favorites. The addon is called Unreal sound and what it does is track your kills and depending on your kill streak it will use the voices of the announcers of unreal tournament.

  • omg, u have the most annoying voice ever.... lol

  • Omg lol. i renamed the title of my healbot to MyMoooooooom and it worked XD

  •  ijust farted D:

  • @Linkiboy112 I'm not sure why you believed it prudent I be made aware of this, but congratulations all the same.

  • how do you tell the interface version?

  • @ConquestsProductions I believe you can type: /script print(GetBuildInfo())

    It should displace the game version, the build number, the build date, and lastly, the interface version.

  • great tut, the only thing is that the addon isn't working...

  • what is XML ? what dose it do can you tell me plz

  • XML in WoW is for metaprogramming, which is where you write code that generates code. It's mostly for creating frames and widgets and all that stuff, since it will let you create templates and have it generate the code to setup those frames for you.

    You don't need XML, you can do pretty much anything with Lua, it's just a convenience. Personally, I don't like it.

  • ok thank you =)

  • looking for wow lua scripter a expiernced 1 plz apply quik

  • Why would I put effort into helping you, when you don't seem to have put any effort into asking?

  • it just updated . its not 30200 but i dont know how to put it

  • Okay, I'll assume it's 30300 now.

  • not working ... i used :

    print("Hello Master!");

    but it aint workin :(

    can you help me ?

  • It would be kind of hard to tell you what you did wrong without seeing what you did, but here's a checklist:

    - Make sure the TOC file has the same name as the folder it's in.

    - If in Windows, the file extension of the TOC file might be hidden. (It might appear as foo.toc, when in reality it's foo.toc.txt)

    - The encoding of the files (toc, lua, xml) should either be ASCII, or UTF-8 without a byte order mark. I think WoW actually will accept a BOM, but a stand-alone lua interpreter will barf.

  • - Completely restart Warcraft when you add a new file. It internally identifies files via a hash table which it generates at startup from the MPQ files and everything it finds in its own directory.

    - Completely restart Warcraft when you edit anything other than a LUA or XML file. They tend to get cached. LUA/XML files can be reloaded with: /console reloadui

    - Try searching WoWWiki for a tutorial. I'll add a link to one in the video description.

  • My file is helloworld.toc.txt, but how can i change it to just .toc then?

    im REALLY glad if u can answer, and ty for a great vid! ;)

  • And for what it's worth,

    print("Hello Master!");

    is valid lua, so that's not the problem.

  • I was having the same issue, file name was HelloWorld.toc.txt and hello.lua.txt.

    I fixed this by going in to another addon, copy+paste the toc and lua file to my hello world folder, rename and edit as necessary. Not the clean and neat version, but it works.

  • actualy it maybe works but when i click "Addons" it wont show up ... ( addons button is there becouse i have other addons i downloaded )

  • Just a heads up, Blizz have removed the "message()" function, only "print ()" will work now, will show RIGHT at the top of your chat box.

    Good luck! :D

  • Very nice. Are you able to call other methods from any lua file?

    Such as getting stats and other data?

  • love it i all ways wanted to know how the addons worked and were made, do you think you could show us how to make a more difficult one. plz plz plz =P

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more