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) { 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_FIGHTER) { 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, "Fighter 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_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_ROGUE) { 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) { 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_contain006", oPC); CreateItemOnObject("x1_it_sparscr103", oPC); CreateItemOnObject("nw_it_sparscr202", oPC); SendMessageToPC(oPC, "Sorcerer 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_contain006", 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 }