Various fixes to areas, mobs, CRs, items, and scripts

This commit is contained in:
EpicValor
2023-09-18 17:58:18 -05:00
parent 1a97a1f036
commit 05986aecf7
72 changed files with 37563 additions and 7192 deletions

View File

@@ -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)));