Full Version : GIVE doesnt work ?:/
xmlspawner >>Q&A >>GIVE doesnt work ?:/


<< Prev | Next >>

Sou- 02-16-2006
I have a quest holder with objective1

GIVE,Liam,simplenote,2,label1=List

I have simple note wit label1=List and NPC with name=Liam

Why I cant pull down this simple note on that NPC?!?!

Maeby I have some bug in the scripts?:/

ArteGordon- 02-16-2006
is Liam an xmlquestnpc, or one of the talkingbasecreatures, talkingbasevendors, or talkingbaseescortables?

Those are the only npcs that will accept given items by default.

You can make normal vendors or creatures accept them by adding this to the basevendor or basecreature scripts

CODE

 public override bool OnDragDrop( Mobile from, Item item)
 {
  return XmlQuest.RegisterGive(from, this, item);
 }


Sou- 02-17-2006
Thx Arte!

Liam was a normaln npc;)

Kalen- 02-26-2006
CODE

public override bool OnDragDrop( Mobile from, Item item)
{
 return XmlQuest.RegisterGive(from, this, item);
}




When I tried to add that into basevendor.cs I got an error that said there was already an ondragdrop method already.

ArteGordon- 02-26-2006
Just adding that to basecreature.cs should be enough. Dont bother with basevendor.cs. BaseVendors are derived from basecreatures, so if you mod basecreatures, then it will apply to basevendors as well.