2024-09-21 14:31:54 -04:00
|
|
|
#include "inc_gennui"
|
|
|
|
|
2024-08-02 23:18:00 -04:00
|
|
|
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");
|
|
|
|
|
2024-09-26 13:55:40 -04:00
|
|
|
|
2024-09-21 14:31:54 -04:00
|
|
|
|
|
|
|
//:: NUI Magic by Daz
|
|
|
|
//Examine_DisablePanels(oPC);
|
|
|
|
PrintString(GetObjectUUID(oPC));
|
2024-08-02 23:18:00 -04:00
|
|
|
|
|
|
|
if (iXP < 1 && iGP < 300) //:: Gold for new players
|
|
|
|
{
|
|
|
|
int iRand = d100(3)+50;
|
|
|
|
GiveGoldToCreature(oPC,iRand);
|
2024-09-26 13:55:40 -04:00
|
|
|
ExecuteScript("ss_treasure",oPC);
|
2024-08-02 23:18:00 -04:00
|
|
|
}
|
2024-09-21 14:31:54 -04:00
|
|
|
|
|
|
|
//:: Add system journal entries
|
2024-08-02 23:18:00 -04:00
|
|
|
AddJournalQuestEntry("JRNL_XPCHART", 1, oPC, FALSE, FALSE, FALSE);
|
|
|
|
AddJournalQuestEntry("JRNL_LA_BUYOFF", 1, oPC, FALSE, FALSE, FALSE);
|
|
|
|
}
|