I have a server with many items and such that are upgradable.. and I was wondering instead of having to do the quests you can just use an Item to do it instead..
Is this possible, if so any ideas on how to do it?
Thanks
-L0st!
I have a server with many items and such that are upgradable.. and I was wondering instead of having to do the quests you can just use an Item to do it instead..
Is this possible, if so any ideas on how to do it?
Thanks
-L0st!
You would need a lua for the item, when they use the item it should check if they have the required items and then take the items and give the new one.
Ok, thanks.. I knew i could do it in Lua, I just had no clue what to make it do.
Examples:
Code:if plr:HasItem(5) then plr:AddItem(6, 1) -- ID, amount plr:RemoveItem(5, 1) -- ID amount end if plr:GetItemCount(5) > 4 then -- plr has more than 4 of item id 5 plr:AddItem(6, plr:GetItemCount(5)) -- Add item id 6 of however many were removing of the other ID plr:RemoveItem(5, plr:GetItemCount(5)) -- Remove all of them end Mass scale: local rewards = {1, 2, 3, 4, 5} for place, items in pairs(rewards) do plr:AddItem(items, 1) -- Add 1 of each reward end