[Help] selector

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 20, 2006
Messages
51
Reaction score
0
can anyone tell me how to fix the error of the selector guy on coqnuer online!!!


how do i fix!!! i need visual studio c but what do i do!!!
 
Last edited by a moderator:
Re: selector

I posted the fix on the other place, I suppose it belongs here too.

Open up PacketBuilder.cs, search for SpawnEntity(Character Player).

Search for this.
Code:
//Armor / Garment
            int itemidInt2 = 0;
            Get = Player.Equip_items[8];
            if (Get[0] != 0)
            {
                itemidInt2 = Get[0];
            }
            else
            {
                Get = Player.Equip_items[2];
                if (Get[0] != 0)
                {
                    itemidInt2 = Get[0];
                }
            }
Replace it with this.
Code:
int itemidInt2 = 0;
if (Player.equip_items[8] != null && Player.equip_items[8][0] != 0)
     itemidInt2 = Player.equip_items[8][0];
else
     itemidInt2 = Player.equip_items[2][0];

As well, I'd like to mention that there are a few errors in character creation as well. You might wanna check out CreateCharacter in BackEndDB.cs.
 
Status
Not open for further replies.
Back