[HELP]Stamina Bug in LOTF

01/31/2009 14:38 Rofa300#1
idk , i think i did everything right, but it didnt work , So if any 1 wanna look at what i did to c if there is some thing wrong to tell me

Code:
 public void Revive(bool Tele)
        {
            if (Alive)
                return;

            if (Tele)
            {
                foreach (ushort[] revp in DataBase.RevPoints)
                {
                    if (revp[0] == LocMap)
                    {
                        Stamina = 100; 
                        Teleport(revp[1], revp[2], revp[3]);
                        break;
                    }
                }
            }
and . . . .
Code:
 }

            CurHP = MaxHP;
            Alive = true;

            MyClient.SendPacket(General.MyPackets.Status1(UID, 0));
            MyClient.SendPacket(General.MyPackets.Status3(UID));
            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));

            MyClient.SendPacket(General.MyPackets.CharacterInfo(this));
            SendEquips(false);
            BlueName = false;

            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
            Stamina = 100;
            MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina)); 
            World.UpdateSpawn(this);
            DeathSent = false;

        }
and . . . .

Code:
case 94:
                                    {
                                        MyChar.Revive(true);
                                        MyChar.Stamina = 100; 
                                        break;
                                    }
PS : am a nooby c# learner and Making This Server just For educational purposes , So plz Dont Flame me sayin , WTF noobs r tryin to make Server GO GET A LIFE! Cuz i do have 1 Already , c ya Guys
01/31/2009 17:21 Exia13#2
Did u use a guide? if not, check the all in 1 lotf guide at the top of this section.
01/31/2009 17:29 Rofa300#3
@Exia13 : i did used "stephanyd" But i still Dont get it Right , that is why i posted The Codes i did So if it is wrong Some 1 Correct me
01/31/2009 17:30 Exia13#4
I didnt actually read the code :p im not much of a coder, thats y >_>.
ANyway, i used the guide and it worked fine for me. maybe u simply missed something. Not sure.
01/31/2009 18:55 Rofa300#5
ya i guess am truin again , to c if it Works
01/31/2009 21:41 justprownage#6
Well probably the copy and paste thing didn't work
01/31/2009 22:15 Rofa300#7
@justprownage : u think so ? , should i write it Down to Work ?