Changed folder name.
Changed folder name.
This commit is contained in:
72
_module/nss/gc_gaunt_props.nss
Normal file
72
_module/nss/gc_gaunt_props.nss
Normal file
@@ -0,0 +1,72 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName gc_gaunt_prop
|
||||
//:://////////////////////////////////////////////
|
||||
/*----------------------------------------------------------
|
||||
Created By: Genisys(Guile)
|
||||
Created On: 2/09/09
|
||||
----------------------------------------------------------
|
||||
Had to change up the dmg properties check to make sure
|
||||
that the PC was unable to place a large # of dmg on wpns.
|
||||
----------------------------------------------------------*/
|
||||
//Required Include
|
||||
#include "nw_i0_tool"
|
||||
#include "gen_forge_config"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
//Delcare Variables
|
||||
object oPC = GetPCSpeaker();
|
||||
int nType = GetLocalInt(oPC, "CRAFT_TYPE");
|
||||
int nSlot = GetLocalInt(oPC, "CRAFT_SLOT");
|
||||
object oItem = GetItemInSlot(nSlot, oPC);
|
||||
int n = 0;
|
||||
|
||||
itemproperty iProp;
|
||||
iProp = GetFirstItemProperty(oItem);
|
||||
while(GetIsItemPropertyValid(iProp))
|
||||
{
|
||||
if(GetItemPropertyType(iProp)==ITEM_PROPERTY_DAMAGE_BONUS)
|
||||
{
|
||||
n +=1;
|
||||
}
|
||||
if(GetItemPropertyType(iProp)==ITEM_PROPERTY_DAMAGE_BONUS_VS_ALIGNMENT_GROUP)
|
||||
{
|
||||
n +=1;
|
||||
}
|
||||
if(GetItemPropertyType(iProp)==ITEM_PROPERTY_DAMAGE_BONUS_VS_RACIAL_GROUP)
|
||||
{
|
||||
n +=1;
|
||||
}
|
||||
if(GetItemPropertyType(iProp)==ITEM_PROPERTY_DAMAGE_BONUS_VS_SPECIFIC_ALIGNMENT)
|
||||
{
|
||||
n +=1;
|
||||
}
|
||||
|
||||
|
||||
iProp = GetNextItemProperty(oItem);
|
||||
}
|
||||
|
||||
if(GetItemPossessedBy(oPC, "guildstone")!=OBJECT_INVALID)
|
||||
{
|
||||
//Max Weapon Properties!
|
||||
if(n >=4)
|
||||
return TRUE;
|
||||
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Max Weapon Properties!
|
||||
if(n >=MAX_DAMAGES)
|
||||
return TRUE;
|
||||
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user