Thread Tools Display Modes
01-02-06, 05:07 AM   #1
DragonsofSatan
A Murloc Raider
Join Date: Jan 2006
Posts: 5
Discord Art script help!

I need help making a script that allows me to swap one texture to another on a keypress. Also i would like to make a texture appear when im in a party but disapper when im in a raid. Also any help where to find MyPartyModels and dl it would be very much appreciated.
  Reply With Quote
01-06-06, 09:35 PM   #2
Falkonn00
A Deviate Faerie Dragon
Join Date: Jan 2006
Posts: 13
3D Models answer maybe?

I can't help you on the scripting of the textures, but if you are talking about the 3d models, I know that this Druidium pack comes with them inbedded. Just copy out the MyModel and MyTarget addon folders into your AddOn folder and they will appear at the center of the screen when you first load up.

http://www1.curse-gaming.com/mod.php?addid=2266
  Reply With Quote
01-07-06, 06:48 AM   #3
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
Set the Discord Art keybinding for the texture. Put this in OnKeybindingDown:

if this.swapped then
DART_Texture(ti, "full path and filename of the old texture");
this.swapped = nil;
else
DART_Texture(ti, "full path and filename of the new texture");
this.swapped = 1;
end

Note you have to use \\ instead of \ when using the DART_Texture function. For example: if the file's foo.tga in DART's CustomTextures folder, you'd type DART_Texture(ti, "Interface\\AddOns\\DiscordArt\\CustomTextures\\foo")

Showing in party, hiding in raid:

OnLoad:
this:RegisterEvent("PARTY_MEMBERS_CHANGED");
this:RegisterEvent("RAID_ROSTER_UPDATE");

OnEvent:
if GetNumPartyMembers() > 0 then
DART_Show(ti);
else
DART_Hide(ti);
end

if GetNumRaidMembers() > 0 then
DART_Hide(ti);
end
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » Discord Art script help!


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