[Request] Item away from money.

11/24/2008 11:21 BS Support#1
i have problem here
i want take money if or not full items

PHP Code:
i mean i want pick the money if full items or not full
                
case 1101:
                    {
                        
MyChar.Ready = false;
                        if (
MyChar.ItemsInInventory > 39)
                            return;
                        
uint ItemUID = (uint)((Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4]);
                        
DroppedItem TehItem = null;
                        if (
DroppedItems.AllDroppedItems.Contains(ItemUID))
                            
TehItem = (DroppedItem)DroppedItems.AllDroppedItems[ItemUID];

                        if (
TehItem != null)
                        {
                            
                            if (
TehItem.Money == 0)
                                
MyChar.AddItem(TehItem.Item, 0, ItemUID);
                            else
                            {
                                
MyChar.Silvers += TehItem.Money;
                                
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You have picked up " + TehItem.Money + " silvers.", 2005));
                            }

                            
DroppedItems.AllDroppedItems.Remove(ItemUID);
                            
World.ItemDissappears(TehItem);
                        }
                        
MyChar.Ready = true;
                        break;
                    } 
And i need drop money from items like itemdrops

thanks
11/24/2008 15:11 Incariuz#2
Ya... I really don't understand what you're asking, but my guess is that you can't pick up money when your inventory is full? Make it so that money isn't a normal item which can be affected by...

Code:
if (MyChar.ItemsInInventory > 39)
I can't give you the exact fix at this time, I'd have to test it first, but I'm off to bed now, so not doing it now.
11/24/2008 15:28 BS Support#3
Yes i mean
pick up money when your inventory is full

if inventory full can't pick the money.
11/25/2008 07:45 Incariuz#4
Ok, well I may fix that on my source tonight, not sure yet, got a hundred things I need to do, sort of running based on priority/time, so depending how things go, I may do it on my server, then post the answer to it. I just won't know the answer until I actually take the time to do it, sorry.