Hi i want to now how make a script a script to make a mercenary
do you mean the OSI hirelings like the mage, swordsman, archer, etc.?
http://runuo.com/forums/showthread.php?t=28603 how make the players can dress the mercenaries?
you mean like dropping clothing on them?
You could test for certain types of clothing or weapons or things that go on certain layers in theOnDragDrop override and try to equip the dropped item on the mobile.
i mean like diablo 2 exp you can give armors and weapons
QUOTE (BiO_ZeRg @ May 29, 2006 07:37 pm) |
i mean like diablo 2 exp you can give armors and weapons |
Dragging and dropping onto the mobile would be the easiest.
but how i do? plz tell me
just add this to the beginning of the OnDragDrop override in your BaseHire.cs if you are using that package.
QUOTE |
public override bool OnDragDrop( Mobile from, Item item ) { // add equippable items to the mobile if (item.Layer != Layer.Invalid) { Item olditem = FindItemOnLayer(item.Layer); if (olditem != null) { olditem.Delete(); } AddItem(item); return true; }
|