Item Development Sheet - Request items for servers here!

Started by Silver Knight, 18-11-2011

0 Members and 1 Guest are viewing this topic.

malak

 This will need editing cause this is a base as well and its used in the Open Aura Script

Server the item is for: Fallout
What is the point of the item?: To increase the drug use in there

local ITEM = {};

ITEM.name = "Cigarette Base";
ITEM.color = Color(255, 0, 255, 255);
ITEM.useText = "Smoke";
ITEM.category = "Drug";
ITEM.useSound = {"npc/barnacle/barnacle_gulp1.wav", "npc/barnacle/barnacle_gulp2.wav"};
ITEM.expireTime = 5;
ITEM.isBaseItem = true;
-- Called when a player uses the item.
function ITEM:OnUse(player, itemEntity)
if (self.attributes) then
  for k, v in pairs(self.attributes) do
   player:BoostAttribute(self.name, k, v, self.expireTime);
  end;
end;

openAura.player:SetDrunk(player, self.expireTime);

if (self.OnDrink) then
  self:OnDrink(player);
end;
end;
-- Called when a player drops the item.
function ITEM:OnDrop(player, position) end;

Additional Optional Lines?:

Should something happen when the item is used? You should become highish
Should something happen when its dropped? No




ITEM.base = "cigarette_base";
ITEM.name = "Cigarette";
ITEM.cost = 5;
ITEM.model = "models/clutter/cigarette.mdl";
ITEM.batch = 1;
ITEM.weight = 0.075;
ITEM.access = "T";
ITEM.business = true;
ITEM.description = "A working cigarette.";




(Also, I will be making View_Models for weapons of choice, so if you got something you want Spades or anyone else, I will try and make it. I have made a pip-boy world model so it will sit on your arm.)

Kelse

local ITEM = {};

ITEM.name = "Suitcase";
ITEM.cost = 10;
ITEM.model = "models/weapons/w_suitcase_passenger.mdl";
ITEM.batch = 1;
ITEM.weight = 2;
ITEM.access = "T";
ITEM.business = true;
ITEM.category = "Reusables"
ITEM.description = "It's a suitcase that carries whatever...";
ITEM.isAttachment = true;
ITEM.attachmentBone = "ValveBiped.Bip01_R_Hand";
ITEM.attachmentOffsetAngles = Angle(0, 90, -10);
ITEM.attachmentOffsetVector = Vector(0, 0, 4);

function ITEM:GetAttachmentVisible(player, entity)
    return (player:GetWeaponClass(player) == self.weaponClass);
end;


the permaban queen.

Steven :D

Quote from: Kelse on 04-04-2012
local ITEM = {};

ITEM.name = "Suitcase";
ITEM.cost = 10;
ITEM.model = "models/weapons/w_suitcase_passenger.mdl";
ITEM.batch = 1;
ITEM.weight = 2;
ITEM.access = "T";
ITEM.business = true;
ITEM.category = "Reusables"
ITEM.description = "It's a suitcase that carries whatever...";
ITEM.isAttachment = true;
ITEM.attachmentBone = "ValveBiped.Bip01_R_Hand";
ITEM.attachmentOffsetAngles = Angle(0, 90, -10);
ITEM.attachmentOffsetVector = Vector(0, 0, 4);

function ITEM:GetAttachmentVisible(player, entity)
    return (player:GetWeaponClass(player) == self.weaponClass);
end;

funny