Initial upload
Initial upload
This commit is contained in:
49
_module/nss/xx_cb_enter.nss
Normal file
49
_module/nss/xx_cb_enter.nss
Normal file
@@ -0,0 +1,49 @@
|
||||
#include "xx_persist_quest"
|
||||
#include "cs_misc_function"
|
||||
void main ()
|
||||
{
|
||||
// WriteTimestampedLogEntry("Entering Module onClientEnter: xx_cb_enter");
|
||||
|
||||
object oPlayer = GetEnteringObject();
|
||||
// string sPlayerName = GetName(oPlayer);
|
||||
// string sPCPlayerName = GetPCPlayerName(oPlayer);
|
||||
// string sCDKey = GetPCPublicCDKey(oPlayer);
|
||||
// string sIP = GetPCIPAddress(oPlayer);
|
||||
|
||||
AddJournalQuestEntry("xprules", 1, oPlayer, FALSE, FALSE, FALSE);
|
||||
AddJournalQuestEntry("lvl_adj", 1, oPlayer, FALSE, FALSE, FALSE);
|
||||
|
||||
cs_DestroyStolenItems(oPlayer); // Destroy any stolen items
|
||||
cs_LimitGoldInBank(oPlayer, 20000000); // Limit gold in bank
|
||||
cs_LimitGoldOnPlayer(oPlayer, 1000000); // Limit gold on player
|
||||
|
||||
DelayCommand(3.0,cs_StripPlayerSpells(oPlayer)); // Strip Spells
|
||||
DelayCommand(4.0,cs_StripPlayerFeats(oPlayer)); // Strip Feats
|
||||
DelayCommand(2.0,cs_MakeAllItemsNoClean(oPlayer)); // Set items for store cleanup script
|
||||
|
||||
// Rebuild Journal Entries for chr. Tab
|
||||
RebuildJournalQuestEntries(GetEnteringObject());
|
||||
|
||||
cs_RemoveIllegalItem(oPlayer, "EVILORB"); // Remove all illegal items (None replaced)
|
||||
cs_RemoveIllegalItem(oPlayer, "GOODORB");
|
||||
cs_RemoveIllegalItem(oPlayer, "PVPHELM");
|
||||
cs_RemoveIllegalItem(oPlayer, "PVPTOKEN");
|
||||
cs_RemoveIllegalItem(oPlayer, "EVILSYMBOL");
|
||||
cs_RemoveIllegalItem(oPlayer, "GOODSYMBOL");
|
||||
|
||||
|
||||
//
|
||||
// Removed Items use the TAG, Created Items use the ResRef!
|
||||
// Tags must also be different... at least for now.
|
||||
//
|
||||
|
||||
// Remove 'ArmoroftheShiningsea' and replace with 'armorofunspokenp' (Unique item, so only 1 allowed)
|
||||
if (cs_RemoveIllegalItem(oPlayer, "ArmoroftheShiningSea") > 0) { cs_CreateObjectOnPlayer("armorofunspokenp", oPlayer); }
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user