Dan(Tasanar)

Moderator
So since we do not have a "UO Store" coded how should we best add these tokens to the world? I want an NPC to sell them for gold but the may it is currently coded I am not sure how I would do that.

Maybe a simple true or false to allow these as needing an account string before hand.
 
We do not have "account" bond items on creation because we do not have a UO type store built in. Fair enough though, I just removed all the instances to accounts.
 
All your doing is passing in the players account username. That restricts that account to using the item. For buying from vendors, you can add a hook in OnAdded (or something else) where if it's a players backpack, and account is null, it sets the account property to that players account.
 
this is how i did it
and within animal trainer i put this
Code:
	Account acct = (Account)from.Account;
			
			 if (acct.GetTag("StableSlot") == "Received")
				{
					max += 2;
				}
 

Attachments

  • StableIncrease.cs
    1.3 KB · Views: 10
Back