73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: 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;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|