View Single Post
09-20-10, 06:28 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
PlayerModel:SetDisplayInfo(displayID) - (unrelated) Can show an NPC's visual without needing to have seen the mob before. The only way to get displayID is through the DBCs though.
HOLY COW. Is it finally possible to display models you have not in your cache?

I'm dying fo a solution on displaying any kind of wisp model. Everyhting I tried didn't work out.

Best I had was

(1)
Code:
local m = CreateFrame("Model",nil,UIParent)
m:SetModel("Creatures\\Wisp\\Wisp.mdx")
Or

(2)
Code:
local m = CreateFrame("PlayerModel",nil,UIParent)
--http://www.wowhead.com/npc=16701
local creatureID = 16701 --use ID from Wisp Pet
m:SetCreature(creatureID)
(1) Problem: I have the model but with huge white squares, I guess that is beacause I had no skin specified that would be applied to that model. If would do that if I knew how to apply skins to models in LUA. No clue atm.

(2) Works, but only when the pet is cached.

Questions:
- Can I apply skinds to models? If yes how.

So this should bring me my wisp...
Code:
local m = CreateFrame("PlayerModel",nil,UIParent)
--http://www.wowhead.com/npc=16701
local creatureID = 16701 --use ID from Wisp Pet
m:SetDisplayInfo(creatureID)
Link to wisp pet: http://www.wowhead.com/npc=16701

Interesting is this aswell:
http://www.wowhead.com/spell=24740

It applies "Apply Aura: Change Model (3681)"
That leads to: http://www.wowhead.com/npc=3681

I finally want my wisp animation. Damn'it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-20-10 at 06:44 AM.
  Reply With Quote