Adding MMO systems
Added barred doors, set up more city denizen spawners, cleaned up Baleas Town Guards, Faerunized the "Holy Paladins". Added character deleter NPC in the OOC Starting Area.
This commit is contained in:
@@ -27,6 +27,28 @@ void DeathCheck(int nDeaths);
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oNPC = OBJECT_SELF;
|
||||
|
||||
// Chance of guard type creatures dropping gear onDeath.
|
||||
if ((GetResRef(oNPC) == "npc_baleasgrd001") ||
|
||||
(GetResRef(oNPC) == "npc_goldeye001") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd003") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd004") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd005"))
|
||||
{
|
||||
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC);
|
||||
object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC);
|
||||
|
||||
// Give a 3% chance to drop armor &/or equipped weapon
|
||||
int bDroppableA = d100() > 97;
|
||||
int bDroppableW = d100() > 97;
|
||||
|
||||
SetDroppableFlag(oArmor, bDroppableA);
|
||||
SetDroppableFlag(oWeapon, bDroppableW);
|
||||
|
||||
}
|
||||
|
||||
// If we are set to, don't fire this script at all
|
||||
if(GetAIInteger(I_AM_TOTALLY_DEAD)) return;
|
||||
|
||||
|
Reference in New Issue
Block a user