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:
Jaysyn904
2021-09-04 01:08:04 -04:00
parent ae152d0814
commit d0d52fb1d0
58 changed files with 19134 additions and 28127 deletions

View File

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