Full Version : Making NPCs addons.
xmlspawner >>Scripting Support >>Making NPCs addons.


<< Prev | Next >>

Odee- 07-02-2006
Hey everyone. Its been a while since I posted, but Im back.

Okay, basically what I want to do is take an NPC (ex: a banker) and turn it into a statue...so it doesnt move. I want to do this through AddonGen but if I do that, the script will turn out to be a dead ogre.

For example, I say [add banker. I [set cantwalk true the banker so it cant move and I can do what I want to it. I add items to make it look like, say, a Knight. I then [addongen and set the boundaries, z, etc.. I restart server and then [add MyStatueAddon. When I target the location to place it, it appears as an ogre.

Ive also done this with a corpse of an NPC, so I can get more "in depth" with my dungeons.

I have seen a few shards do this with NPCs, but it actually worked for them laugh.gif

Any help would be much appreciated.

Thanks!

ArteGordon- 07-02-2006
I'm afraid I havent use [addongen so I'm not much help there, but are you trying to add a human npc corpse as part of the addon or the actual human npc that just doesnt move?

Odee- 07-02-2006
Both. Heres addongen.

ArteGordon- 07-02-2006
QUOTE (Odee @ July 02, 2006 08:06 am)
Both. Heres addongen.

There is no way of adding a mobile to a standard addon, and there is no way of using mobile art for items that you could include in an addon.
You could make your own custom addon class that also included mobiles, but that is basically what you would use a multi for.
Corpses are containers that use the bodyid of the owner to display the appropriate corpse art so that is possible (since containers are items).

I would guess that when you add the corpse as an addon component, it doesnt retain the appearance of the owner because the art is not just a function of the itemid but also the Amount property, which probably doesnt get saved by the script.

Odee- 07-02-2006
Okay thanks. I appreciate the help smile.gif

Happy 4th of July!

Happy 4th of July, USA!


-- Odee