Updates areas, spawns, items, mobs
and fixed typos in convos up to convo_cashan
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//Contributed by Mike Daneman aka. Mishenka
|
||||
//Modified: 69MEH69 Added more items to pick up
|
||||
//Modified by EpicValor for party loot
|
||||
#include "69_inc_henai"
|
||||
|
||||
void main()
|
||||
@@ -67,10 +68,10 @@ void main()
|
||||
}
|
||||
}
|
||||
}
|
||||
} // else
|
||||
}
|
||||
oThing = GetNextObjectInShape(SHAPE_SPHERE,60.0,lCenter,TRUE,OBJECT_TYPE_PLACEABLE | OBJECT_TYPE_ITEM);
|
||||
|
||||
} // while(GetIsObjectValid(oThing))
|
||||
}
|
||||
|
||||
ActionDoCommand(SetAssociateState(NW_ASC_IS_BUSY,FALSE));
|
||||
|
||||
|
@@ -1,64 +0,0 @@
|
||||
#include "69_inc_henai"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMaster = GetMaster();
|
||||
ClearAllActions();
|
||||
SetAssociateState(NW_ASC_IS_BUSY);
|
||||
int bFound = FALSE;
|
||||
string sName;
|
||||
location lCenter = GetLocation(OBJECT_SELF);
|
||||
object oThing = GetFirstObjectInShape(SHAPE_SPHERE, 60.0, lCenter, TRUE, OBJECT_TYPE_PLACEABLE | OBJECT_TYPE_ITEM);
|
||||
|
||||
// Create a list of party members
|
||||
object oPartyMember = GetFirstFactionMember(oMaster, TRUE);
|
||||
|
||||
while (GetIsObjectValid(oThing))
|
||||
{
|
||||
if (GetObjectType(oThing) == OBJECT_TYPE_ITEM)
|
||||
{
|
||||
bFound = TRUE;
|
||||
sName = GetName(oThing);
|
||||
{
|
||||
ActionDoCommand(SendMessageToPC(oPartyMember, GetName(oMaster) +"'s" + " golem picked up " + sName + "."));
|
||||
ActionPickUpItem(oThing);
|
||||
//oPartyMember = GetNextFactionMember(oMaster, TRUE);
|
||||
}
|
||||
}
|
||||
else // oThing is a placeable
|
||||
{
|
||||
if (GetHasInventory(oThing)) // Containers (including corpses)
|
||||
{
|
||||
// Don't search locked containers
|
||||
// Only search trapped containers if you can't see the trap
|
||||
if (!GetLocked(oThing) && (!GetIsTrapped(oThing) || (GetIsTrapped(oThing) && !GetTrapDetectedBy(oThing, OBJECT_SELF))))
|
||||
{
|
||||
bFound = TRUE;
|
||||
ActionMoveToObject(oThing, TRUE, 1.0f);
|
||||
ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 0.5);
|
||||
object oItem = GetFirstItemInInventory(oThing);
|
||||
string sItem = GetName(oItem);
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
|
||||
ActionDoCommand (SendMessageToPC(oPartyMember, GetName(oMaster) +"'s" + " golem picked up " + sItem + "."));
|
||||
ActionTakeItem(oItem, oThing);
|
||||
oItem = GetNextItemInInventory(oThing);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
ActionDoCommand(AssignCommand(oThing, PlayAnimation(ANIMATION_PLACEABLE_CLOSE)));
|
||||
}
|
||||
oPartyMember = GetNextFactionMember(oMaster);
|
||||
}
|
||||
//}
|
||||
} // else
|
||||
oThing = GetNextObjectInShape(SHAPE_SPHERE, 60.0, lCenter, TRUE, OBJECT_TYPE_PLACEABLE | OBJECT_TYPE_ITEM);
|
||||
} // while(GetIsObjectValid(oThing))
|
||||
ActionDoCommand(SetAssociateState(NW_ASC_IS_BUSY, FALSE));
|
||||
if (!bFound)
|
||||
SpeakString("I don't see where I can find any around here.");
|
||||
}
|
16
_module/nss/baltarattack.nss
Normal file
16
_module/nss/baltarattack.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName baltarattack
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 9
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
// Set the faction to hate the player, then attack the player
|
||||
AdjustReputation(GetPCSpeaker(), OBJECT_SELF, -100);
|
||||
DetermineCombatRound(GetPCSpeaker());
|
||||
}
|
@@ -14,4 +14,5 @@
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("nw_o2_generalmed", OBJECT_SELF);
|
||||
ExecuteScript("bb_closechest", OBJECT_SELF);
|
||||
}
|
||||
|
Reference in New Issue
Block a user