Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
89
_module/nss/wa_stripall.nss
Normal file
89
_module/nss/wa_stripall.nss
Normal file
@@ -0,0 +1,89 @@
|
||||
#include "hc_inc"
|
||||
#include "hc_text_enter"
|
||||
#include "i_tagtests"
|
||||
#include "anph_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
int iLvl;
|
||||
int nDM = GetIsDM (oPC);
|
||||
|
||||
if (GetXP(oPC) <= 1 && !GetIsDM(oPC))
|
||||
{
|
||||
object oGear = GetItemInSlot(INVENTORY_SLOT_ARMS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_BELT, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_BOLTS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_BOOTS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
//oGear = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC);
|
||||
//if(GetIsObjectValid(oGear))
|
||||
// DestroyObject(oGear);
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_CLOAK, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_HEAD, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_LEFTRING, oPC);
|
||||
if(GetIsObjectValid(oGear) && !GetIsNoDrop(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_NECK, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oPC);
|
||||
if(GetIsObjectValid(oGear) && !GetIsNoDrop(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_ARROWS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_BOLTS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
oGear = GetItemInSlot(INVENTORY_SLOT_BULLETS, oPC);
|
||||
if(GetIsObjectValid(oGear))
|
||||
DestroyObject(oGear);
|
||||
|
||||
// Removing PC's inventory.
|
||||
|
||||
object oStuff = GetFirstItemInInventory(oPC);
|
||||
while(GetIsObjectValid(oStuff))
|
||||
{
|
||||
if (!GetIsNoDrop(oStuff))
|
||||
{
|
||||
DestroyObject(oStuff);
|
||||
}
|
||||
oStuff = GetNextItemInInventory(oPC);
|
||||
}
|
||||
// Give new PC's the server info book.
|
||||
if(!GetIsObjectValid(GetItemPossessedBy(oPC,"AnphilliaInformation")))
|
||||
CreateItemOnObject("AnphilliaInformation", oPC);
|
||||
|
||||
// if (!GetIsObjectValid(GetItemPossessedBy(oPC,"AnphilliaRuleBook")))
|
||||
// CreateItemOnObject("anphilliaruleboo", oPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user