nvh Posted October 21, 2021 Share 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);} } Link to comment Share on other sites More sharing options...
0 Cheshire Posted October 21, 2021 Share 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. Link to comment Share on other sites More sharing options...
Question
nvh
How to add a item with name and mount?
foreach (object item in items)
{
if (item.name == “gold”)
{ additem(item, 50000);}
}
Link to comment
Share on other sites
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