Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 13-05-2006, 10:38 PM   #1
promithius
WorldofWar.Net Member
 
Join Date: Oct 2005
Posts: 40
help with my first addon please!

Hi guys, having never written an addon in my life i figured here would be a good place to ask =P Does anyone have any good links to some newbie guides?

The add-on i want to write would be one that can auto-call a mini pet (non-combat). i know there used to be one, but since you cant link to movment keys nymore it dosent work. i propose using the PLAYER_TARGET_CHANGED command. Also, how do i link to an inventory slot? (say you have your pet in slot 1 of your generic bag) and how would i make the add-on check if the pet was already out? im guessing some form of IF command such as (s'cuse the psuedo code, i dont know the commands)

IF
pet out = true
THEN
do nothing
ELSE
call slot 1 bag 1
END

good idea? the addon dosent need a UI if i do it this way, just some simple code. heres my psuedo code for the whole thing:

ON
player_change_target
THEN CHECK
pet out = true
THEN
do nothing
ELSE
call slot 1 bag 1
END

help with the code? i can work out how to actually compile the mod myself =D found a site explaining that. also, would i need to use a .toc at all?

Sorry for my post being all over the place! having to write this quick!
(yes, im the same person from thr WoW official forums! copy n pasted the post i made there)
All help appreciated!
promithius is offline   Reply With Quote
Old 14-05-2006, 03:42 PM   #2
promithius
WorldofWar.Net Member
 
Join Date: Oct 2005
Posts: 40
the old addon is minipetleash, was on curse gaming but it has gone. i cant find it anywhere, if anyone has it, please PM me
promithius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden