View Single Post
  #6  
Old 01-17-2012, 03:14 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I added SetBodyType(type, overwrite_orig=false) to the wiki. I don't believe that is able to toggle whether an NPC is targetable in realtime. I think you would have to set the overwrite_orig field to true and repop the NPC to toggle that, but I haven't messed with that function yet really.

To toggle an NPC from targetable to untargetable, you can use SetTargetable(targetable=true), which is in the wiki already. I am not sure if we have the opcodes for all clients yet for that command. You might need to check it on Titanium to make sure it works before making too much use of it.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote