Various fixes to areas, mobs, CRs, items, and scripts
This commit is contained in:
@@ -12,7 +12,7 @@ void main()
|
||||
location lCenter = GetLocation(OBJECT_SELF);
|
||||
object oThing = GetFirstObjectInShape(SHAPE_SPHERE,60.0,lCenter,TRUE,OBJECT_TYPE_PLACEABLE | OBJECT_TYPE_ITEM);
|
||||
object oMaster = GetMaster(OBJECT_SELF);
|
||||
object oParty = GetFirstFactionMember(OBJECT_SELF, TRUE);
|
||||
object oParty = GetFirstFactionMember(oMaster, TRUE);
|
||||
while(GetIsObjectValid(oThing))
|
||||
{
|
||||
if(GetObjectType(oThing)==OBJECT_TYPE_ITEM)
|
||||
@@ -24,7 +24,7 @@ void main()
|
||||
ActionMoveToObject (oThing, TRUE, 1.0f);
|
||||
ActionDoCommand (SendMessageToPC(oParty, GetName(oMaster)+"'s golem"+" picked up "+sName+"."));
|
||||
ActionPickUpItem(oThing);
|
||||
//oParty = GetNextFactionMember(OBJECT_SELF, TRUE);
|
||||
oParty = GetNextFactionMember(oMaster, TRUE);
|
||||
|
||||
}
|
||||
else // oThing is a placeable
|
||||
@@ -48,7 +48,7 @@ void main()
|
||||
{
|
||||
ActionDoCommand (SendMessageToPC(oParty, GetName(oMaster)+"'s golem"+" picked up "+GetName(oItem)+" from "+GetName(oThing)+"."));
|
||||
ActionTakeItem(oItem,oThing);
|
||||
oParty = GetNextFactionMember(OBJECT_SELF, TRUE);
|
||||
oParty = GetNextFactionMember(oMaster, TRUE);
|
||||
oItem = GetNextItemInInventory(oThing);
|
||||
}
|
||||
ActionDoCommand(AssignCommand(oThing,PlayAnimation(ANIMATION_PLACEABLE_CLOSE)));
|
||||
|
Reference in New Issue
Block a user