nvh Posted October 21, 2021 Posted October 21, 2021 How to add a item with name and mount? foreach (object item in items) { if (item.name == “gold”) { additem(item, 50000);} }
0 Cheshire Posted October 21, 2021 Posted October 21, 2021 I think it'd be easier to see if you can make an overload for ItemBase.Get that allows for searching by name if that doesn't already exist.
Question
nvh
How to add a item with name and mount?
foreach (object item in items)
{
if (item.name == “gold”)
{ additem(item, 50000);}
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now