Pstemarie says "Lots in the same area" OK
Good job, henesua! EDITED and removed "GetObjectType(GetNearestObject(OBJECT_TYPE_ITEM)) && GetObjectType(oItem) &&"
(add inside void of OnHeartBeat Event beggar userdefinided)
//////////////////////////////////////////////////////////////
///////////////SCRIPT By WhiteTiger and henesua///////////////
//////////////////////////////////////////////////////////////
//START - Beggar Pick Up Item
object oItem = GetFirstObjectInShape(SHAPE_SPHERE, 25.0, GetLocation(OBJECT_SELF), TRUE, OBJECT_TYPE_ITEM);
if (oItem!=OBJECT_INVALID)
{
ClearAllActions();
ActionPickUpItem(oItem);
return;
}
//END
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Modifié par WhiteTiger, 13 mars 2014 - 10:28 .