Aantioch_Infernum/_module/nss/innerkeep_enter.nss
Jaysyn904 15c0c0da79 Installed NESS 4.1.9
Installed NESS 4.1.9.  Tweaked main city.  Full compile.
2023-08-09 07:17:50 -04:00

427 lines
15 KiB
Plaintext

#include "prc_inc_racial"
void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC)) return; // pc or dm check
if(GetIsDM(oPC)==TRUE) return;
int iXP = GetXP(oPC);
if (iXP <1)
{
SetXP(oPC, 2);// set xp so script doesnt fire again on enter
///enter
object oArea = OBJECT_SELF;
AssignCommand(oPC, ClearAllActions());
ExploreAreaForPlayer(oArea, oPC);
//start
object oItem = GetFirstItemInInventory(oPC);
while(GetIsObjectValid(oItem))
{
// SetPlotFlag(oItem,FALSE);
DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
///////////// equip players according to class
int iClass = GetClassByPosition (1, oPC);
if(iClass == CLASS_TYPE_BARBARIAN)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_waxgr001", oPC);
CreateItemOnObject("nw_waxhn001", oPC);
CreateItemOnObject("nw_aarcl008", oPC);
CreateItemOnObject("nw_it_medkit002", oPC);
CreateItemOnObject("nw_wthax001", oPC,9);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
SendMessageToPC(oPC, "Barbarian EQ");
}
if(iClass == CLASS_TYPE_BARD)
{
CreateItemOnObject("nw_aarcl009", oPC);
CreateItemOnObject("nw_it_sparscr312", oPC);
CreateItemOnObject("nw_it_sparscr202 ", oPC);
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wbwxl001", oPC);
CreateItemOnObject("nw_wambo001", oPC,25);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Bard EQ");
}
if(iClass == CLASS_TYPE_CLERIC || iClass == CLASS_TYPE_ARCHIVIST || iClass == CLASS_TYPE_FAVOURED_SOUL)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wblml001", oPC);
CreateItemOnObject("nw_ashsw001", oPC);
CreateItemOnObject("nw_aarcl004", oPC);
CreateItemOnObject("x1_wmgrenade005", oPC,9);
SendMessageToPC(oPC, "Cleric EQ");
}
if(iClass == CLASS_TYPE_DRUID)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wspmsc002", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_it_medkit002", oPC);
CreateItemOnObject("x1_wmgrenade006", oPC,9);
SendMessageToPC(oPC, "Druid EQ");
}
if(iClass == CLASS_TYPE_SOHEI)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
CreateItemOnObject("nw_wswss001", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_it_medkit002", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 2);
SendMessageToPC(oPC, "Sohei EQ");
}
if(iClass == CLASS_TYPE_SHAMAN)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
CreateItemOnObject("nw_wdbqs001", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_it_medkit002", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 2);
SendMessageToPC(oPC, "Shaman EQ");
}
if(iClass == CLASS_TYPE_SAMURAI || iClass == CLASS_TYPE_CW_SAMURAI)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
if (iClass != CLASS_TYPE_SAMURAI) {CreateItemOnObject("nw_wswka001", oPC);} // Katana
CreateItemOnObject("nw_aarcl003", oPC); // Scale armor
CreateItemOnObject("nw_wswgs001", oPC); // Shortsword
SendMessageToPC(oPC, "Samurai EQ");
}
if(iClass == CLASS_TYPE_FIGHTER || iClass == CLASS_TYPE_WARBLADE
|| iClass == CLASS_TYPE_CRUSADER
|| iClass == CLASS_TYPE_DUSKBLADE
|| iClass == CLASS_TYPE_SOULBORN
|| iClass == CLASS_TYPE_MARSHAL)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswls001", oPC);
CreateItemOnObject("nw_aarcl011", oPC);
CreateItemOnObject("nw_ashlw001", oPC);
CreateItemOnObject("nw_wswgs001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Warrior EQ");
}
if(iClass == CLASS_TYPE_KNIGHT)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswls001", oPC);
CreateItemOnObject("nw_aarcl011", oPC);
CreateItemOnObject("nw_ashlw001", oPC);
SendMessageToPC(oPC, "Knight EQ");
}
if(iClass == CLASS_TYPE_MONK)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wspka001", oPC);
CreateItemOnObject("nw_wthsh001", oPC,25);
CreateItemOnObject("nw_mcloth018", oPC);
CreateItemOnObject("nw_it_medkit002", oPC);
SendMessageToPC(oPC, "Monk EQ");
}
if(iClass == CLASS_TYPE_PALADIN)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswls001", oPC);
CreateItemOnObject("nw_aarcl006", oPC);
CreateItemOnObject("nw_ashlw001", oPC);
CreateItemOnObject("nw_it_medkit002", oPC);
SendMessageToPC(oPC, "Paladin EQ");
}
if(iClass == CLASS_TYPE_SCOUT)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wbwsh001", oPC);
CreateItemOnObject("nw_wamar001", oPC,25);
CreateItemOnObject("nw_wamar001", oPC,25);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Scout EQ");
}
if(iClass == CLASS_TYPE_RANGER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wbwsh001", oPC);
CreateItemOnObject("nw_wamar001", oPC,25);
CreateItemOnObject("nw_wswss001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Ranger EQ");
}
if(iClass == CLASS_TYPE_HEALER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("nw_it_medkit001", oPC,2);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Healer EQ");
}
if(iClass == CLASS_TYPE_HEXBLADE)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade002", oPC,4);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswsc001", oPC);
SendMessageToPC(oPC, "Hexblade EQ");
}
if(iClass == CLASS_TYPE_BINDER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade003", oPC,9);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Binder EQ");
}
if(iClass == CLASS_TYPE_WARLOCK || iClass == CLASS_TYPE_DRAGONFIRE_ADEPT)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 3);
CreateItemOnObject("nw_aarcl001", oPC); // Leather Mail
CreateItemOnObject("nw_wblms001", oPC); // Morning Star
SendMessageToPC(oPC, "Warlock EQ");
}
if(iClass == CLASS_TYPE_DRAGON_SHAMAN)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 3);
CreateItemOnObject("nw_ashsw001", oPC); // Small Shield
CreateItemOnObject("nw_aarcl006", oPC); // Chain mail
CreateItemOnObject("nw_wblms001", oPC); // Morning Star
SendMessageToPC(oPC, "Dragonfire Shaman EQ");
}
if(iClass == CLASS_TYPE_WILDER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 3);
CreateItemOnObject("nw_ashsw001", oPC); // Small Shield
CreateItemOnObject("nw_aarcl001", oPC); // Leather Mail
CreateItemOnObject("nw_wblms001", oPC); // Morning Star
SendMessageToPC(oPC, "Wilder EQ");
}
if(iClass == CLASS_TYPE_WARMAGE)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC, 2);
CreateItemOnObject("x1_wmgrenade005", oPC, 3);
CreateItemOnObject("nw_it_contain002", oPC);
CreateItemOnObject("x1_it_sparscr103", oPC);
CreateItemOnObject("nw_it_sparscr202", oPC);
CreateItemOnObject("nw_ashsw001", oPC); // Small Shield
CreateItemOnObject("nw_aarcl001", oPC); // Leather Mail
CreateItemOnObject("nw_wblms001", oPC); // Morning Star
SendMessageToPC(oPC, "Warmage EQ");
}
if(iClass == CLASS_TYPE_INCARNATE)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC, 2);
CreateItemOnObject("x1_wmgrenade006", oPC, 3);
CreateItemOnObject("nw_aarcl004", oPC); // Chain Mail
CreateItemOnObject("nw_wblms001", oPC); // Morning Star
SendMessageToPC(oPC, "Incarnate EQ");
}
if(iClass == CLASS_TYPE_SOULKNIFE)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade003", oPC,3);
CreateItemOnObject("nw_ashlw001", oPC);
CreateItemOnObject("nw_aarcl001", oPC);
SendMessageToPC(oPC, "Soulknife EQ");
}
if(iClass == CLASS_TYPE_TRUENAMER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,3);
CreateItemOnObject("x1_wmgrenade002", oPC,3);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Truenamer EQ");
}
if(iClass == CLASS_TYPE_TOTEMIST)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade001", oPC,3);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
CreateItemOnObject("nw_ashsw001", oPC);
SendMessageToPC(oPC, "Totemist EQ");
}
if(iClass == CLASS_TYPE_SWASHBUCKLER)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade003", oPC,3);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
CreateItemOnObject("nw_wswrp001", oPC);
SendMessageToPC(oPC, "Swashbuckler EQ");
}
if(iClass == CLASS_TYPE_SWORDSAGE)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade004", oPC,3);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_wswls001", oPC);
SendMessageToPC(oPC, "Swordsage EQ");
}
if(iClass == CLASS_TYPE_ROGUE || iClass == CLASS_TYPE_BEGUILER
|| iClass == CLASS_TYPE_PSYCHIC_ROGUE
|| iClass == CLASS_TYPE_FACTOTUM)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC,2);
CreateItemOnObject("x1_wmgrenade003", oPC,9);
CreateItemOnObject("nw_aarcl001", oPC);
CreateItemOnObject("nw_it_picks002", oPC);
CreateItemOnObject("nw_it_trap001", oPC);
CreateItemOnObject("nw_wswss001", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
SendMessageToPC(oPC, "Rogue EQ");
}
if(iClass == CLASS_TYPE_SORCERER || iClass == CLASS_TYPE_DREAD_NECROMANCER || iClass == CLASS_TYPE_SHADOWCASTER )
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wswdg001", oPC);
CreateItemOnObject("nw_wthdt001", oPC,9);
CreateItemOnObject("nw_cloth008", oPC);//robe
CreateItemOnObject("nw_it_contain002", oPC);
CreateItemOnObject("x1_it_sparscr103", oPC);
CreateItemOnObject("nw_it_sparscr202", oPC);
SendMessageToPC(oPC, "Sorcerer EQ");
}
if(iClass == CLASS_TYPE_PSION)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wdbqs001", oPC);
CreateItemOnObject("nw_cloth005", oPC);//robe
CreateItemOnObject("nw_it_contain002", oPC);
SendMessageToPC(oPC, "Psion EQ");
}
if(iClass == CLASS_TYPE_WIZARD)
{
CreateItemOnObject("nw_it_torch001", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_it_mpotion020", oPC);
CreateItemOnObject("nw_wdbqs001", oPC);
CreateItemOnObject("nw_cloth005", oPC);//robe
CreateItemOnObject("nw_it_contain002", oPC);
CreateItemOnObject("x1_it_sparscr103", oPC);
CreateItemOnObject("nw_it_sparscr202", oPC);
CreateItemOnObject("nw_it_sparscr107", oPC);
CreateItemOnObject("nw_it_sparscr106", oPC);
SendMessageToPC(oPC, "Wizard EQ");
}
}
//end of script
}