PoA_PRC8/_module/nss/sd_oncliententer.nss
Jaysyn904 0dbb628b75 Added Skullkeep's dynamic loot generation system
Added Skullkeep's PRC8 compatible dynamic loot generation system.  Full compile.  Updated release archive.
2024-11-08 18:54:51 -05:00

98 lines
3.0 KiB
Plaintext

#include "x0_i0_campaign"
#include "inc_colorstring"
#include "pqj_inc"
//#include "aa_i_main"
//#include "sk_ethos"
//#include "sk_factions"
//#include "sk_deity"
//#include "inc_award_lang"
//#include "gz_inc_db"
void main()
{
/* ExecuteScript("sd_soc_install", OBJECT_SELF);
RebuildJournalQuestEntries(GetEnteringObject());
object oPC = GetEnteringObject();
location locPC = GetCampaignDBLocation(oPC, "LOC");
if(!GetIsPC(oPC))
return;
SetLocalString(oPC,"PC_CD_KEY",GetPCPublicCDKey(oPC));
if (GetXP(oPC)<1)
{
GiveXPToCreature(oPC,1);
GiveGoldToCreature(oPC,3500);
CreateItemOnObject("NW_IT_CONTAIN006",oPC);
SendMessageToPC(oPC, ColorString("++ Welcome to Skullkeep ++", 1, 255, 1));
SendMessageToPC(oPC, ColorString("Please check your journal for helpful information for new players.", 1, 255, 1));
CreateItemOnObject("portalscroll",oPC);
CreateItemOnObject("tinkerstoolset",oPC);
AwardLanguages(oPC);
AddPersistentJournalQuestEntry("WELCOME_JOURNAL",1,oPC);
AddPersistentJournalQuestEntry("CRAFTING_JOURNAL",1,oPC);
AddPersistentJournalQuestEntry("COMMANDS_JOURNAL",1,oPC);
AddPersistentJournalQuestEntry("HOUSING_RULE",1,oPC);
AddPersistentJournalQuestEntry("ENTRY_DEITIES",1,oPC);
SetDeity (oPC, "Faithless");
string deity = GetDeity(oPC);
SendMessageToPC(oPC, "Deity: " + deity);
SK_Faction_Display(oPC);
}
else
{
SendMessageToPC(oPC, ColorString("++ Welcome back to Skullkeep ++", 1, 255, 1));
SendMessageToPC(oPC, ColorString("Thanks for playing!", 1, 255, 1));
string deity = GetDeity(oPC);
if (deity != "Faithless")
{
SK_Deity(oPC);
}
SK_Faction_Display(oPC);
SK_Ethos(oPC);
SendMessageToPC(oPC, "Deity: " + deity);
}
//Test to see if PC has a skill book.. if not, then create one.
if (GetItemPossessedBy(oPC,"NoDrop_SkillLogBook")==OBJECT_INVALID)
{
CreateItemOnObject("skilllogbook",oPC,1);
}
//Delete persistent hooks which need to be 'gone' to begin with
//**this added due to HoTU effects on servervault characters
DeleteLocalInt(oPC,"iSkillGain");
DeleteLocalInt(oPC,"iPCUsedMap");
DeleteLocalInt(oPC,"iAmFollowingMap");
DeleteLocalInt(oPC,"iAmDiggingMap");
DeleteLocalInt(oPC,"iAmFishing");
DeleteLocalInt(oPC,"iCancelFishing");
DeleteLocalInt(oPC,"iAmInField");
DeleteLocalInt(oPC,"iAmInWaterField");
DeleteLocalInt(oPC,"iAmInCommodityArea");
DeleteLocalString(oPC,"sKillMe");
DeleteLocalInt(oPC,"iAmDigging");
DeleteLocalLocation(oPC,"lIWasHere");
if (GetHasFeat(FEAT_PRESTIGE_IMBUE_ARROW))
{
//Destroy imbued arrows.
AADestroyAllImbuedArrows(oPC);
}
if (OBJECT_INVALID != GetAreaFromLocation(locPC))
{
AssignCommand(oPC, ActionJumpToLocation(locPC));
}
if (GetIsDM(oPC) == TRUE && GetItemPossessedBy(oPC,"hh_dm_tool")==OBJECT_INVALID)
{
CreateItemOnObject("hh_dm_tool",oPC,1);
}
*/
}