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);
|
2025-09-03 22:08:45 -04:00
|
|
|
//:: Give Iron Rations to character.
|
|
|
|
CreateItemOnObject("food002", oPC);
|
|
|
|
CreateItemOnObject("food002", oPC);
|
|
|
|
CreateItemOnObject("food002", oPC);
|
|
|
|
//:: Give Canteen to character
|
|
|
|
CreateItemOnObject("food004", oPC, 1);
|
|
|
|
//:: Give random treasure to character
|
2024-09-26 13:55:40 -04:00
|
|
|
ExecuteScript("ss_treasure",oPC);
|
2025-09-03 22:08:45 -04:00
|
|
|
|
|
|
|
SetXP(oPC, 2);
|
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);
|
2025-07-15 22:19:46 -04:00
|
|
|
AddJournalQuestEntry("JRNL_PRC8", 1, oPC, FALSE, FALSE, FALSE);
|
|
|
|
AddJournalQuestEntry("JRNL_FOODWTR", 1, oPC, FALSE, FALSE, FALSE);
|
2025-09-03 22:08:45 -04:00
|
|
|
|
|
|
|
//:: Start PEPS AI client script.
|
|
|
|
ExecuteScript("0e_onclientload", oPC);
|
2024-08-02 23:18:00 -04:00
|
|
|
}
|