Full Version : Hire mercenaries
xmlspawner >>Scripting Support >>Hire mercenaries
<< Prev | Next >>
BiO_ZeRg- 05-28-2006
Hi i want to now how make a script a script to make a mercenary
ArteGordon- 05-28-2006
do you mean the OSI hirelings like the mage, swordsman, archer, etc.?
http://runuo.com/forums/showthread.php?t=28603
BiO_ZeRg- 05-29-2006
how make the players can dress the mercenaries?
ArteGordon- 05-29-2006
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.
BiO_ZeRg- 05-29-2006
i mean like diablo 2 exp you can give armors and weapons
ArteGordon- 05-29-2006

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.
BiO_ZeRg- 05-29-2006
but how i do? plz tell me
ArteGordon- 05-30-2006
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;
}