Aschbourne_PRC8/_module/nss/_cb_client_enter.nss
Jaysyn904 5d27edafba Major update
Fixed CCOH, Fixed starting GP, Fixed DMFI languages, Fix cep weapon appearances, Fixed new player start up system.  Added PC deleter.  Added ACP 4.1.  Full compile.  Updated release archive.
2024-09-16 23:40:48 -04:00

39 lines
1.4 KiB
Plaintext

//ColdBlade
//Client Enter event
//Copyright (c) 2002 by Coldblade
//V2.0.0
//-------------------------------------------------
//This is also in the Client Enter, to setup the variables for first level until
//the player levelup atleast onice in the game. This is for the half-dragon, as we know
//the half-dragon increase the player hitdice, aka a thief with d6 would become d8
//to a maxminum of d12. so that means barbarns are out. This version has quite a
//bit of workaround to get around the muliclass ability of the player just making
//one check and kicking him out wouldn't be fair if he's a say barbarn/wizard muliclass
//cos the wizard will still legaly deserve the hitdice increase. Well not a lots
//of workaround but it took me a few min to think and plan the whole thing out :)
#include "_cb_core"
void main()
{
object cbObject = GetEnteringObject();
object oMod = GetModule();
if(!GetIsDM(cbObject))
{
SetLocalInt(cbObject, "CB_ITEM", 0);
SetLocalInt(cbObject, "CB_DRAGON", 0);
SetLocalInt(cbObject, "CB_OLD1", 0);
SetLocalInt(cbObject, "CB_OLD2", 0);
SetLocalInt(cbObject, "CB_OLD3", 0);
SetLocalInt(cbObject, "CB_CHECK", 0);
SetLocalInt(cbObject, "CB_DAYNIGHT", 0);
SetLocalInt(cbObject, "O3_ECL_XP_ONE_SECOND_AGO", 0);
int ECL = core(cbObject);
SetLocalInt(cbObject, "CB_ECL", ECL);
}
if(GetLocalInt(oMod, "CB_EXECUTE") != 1)
{
ExecuteScript("_cb_ecl", oMod);
SetLocalInt(oMod, "CB_EXECUTE", 1);
}
}