I'm attempting to change what the escortable drops, in this case change it from gold to an item. In BaseEscortable.cs around line 302 I found this peice of code
Code:
Container cont = escorter.Backpack;
if ( cont == null )
cont = escorter.BankBox;
Gold gold = new Gold( 500, 1000 );
if ( cont == null || !cont.TryDropItem( escorter, gold, false ) )
gold.MoveToWorld( escorter.Location, escorter.Map );
Now to get the npc to drop something other than gold I have tried changing
Code:
Gold gold = new Gold( 500, 1000 );
to
Code:
Item item = new Item ( item name placed here () );
I have also tried this method
Code:
Gold gold = new Item( item name placed here ());
as well as trying this
Code:
mobile.AddToBackpack( new Item name placed here( ) );
I have also tried changing each reference to gold in the script section up above to item as well. I know my scripting skills are not great, but we all must learn somewhere. If any one could give me a hand on this, or even point me in the right direction it would be apprieated. I have attempted to look for a quest NPC escortable that gave items as well but I did not find it, which doesn't mean its not there, just means I'm horrible at finding things on the forums.