Re-uploaded instead of migrated
Re-uploaded instead of migrated.
This commit is contained in:
22
_module/nss/ho_lvlup_pc.nss
Normal file
22
_module/nss/ho_lvlup_pc.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables
|
||||
object oPC = GetEnteringObject();
|
||||
string sTag = GetTag(OBJECT_SELF);
|
||||
int iParty = GetNumberPartyMembers(oPC);
|
||||
int iXP = GetXP(oPC);
|
||||
|
||||
//:: Parties larger than 2 shouldn't need a boost.
|
||||
if (iParty >= 2) return;
|
||||
|
||||
//:: This boost is only availible to new characters
|
||||
if (iXP > 0 ) return;
|
||||
|
||||
//:: Make sure they can only get the boost once if they are solo.
|
||||
if (GetLocalInt(oPC, sTag) >= 1) return;
|
||||
|
||||
//ActionStartConversation(oPC, "ho_lvlup_pc", TRUE, FALSE);
|
||||
BeginConversation("ho_lvlup_pc", oPC);
|
||||
}
|
Reference in New Issue
Block a user