kfritz411

Member
I have been trying to get this custom container setup.....


Idea: Player drops a specific item on/in the box (in this case Professors Fake Notes) a few seconds later the box destroys the item and summons a monster.


I started with modifying the trashbarrel. I got to work about 90%, but need help with finishing touches:

1) I can't seem to figure out how to restrict the container to accept ONLY the specified item (Professors Fake Notes)

2) I can't drop items on the box (when I do it just bounces back to my bag), I must open it and place the item into the gump for the open container

3) I can't get it to display anything other than "Emptying the trashcan" when it deletes the item and summons the mobile.
 

Attachments

  • SummoningBox.cs
    3.7 KB · Views: 4
Thanks to @Quasar for showing me this method:

public override void OnDoubleClick(Mobile m)
{
Item a = m.Backpack.FindItemByType(typeof (ProfessorsFakeNotes));
if (a != null)
{
Mobile NewMobile = new Dragon();
NewMobile.MoveToWorld( new Point3D( 2298, 1483, -88 ), Map.Malas );
a.Delete();
m.SendMessage("The Beast Approaches");
this.Delete();
}
else
{
m.SendMessage("You have nothing to lure the beast");
}


This isn't exactly what I was looking for but it works essentially the way I wanted
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back