|
|
|
-- __ _ _______ _ __
|
|
|
|
-- / / /\ | | |__ __| | | \ \
|
|
|
|
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
|
|
|
|
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
|
|
|
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
|
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
|
|
|
|
|
|
|
|
Quantum.Item.Create( "test", {
|
|
|
|
name = "Test Item",
|
|
|
|
desc = "This is a test item!\nDoes not stack.",
|
|
|
|
model = "models/props_phx/gears/bevel12.mdl",
|
|
|
|
soulbound = true,
|
|
|
|
rarity = Quantum.Rarity.Rare,
|
|
|
|
usefunction = function() print( "Test!" ) end,
|
|
|
|
consumefunction = function() print( "Test 2!" ) end
|
|
|
|
} )
|
|
|
|
|
|
|
|
Quantum.Item.Create( "test2", {
|
|
|
|
name = "Trash Item Test",
|
|
|
|
desc = "This is literall trash\nLine breaker test :D\n\nTest :D",
|
|
|
|
model = "models/props_phx/gears/bevel12.mdl",
|
|
|
|
stack = 10,
|
|
|
|
soulbound = false,
|
|
|
|
rarity = Quantum.Rarity.Trash,
|
|
|
|
consumefunction = function( user )
|
|
|
|
Quantum.Notify.Info( user, "You consumed trash and therefore died!" )
|
|
|
|
user:Kill()
|
|
|
|
end
|
|
|
|
} )
|
|
|
|
|
|
|
|
Quantum.Item.Create( "bomb", {
|
|
|
|
name = "WW2 Bomb",
|
|
|
|
desc = "Not a real item but okay.",
|
|
|
|
model = "models/props_phx/ww2bomb.mdl",
|
|
|
|
stack = 2,
|
|
|
|
soulbound = false,
|
|
|
|
rarity = Quantum.Rarity.Epic
|
|
|
|
} )
|
|
|
|
|
|
|
|
Quantum.Item.Create( "potatoe", {
|
|
|
|
name = "Legendary Potatoe",
|
|
|
|
desc = "The most legendary potatoe in existance. Don't eat it!",
|
|
|
|
model = "models/props_phx/misc/potato.mdl",
|
|
|
|
stack = 1,
|
|
|
|
soulbound = false,
|
|
|
|
rarity = Quantum.Rarity.Legendary,
|
|
|
|
equipslot = Quantum.EquipSlots.Head,
|
|
|
|
consumefunction = function( user )
|
|
|
|
Quantum.Notify.Info( user, "You consumed a legendary potatoe! You now have 1000 health for 10 seconds!" )
|
|
|
|
user:SetHealth( 1000 )
|
|
|
|
timer.Simple( 10, function() user:SetHealth( user:GetMaxHealth() ) end)
|
|
|
|
end
|
|
|
|
} )
|