Type t_ore force to change dispid base on amount
Update somehow so that the server does not force the ID of objects that are of type t_ore
// sometimes the diff graphics for the types are not in the client.
if ( IsType(IT_ORE) )
{
static const ITEMID_TYPE sm_Item_Ore[] =
{
ITEMID_ORE_1,
ITEMID_ORE_1,
ITEMID_ORE_2,
ITEMID_ORE_3
};
SetDispID( ( GetAmount() >= ARRAY_COUNT(sm_Item_Ore)) ? ITEMID_ORE_4 : sm_Item_Ore[GetAmount()] );
}
One solution is create a new flag in ini that enable/disable this. Making the server admin to change this behavior in scripts
Or, what about doing this via the t_ore typedef script? One could customize both dispid and the ore amount needed to change the dispid
Or, what about doing this via the t_ore typedef script? One could customize both dispid and the ore amount needed to change the dispid
The problem of this, is we need some way to know in the script side when amount of item is change. For now, i think dont exist any trigger with this way right?