Thread Tools Display Modes
03-16-06, 08:26 AM   #1
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
DUF scrip on target

hi, ehh... too bad that discord homepage still down but if its posible i'd like to have some help here :]

atm i'm using script for 1 texture:
On load
this:RegisterEvent("PLAYER_TARGET_CHANGED");

On Event
if UnitExists("target") and UnitIsPlayer("target") then
DART_Show(ti);
else
DART_Hide(ti);
end


working fine for all players, but how to make it appear when i target any NPC/mob ?

i think i have to create new texture and replace "UnitIsPlayer("target")" with smth in this line:
if UnitExists("target") and UnitIsPlayer("target") then

but what should I change here?
  Reply With Quote
03-17-06, 09:31 AM   #2
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
bump
heeelp please ^_^
  Reply With Quote
03-17-06, 03:21 PM   #3
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
Remove "and UnitIsPlayer("target")"
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote
03-17-06, 05:30 PM   #4
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
oh... how simple thank you
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » DUF scrip on target


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

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