when i turn it off,the item is still in the equipment list, but on the character's hand , i can't see it .
this is my equip.cs
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ExodusBinaries.PacketHandling.ItemPacket
{
public class Equip
{
public static void HandleUnEquip(GameClient GC, byte[] Data)
{
if (GC.MyChar.Loc.Map == 1090)
{ return; }
uint ItemUID = BitConverter.ToUInt32(Data, 4);
if (GC.MyChar.Inventory.Count < 40)
{
byte Slot = GC.MyChar.Equips.GetSlot(ItemUID);
if (Slot != 0)
{
// Console.WriteLine("uid is {0}", GC.MyChar.Equips.Get(Slot).UID);
if (GC.MyChar.Equips.Get(Slot).UID == 0)
{
GC.MyChar.Equips.Get(Slot).UID = (uint)GC.MyChar.Rnd.Next(10000000);
}
//GC.MyChar.Inventory.Add(GC.MyChar.Equips.Get(Slot).UID, GC.MyChar.Equips.Get(Slot));
//Database.NewItem(GC.MyChar.Equips.Get(Slot), GC.MyChar);
GC.MyChar.EquipStats(Slot, false);
GC.MyChar.Equips.UnEquip(Slot, GC.MyChar);
/* UnEquip if excute , the item is remove , but still in the equipment list */
World.Spawn(GC.MyChar, false);
/* World.Spawn if excute , i can't see any equip in character's hand */
//Database.SaveCharacter(GC.MyChar, GC.MyChar.MyClient.AuthInfo.Account);
}
}
}
public static void HandleEquip(GameClient GC, byte[] Data)
{
if (GC.MyChar.Loc.Map == 1090)
{
return;
}
public void UnEquip(byte Pos, Character C)
{
if (C.Loc.Map != 1090)
{
C.MyClient.AddSend(Packets.ItemPacket(Get(Pos).UID, Pos, 6));
if (Pos == 1) HeadGear = new Item();
else if (Pos == 2) Necklace = new Item();
else if (Pos == 3) Armor = new Item();
else if (Pos == 4) RightHand = new Item();
else if (Pos == 5) LeftHand = new Item();
else if (Pos == 6) Ring = new Item();
else if (Pos == 7) Gourd = new Item();
else if (Pos == 8) Boots = new Item();
else if (Pos == 9) Garment = new Item();
else if (Pos == 10) Fan = new Item();
else if (Pos == 11) Tower = new Item();
else if (Pos == 12) Steed = new Item();
}
else
{
C.MyClient.LocalMessage(2005, "Unable use this");
return;
}
}
itry it in the 5165 source ... it work no error like that!!
I assume this is a newer patch... if so you will need to send the gear packet or w/e you want to call it to the client.
Basically for gear to show on the current patches you must
A: Send item info for your items (which contains position, +, etcetc)
B: Send a packet containing the item UID for what is in each slot (this DISPLAYS the item on your character)
Sounds to me like when you equip the item you are sending this packet but when you login you are not.
I assume this is a newer patch... if so you will need to send the gear packet or w/e you want to call it to the client.
Basically for gear to show on the current patches you must
A: Send item info for your items (which contains position, +, etcetc)
B: Send a packet containing the item UID for what is in each slot (this DISPLAYS the item on your character)
Sounds to me like when you equip the item you are sending this packet but when you login you are not.
You misunderstand what I mean!!!
I said i can't remove item icon in my equipment section!
TS2 Chinese Launcher Error 06/29/2011 - 12Sky2 - 7 Replies Hey guys so I actually managed to get signed up for a Chinese ts2 account and get the game downloaded, but when I run the launcher it closes and says to see Launcher.exe log. In the log I get this error
Traceback (most recent call last):
File "Launcher.py", line 440, in <module>
File "WorkerPool.pyo", line 43, in Start
File "WorkerPool.pyo", line 102, in StartChinese
socket.gaierror: (11004, 'getaddrinfo failed')
I was thinking its because of an Ip block , but it does it even If...
[HELP] some chinese error 11/06/2009 - EO PServer Hosting - 3 Replies hello every one , im trying to remake a server , but im facing a problem with my client when i login , i got this strange error after Welcome screen
please don't post a reply with SEARCH
http://img690.imageshack.us/img690/32/26431682.th .jpg
SjSro chinese error 07/19/2009 - SRO Private Server - 2 Replies Hi,where i try to start SjSro give me an error :
server_dep/silkroad/textdata/text event
And i dont udnerstand what are under ...
Then config/n_protec.dat ..and then chinese letters ..
The name is a space and the chinese letters
Then the image of SRO_Client and SilkRoad online and no letters ..
Login into Chinese OBT error 04/10/2009 - Aion - 6 Replies I am using english client for OBT. I successfuly created my account through the Aion OBT FAQ tutorial (no adult ID accepted), but when i run client and try log in with my account name and password it will give me me a error mesage: ID or password does not match
Do I anything wrong?
And one more question, what for is the third line in the login box (with the checkbox)
Chinese error on Redcabal, help please! 06/12/2008 - Cabal Online - 2 Replies Whenever I try to login, this error pops up. I can't read it, so I was hoping someone here could translate, and/or hopefully have a fix for this. Thanks!
http://i87.photobucket.com/albums/k131/rebeon/cab alerror.jpg