Jump to content
  • Create New...
  • 0

[Help] Item in inventory



Item falling into inventory
HELP Me :/




        for (int i = 1; i <= iSplitCount; ++i)
            if ((item = ITEM_MANAGER::instance().CreateItem(1, iGold / iSplitCount)))
                if (i != 0)
                    pos.x = number(-7, 7) * 20;
                    pos.y = number(-7, 7) * 20;

                    pos.x += GetX();
                    pos.y += GetY();

                item->AddToGround(GetMapIndex(), pos);


Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.