[HELP]HP problem in source

08/07/2013 05:21 lostsolder05#31
Quote:
Originally Posted by elhermanos View Post
Now search for
Code:
static void LoginMessages
Replace this
Code:
        static void LoginMessages(Client.GameState client)
        {
            client.Send(new Network.GamePackets.AutoShow().ToArray());
            if (client.WentToComplete)
                return;

for this
Code:
        static void LoginMessages(Client.GameState client)
        {
            client.Entity.MaxHitpoints += client.Entity.Hitpoints;
            client.Entity.MaxMana += client.Entity.Mana;
            client.Entity.Hitpoints = Math.Min(client.Entity.Hitpoints, client.Entity.MaxHitpoints);
            client.Send(new Network.GamePackets.AutoShow().ToArray());
            if (client.WentToComplete)
                return;
What? :confused: I think you should research the operators you are using sir.
08/07/2013 10:57 Novakhan#32
Quote:
Originally Posted by lostsolder05 View Post
What? :confused: I think you should research the operators you are using sir.

Lol. I had the same problem with a public source I found out and I fixed it this way.
08/07/2013 13:47 Super Aids#33
You're adding current HP to the MaxHP ...
08/07/2013 20:32 EgyptianMano#34
when u click the Chi study or learn the subclass u should call the chi HpAdd calculation or subclass HpAdd calculation
and if u want to be more safe (but cost Pc performance) u can create void like this
public void UpdateStats()
{
CalculateVitals();
CalculateItemStats();
CalculateChiPowers();
CalculateSubClassPowers();
}

the vitals and itemstats u already have,so u just need to create chi and subclass voids
then whenever the client request Equip/unequip Item or learn/upgrade subclass or study Chi u call that updatestats void

* of course this is for ur source , my source is a bit different structured as i calculate vitals just once when the client login
itemstats called only when Equip/unequip an item
same Chi/subclass , i dont get every variable to Zero when anything changed as ur source does, yet u can still follow the procedure provided at top of this post which will be again

*when client Equip/UnEquip an item ----- > Client.UpdateStats();
*when client request changes to stats points ----- > Client.UpdateStats();
*when client Learn/Upgrade SubClass ----- > Client.UpdateStats();
*when client Learn/Study Chi ----- > Client.UpdateStats();
08/12/2013 04:25 marcbacor6666#35
can u post a guide same structure to any public source 57+
09/23/2013 23:21 Melanooo#36
what if i wanted to remove the chi system , will it work then?
and how is the safe way to remove it or stop it to effect any thing?
09/23/2013 23:43 shadowman123#37
The Problem is the Hp shown to u = 3.2k while ur Actual Hp = 2.2k .. problem is inside the update in Update.cs ... make sure that u added the Correct Value of Hp in that Update Void in Entity.cs ...
09/25/2013 02:13 moom86#38
same :(
12/26/2013 02:07 marijuana112#39
Ty very much bro me work
12/29/2013 08:13 uzn1#40
this problem in ConquerItemInformation.cs