Okay . . it's time for me to get a scripting lesson. I have worked on this for several hours and I'm sure the obvious is eluding me.
I have an OnDragDrop section in one of my Quest Givers. Everything complies but it does not 'fully' work.
I want the QG to give an Overhead message depending on what the player drops. The problem is . . no Overhead message is given.
Here is the OnDragDrp section:
Can someone please tell me what I'm missing?
Many Thanks
I have an OnDragDrop section in one of my Quest Givers. Everything complies but it does not 'fully' work.
I want the QG to give an Overhead message depending on what the player drops. The problem is . . no Overhead message is given.
Here is the OnDragDrp section:
Code:
public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( dropped is GobannusScale )
{
GobannusScale scale = dropped as GobannusScale;
if (scale.Amount == 5000 )
{
scale.Delete();
from.AddToBackpack(new SelfRepairDeed());
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Thank you. The Self Repair Deed is in your backpack.", this.NetState );
}
else
{
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "For a Self Repair deed drop 5000 'Special Scales'. No more and No less.", this.NetState );
}
}
else
{
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Don't drop things on me unless they are 'Special Scales'.", this.NetState );
}
return false;
}
Can someone please tell me what I'm missing?
Many Thanks
Last edited: