I was wondering what i am doing wrong here. I am wanting to make beer for a server and it wont work can u help me
};
$HardcodedItemCost[Beer] = 5;
$HardcodedItemCost[GodlyBeer] = 10;
$HardcodedItemCost[Shot] = 5;
$HardcodedItemCost[Magirita] = 10;
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Beer
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
$AccessoryVar[Beer, $Weight] = 0;
$AccessoryVar[Beer, $MiscInfo] = "Beer";
ItemData Beer
{
description = "Beer";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function Beer::onUse(%player,%item)
{
%clientId = Player::getClient(%player);
Player::decItemCount(%player,%item);
%hp = fetchData(%clientId, "HP");
refreshHP(%clientId, -0.15);
refreshAll(%clientId);
if(fetchData(%clientId, "HP") != %hp)
UseSkill(%clientId, $SkillHealing, True, True);
}
$AccessoryVar[GodlyBeer, $Weight] = 0;
$AccessoryVar[GodlyBeer, $MiscInfo] = "Beer For the Gods";
ItemData GodlyBeer
{
description = "GodlyBeer";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function GodlyBeer::onUse(%player,%item)
{
%clientId = Player::getClient(%player);
Player::decItemCount(%player,%item);
%hp = fetchData(%clientId, "HP");
refreshHP(%clientId, -0.6);
refreshAll(%clientId);
if(fetchData(%clientId, "HP") != %hp)
UseSkill(%clientId, $SkillHealing, True, True);
}
$AccessoryVar[Shot, $Weight] = 0;
$AccessoryVar[Shot, $MiscInfo] = "A shot of the finest rum";
ItemData Shot
{
description = "Shot";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function Shot::onUse(%player,%item)
{
%clientId = Player::getClient(%player);
Player::decItemCount(%player,%item);
refreshMANA(%clientId, -16);
refreshAll(%clientId);
}
$AccessoryVar[Magirita, $Weight] = 0;
$AccessoryVar[Magirita, $MiscInfo] = "An icey Womens Drink";
ItemData Magirita
{
description = "Magirita";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function Magirita::onUse(%player,%item)
{
%clientId = Player::getClient(%player);
Player::decItemCount(%player,%item);
refreshMANA(%clientId, -50);
refreshAll(%clientId);
}