Item Costs Fix
Server Side Mods - Mrx's Mods For RTB

Home

X Menu (Mod Pack)

Maps & Saves

Client Side Mods

Server Side Mods

Game Tips

Screenshots

Contact

Links

Fix Item Costs

This is for bacs pack, those of you scripters should be able to adapt to normal RTB. Tutorial and files coming soon.

Download player.cs, weapon.cs and copy it to the location given.

Overwrite your current files.

Normal:

itemcost.zip

For Bacs:

 player.cs weapon.cs


Manual Instructions:

Open rtb/server/scripts/player.cs

Bacs Users:
Open rtb/server/scripts/ptta/player.cs

Find:

messageClient(%client,

'','\c4Please use your \c0Use\c4 Key!');

Full code:

if

($Pref::Server::ItemsCostMoney $= 1)

{

messageClient(%client,

'','\c4Please use your \c0Use\c4 Key!');

return;

}

Replace with:

if($Pref::Server::ItemsCostMoney $= 1)

{

//messageClient(%client,'','\c4Please use your \c0Use\c4 Key!');

if(%client.money < %col.cost && %isThrown !$= 1)

{

messageClient(%client,

'MsgNoAfford', '\c4You can\'t afford this Item!');

}

if ((%client.money >= %col.cost) || $Pref::Server::ItemsCostMoney == 0 || %obj.thrown $= 1)

{

%obj.pickup(%col);

}

return;

}

Open rtb/server/scripts/weapon.cs

Bacs users:
Open rtb/server/scripts/ptta/weapon.cs

Find:

bottomPrint(%client,

"Press <B> to Buy this Weapon!",0.5,1);

Full code:

if

(%client.WantBuy != 1 && $Pref::Server::ItemsCostMoney $= 1 && %this.cost > 0)

{

bottomPrint(%client,

"Press <B> to Buy this Weapon!",0.5,1);

}

Replace with:

//if(%client.WantBuy != 1 && $Pref::Server::ItemsCostMoney $= 1 && %this.cost > 0)

// {

//bottomPrint(%client,"Press <B> to Buy this Weapon!",0.5,1);

// }

Find just below:

if($Pref::Server::ItemsCostMoney $= 1 && %client.money < %this.cost && %client.WantBuy $= 1)

Replace with:

if($Pref::Server::ItemsCostMoney $= 1 && %client.money < %this.cost)

Find a bit more below:

if

(($Pref::Server::ItemsCostMoney == 1 && %client.money >= %this.cost && %client.WantBuy == 1)|| $Pref::Server::ItemsCostMoney == 0)

 

Replace with:

if (($Pref::Server::ItemsCostMoney == 1 && %client.money >= %this.cost)|| $Pref::Server::ItemsCostMoney == 0)