I am making a item that when you use it it gives you a item i want to know how to put a cooldown on it and how i could make it REQUIRE items in order to use it
I am making a item that when you use it it gives you a item i want to know how to put a cooldown on it and how i could make it REQUIRE items in order to use it
that would be done in the database not through lua.
there should be a column in the items table. "Required...." just edit that.
hope that helps!
I dont know about cooldowns but this will give you a start
This will check if player has the item and if they do then add an item to their inventoryCode:function Item_AddItem(Item,Event,player) if player:GetItemCount(ITEM NEEDED ID) >= 1 then player:AddItem(ITEMID, AMOUNT OF ITEM) end end RegisterItemEvent(ITEMID,1,"Item_AddItem")
Last edited by Scubast3ve; 04-23-2009 at 10:09 PM.
Thanks to both of you
np just glad to help