Files
HeroesStone_PRC8/_module/nss/jw_newbies.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

48 lines
1.4 KiB
Plaintext

// Sets that the newbie has done part nSection of the newbie quest
void SetNewbieDone(object oPC, int nSection);
// Gets whether the newbie has done section nSection of the newbie quest
int GetNewbieDone(object oPC, int nSection);
// Sets whether this PC is an old char or a new one
// use the PC_OLDCHAR and PC_NEWCHAR constants
void SetIsOldorNewPC(object oPC, int OldorNew);
// Gets whether this PC is an old char or a new one
// Use the PC_OLDCHAR or PC_NEWCHAR constants
// returns 0 on error
int GetIsOldorNewPC(object oPC);
const int PC_OLDCHAR=2;
const int PC_NEWCHAR=3;
void SetNewbieDone(object oPC, int nSection)
{
object oBox=GetItemPossessedBy(oPC,"jw_crafting_gem");
SetLocalInt(oBox,"newbquest"+IntToString(nSection),TRUE);
}
int GetNewbieDone(object oPC, int nSection)
{
object oBox=GetItemPossessedBy(oPC,"jw_crafting_gem");
return GetLocalInt(oBox,"newbquest"+IntToString(nSection));
}
// Sets whether this PC is an old char or a new one
// use the PC_OLDCHAR and PC_NEWCHAR constants
void SetIsOldorNewPC(object oPC, int OldorNew)
{
object oBox=GetItemPossessedBy(oPC,"jw_crafting_gem");
SetLocalInt(oBox,"oldornewpc",OldorNew);
}
// Gets whether this PC is an old char or a new one
// Use the PC_OLDCHAR or PC_NEWCHAR constants
// returns 0 on error
int GetIsOldorNewPC(object oPC)
{
object oBox=GetItemPossessedBy(oPC,"jw_crafting_gem");
return GetLocalInt(oBox,"oldornewpc");
}