WareH progress: [Request of ShockSoft]
-Open WareH --> Ok
-Password System --> Ok
-View Item --> Ok [But I have to open two time the WareH for view correctly]
-View Money --> Ok
-Deposit Item --> Ok
-Withdraw Item --> Ok
-Deposit Money --> Not Done
-Withdraw Money --> Not Done
-Load WareH --> Ok
-Save WareH --> Ok
Tomorrow, I will check for finish the money system and fix the bug of the item when you open the warehouse.
Code:
case 1009: //Money WareH Packet
{
int NpcId = (Data[0x07] << 24) + (Data[0x06] << 16) + (Data[0x05] << 8) + Data[0x04];
int Money = (Data[0x0b] << 24) + (Data[0x0a] << 16) + (Data[0x09] << 8) + (Data[0x08]);
byte SubType = Data[0x0c];
switch (SubType)
{
case 9: //Show Money
Client.SendPacket(ThePackets.WhActions(NpcId, Client.MyChar.WHMoney));
Client.SendPacket(ThePackets.WhItems(Client.MyChar, NpcId));
break;
case 10: //Deposit Money
Client.MyChar.Silvers -= Money;
Client.MyChar.WHMoney += (uint)Money;
Client.SendPacket(ThePackets.WhActions(NpcId, Client.MyChar.WHMoney));
Client.SendPacket(ThePackets.Vital((long)Client.MyChar.UID, 4, Client.MyChar.Silvers));
break;
case 11: //Withdraw Money
Client.MyChar.Silvers += Money;
Client.MyChar.WHMoney -= (uint)Money;
Client.SendPacket(ThePackets.WhActions(NpcId, Client.MyChar.WHMoney));
Client.SendPacket(ThePackets.Vital((long)Client.MyChar.UID, 4, Client.MyChar.Silvers));
break;
}
break;
}
I think the code is good but when I click, the client doesn't send to me the packet...