MMD_PRC8/_module/nss/on_mod_enter.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

23 lines
545 B
Plaintext

void main()
{
//:: establishes PC current grid coordinates
object oPC = GetEnteringObject();
int iXP = GetXP(oPC);
int iGP = GetGold(oPC);
SetLocalInt(oPC,"ate",1);
SetLocalInt(oPC,"drank",1);
SetLocalString(oPC,"ss_t_chest_1","100003");
ExecuteScript("ss_treasure",oPC);
if (iXP < 1 && iGP < 300) //:: Gold for new players
{
int iRand = d100(3)+50;
GiveGoldToCreature(oPC,iRand);
}
AddJournalQuestEntry("JRNL_XPCHART", 1, oPC, FALSE, FALSE, FALSE);
AddJournalQuestEntry("JRNL_LA_BUYOFF", 1, oPC, FALSE, FALSE, FALSE);
}