Disabling Item question

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: Disabling Item question

Post by whosyourdaddy » Tue Nov 11, 2008 8:29 pm

yes there is change

Code: Select all

ITEM_Cost( id, iItem )
{
	// How much should ratio increase per level?
	new Float:fInc = ( 1.0 - ITEM_COST_RATIO ) / float( MAX_LEVELS );

	// Cost * ratio (ITEM_COST_RATIO to 1.0 dependent on level)
	new Float:fRatio = (float( p_data[id][P_LEVEL] ) * fInc) + ITEM_COST_RATIO;

	return floatround( float( ITEM_COST[iItem] ) * fRatio );
}
to

Code: Select all

ITEM_Cost( id, iItem )
{

    return floatround( float( ITEM_COST[iItem] ) );
}
you will find this in war3ft/items.inl
Image

whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: Disabling Item question

Post by whosyourdaddy » Wed Nov 12, 2008 9:09 pm

how about a reply in if this works :)
Image

Post Reply