Is there any way to get the model of an npc serverside?

greatguys1

Epic Adventurer
MSC Developer
Warriors of the North
MSC Archivist
Joined
Apr 20, 2013
Messages
338
Reaction score
60
Age
26
Location
Yes
Trying to have a quest check against their name, race, scriptname, and model to see if they contain any of the search string. I'm doing that 'cuz for example, some skeletons don't have "skeleton" in their name, but may have it in their scriptname or model.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Think ya know how to check against name, race, and scriptname, all $gets of the same (though you may want to use "itemname" to nix the folder structure). Model is similarly $get(<target>,model) - though I'm not 100% sure that one works. However, if ya can't narrow it down with those first three, seems a bit overkill either way (most MMO's that tell you to kill X# of Y tend to have a few Y's running about that don't count). The test dynamic quest system only checks for partial matches in name or scriptname.
 

greatguys1

Epic Adventurer
MSC Developer
Warriors of the North
MSC Archivist
Joined
Apr 20, 2013
Messages
338
Reaction score
60
Age
26
Location
Yes
Model is similarly $get(<target>,model) - though I'm not 100% sure that one works.
I read on ms.stx that it's $getcl only. I tested it with just $get and it returns 0 (I think, don't quite remember, but it didn't return the model.) It's not really a big issue though, at least for what I'm doing. Worst thing is that "Awakened Guardian" in calruin2 won't count for "skeleton"
Thanks
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Hrmm... Maybe I'll see if I can cook something up, as given how many skeletons there are in Calruin that defy the "skele" scriptname convention, that could get annoying.
 
Top