Pure Warrior

06/03/2014 14:38 fairytaleco#16
PHP Code:
public static void EquipItem(ItemUsage itemUsageClient.GameState client)
        {
            
Interfaces.IConquerItem item null;
            
client.Entity.AttackPacket null;
            if (
client.Inventory.TryGetItem(itemUsage.UIDout item))
            {
                if (
item.Suspicious)
                    return;
                switch (
item.ID)
                {
                    case 
1200000:
                    case 
1200001:
                    case 
1200002:
                        {
                            
UseItem(itemclient);
                            return;
                        }
                    default:
                        {
                            if (
itemUsage.dwParam == 17 && ItemPosition(item.ID) == 0)
                            {
                                
UseItem(itemclient);
                                return;
                            }
                            else if (
itemUsage.dwParam == && ItemPosition(item.ID) == 0)
                            {
                                
UseItem(itemclient);
                                return;
                            }
                            break;
                        }
                }

                
#region Sanity checks
                
bool can2hand false;
                
bool can2wpn false;
                if (
client.Entity.Class >= 11 && client.Entity.Class <= 75)
                    
can2hand true;
                if (
client.Entity.Class >= 11 && client.Entity.Class <= 15 || client.Entity.Class >= 51 && client.Entity.Class <= 55 || client.Entity.Class >= 61 && client.Entity.Class <= 65 || client.Entity.Class >= 71 && client.Entity.Class <= 75)
                    
can2wpn true;
                if (!
Equipable(itemclient))
                    return;
                if (
ItemPosition(item.ID) == 5)
                {
                    
itemUsage.dwParam 5;
                    if (!
can2hand && !can2wpn)
                        return;
                    if (
client.Equipment.Free(4) || (client.Equipment.TryGetItem(4).ID 1000 != 500 && IsArrow(item.ID)))
                        return;
                }
                if (
ItemPosition(item.ID) == 4)
                {
                    if (
itemUsage.dwParam == 5)
                        if (!
can2hand || !can2wpn)
                            return;
                }
                if (!((
itemUsage.dwParam == || itemUsage.dwParam == 5) && (ItemPosition(item.ID) == || ItemPosition(item.ID) == 5)))
                {
                    if (!
IsAccessory(item.ID))
                        
itemUsage.dwParam ItemPosition(item.ID);
                }
                
bool twohand IsTwoHand(item.ID);
                if (!
twohand && itemUsage.dwParam == 4)
                    if (!
client.Equipment.Free(5))
                        if (
client.Inventory.Count 40)
                        {
                            if (
IsArrow(client.Equipment.TryGetItem(5).ID))
                                
client.Equipment.Remove(5);
                            else
                            {
                                if (
client.Equipment.TryGetItem(4) != null)
                                {
                                    if (
IsTwoHand(client.Equipment.TryGetItem(4).ID))
                                        
client.Equipment.Remove(4);
                                }
                            }
                        }
                
#endregion

                
if (client.Map.ID == 1039)
                    
client.Entity.AttackPacket null;

                
item.Position = (ushort)itemUsage.dwParam;
                if (
ItemPosition(item.ID) == && !IsArrow(item.ID))
                {
                    if (
IsTwoHand(client.Equipment.TryGetItem(4).ID))
                    {
                        if (!
client.Spells.ContainsKey(10311))//Perseverance
                        
{
                            
client.Send(new Message("You need to know Perseverance (Warrior Pure skill) to be able to wear 2-handed weapon and shield."System.Drawing.Color.WhiteMessage.Talk));
                            return;
                        }
                    }
                }

                
Database.ConquerItemTable.ClearPosition(client.Entity.UID, (byte)itemUsage.dwParam);
                
client.Inventory.Remove(itemGame.Enums.ItemUse.Move);
                if (
client.Equipment.Free((byte)itemUsage.dwParam))
                {
                    if (
twohand)
                        
client.Equipment.Remove(5);
                    
item.Position = (byte)itemUsage.dwParam;
                    
client.Equipment.Add(item);
                    
item.Mode Game.Enums.ItemMode.Update;
                    
item.Send(client);
                }
                else
                {
                    if (
twohand)
                        
client.Equipment.Remove(5);
                    
client.Equipment.Remove((byte)itemUsage.dwParam);
                    
item.Position = (byte)itemUsage.dwParam;
                    
client.Equipment.Add(item);
                }
                
client.CalculateStatBonus();
                
client.CalculateHPBonus();
                
client.SendStatMessage();
                
ClientEquip equips = new ClientEquip();
                
equips.DoEquips(client);
                
client.Send(equips);
            }
        } 
Sorry abdoumatrix i already follow what you said Here my equip its look like okey.
i was just thinking in handle coz it wont attack if i use one hand and shield wont hit mobs
06/03/2014 21:51 turk55#17
Quote:
Originally Posted by abdoumatrix View Post
when he get sucked at a hard problem u will see :D
He already does while you help him, just don't respond to threads like these and let it die.
06/04/2014 05:45 Spirited#18
"When he get sucked at a hard problem"
*walks away from keyboard*
06/04/2014 09:28 InsomniacPro#19
I will say this again, you are a fucking idiot that has no place trying to setup a server.
06/04/2014 17:14 Yupmoh#20
He's a nice guy, Bite him please.
06/05/2014 04:19 fairytaleco#21
you guys are so rude.
06/05/2014 04:45 InsomniacPro#22
Quote:
Originally Posted by fairytaleco View Post
you guys are so rude.
This forum loves to help people, not spoonfeed. We help those who help themselves. You fucking twit.
06/05/2014 05:56 Spirited#23
Quote:
Originally Posted by fairytaleco View Post
you guys are so rude.
This forum is not for people who want a perfectly running server with zero effort on their part. We all have roles, and we all help each other and use each other as resources. If you're going to be a dead weight by asking for everything and by using a foreign source that we don't support here, you're not using this forum as you should. If you can't program and you have no interest in maintaining a server, then it doesn't make sense to host a private server. Don't you agree?

If you wish to continue, you may be more interested in the following thread:
[Only registered and activated users can see links. Click Here To Register...]
You can hire a programmer from there, or join up with another server with similar goals.
06/05/2014 14:37 fairytaleco#24
i didnt ask to fixe all my source bug just that one warrior problem i got.
06/05/2014 15:07 InsomniacPro#25
Quote:
Originally Posted by fairytaleco View Post
i didnt ask to fixe all my source bug just that one warrior problem i got.
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

And lets not forget that you just blatantly post problems without even TRYING to fix it yourself.
06/06/2014 05:02 fairytaleco#26
This is Version 5670 This already fixe Problem And Here is the souce or it
PHP Code:
http://www.mediafire.com/download/vmsoj824kld8yda/ChroniclesCO+Fully+Fixe+Source+5670.rar 
pserver-discussions-questions/3270291-exp-bar-wont-gain-exp.html[/url]
[Only registered and activated users can see links. Click Here To Register...]

This is Version 5853 This not Yet. Here the source of it
PHP Code:
http://www.mediafire.com/download/d3tc445846m6vj1/Source5853.rar 
[Only registered and activated users can see links. Click Here To Register...]

This is Version 5735 This one not yet too and Here the source of it too
PHP Code:
http://www.mediafire.com/download/jtn277ww7naneio/Source+Not+Fixe+5735.rar 
[Only registered and activated users can see links. Click Here To Register...]

And lets not forget that you just blatantly post problems without even TRYING to fix it yourself.[/QUOTE]

There not in the same source coz i got 3 source less problem only.

Here is The Problem in ScreenShot Mode
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

Already Fixing the Packethandle it still nothing happend still the same.
06/06/2014 12:33 Aceking#27
Your using 3 different sources and posting bugs to fix from all 3?

I am just going to ask this once, and I honestly dont know if I even want the answer.

WHAT IN THE WORLD ARE YOU DOING????

Seriously? 3 sources? WTH, think I am done even reading these threads...

Dude, stick to one source....
06/06/2014 15:32 fairytaleco#28
Yes im now sticking to source 5735 less problem to solve.