[Question] ReviveHere?

08/17/2010 19:07 killersub#1
alright so this is just a question and if you want it can turn into you helping me (if you know)...so I just wanted to know does anyone know the correct case for revive here? I have searched through my source and found a case number 5454 containing something that might be related to revive here but I tested it and does not seem to work...why? cuz its probably not the CORRECT case...

Code:
case 5454:
                                        {
                                            if (GC.MyChar.BlessingLasts > 0 && !GC.MyChar.Alive && DateTime.Now > GC.MyChar.DeathHit.AddSeconds(20))
                                            {
                                                GC.MyChar.Ghost = false;
                                                GC.MyChar.BlueName = false;
                                                GC.MyChar.CurHP = (ushort)GC.MyChar.MaxHP;
                                                GC.MyChar.Alive = true;
                                                GC.MyChar.StatEff.Remove(ConquerSx.Game.StatusEffectEn.Dead);
                                                GC.MyChar.StatEff.Remove(ConquerSx.Game.StatusEffectEn.BlueName);
                                                GC.MyChar.Body = GC.MyChar.Body;
                                                GC.MyChar.Hair = GC.MyChar.Hair;
                                                GC.MyChar.Equips.Send(GC, false);

                                                    foreach (ushort[] Point in Database.RevPoints)
                                                    if (Point[0] == GC.MyChar.Loc.Map)
                                                    {
                                                        GC.MyChar.Teleport(Point[1], Point[2], Point[3]);
                                                    }
                                            }
                                            break;
                                        }
08/17/2010 19:11 teroareboss1#2
is easy.....
but is case 94:, no case 5454:
08/17/2010 19:43 killersub#3
Quote:
Originally Posted by teroareboss1 View Post
is easy.....
but is case 94:, no case 5454:
if it's easy den Y dont u giv me an example of urs huh?...
08/17/2010 21:46 _DreadNought_#4
Killersub loose the attitude. Your not gonna get given candy(free).
08/17/2010 22:33 killersub#5
Quote:
Originally Posted by Eliminationn View Post
Killersub loose the attitude. Your not gonna get given candy(free).
ever heard of playing around?...plus I was asking for help by telling him if he can show me an example dats all...don't take it seriously LOL...
08/17/2010 23:06 .Beatz#6
Quote:
Originally Posted by killersub View Post
ever heard of playing around?...plus I was asking for help by telling him if he can show me an example dats all...don't take it seriously LOL...
I believe they were just giving you the case ID as that is what you asked for... That I assume is what they meant by "easy".
08/18/2010 05:12 -Shunsui-#7
94 is normal revive. Revive here is a general data put it inside Revive
08/18/2010 07:10 killersub#8
Quote:
Originally Posted by -Shunsui- View Post
94 is normal revive. Revive here is a general data put it inside Revive
alrite so I searched my whole packetHandler and thus far I have found the case 94 well here's mine and tell me if its correct or if its wrong(please tell me how to improve it by giving me examples etc...)

Code:
case 94:
                                        {
                                            byte RevType = Data[8];
                                            if (RevType == 8)
                                                PacketHandling.Revive.Handle(GC, Data);
                                            else
                                                PacketHandling.ReviveHere.Handle(Data, GC);
                                            break;
                                        }
08/18/2010 08:55 teroareboss1#9
Quote:
Originally Posted by killersub View Post
alrite so I searched my whole packetHandler and thus far I have found the case 94 well here's mine and tell me if its correct or if its wrong(please tell me how to improve it by giving me examples etc...)

Code:
case 94:
                                        {
                                            byte RevType = Data[8];
                                            if ( RevType == 8)
                                                PacketHandling.Revive.Handle(GC, Data);
                                            else
                                                PacketHandling.ReviveHere.Handle(Data, GC);
                                            break;
                                        }

Code:
case 94:
                                        {
                                            byte RevType = Data[8];
                                            if ( RevType == [COLOR="Red"]1[/COLOR])
                                                PacketHandling.Revive.Handle(GC, Data);
                                            else
                                                PacketHandling.ReviveHere.Handle(Data, GC);
                                            break;
                                        }
08/18/2010 13:18 _DreadNought_#10
If it helps
Code:
static void Revive(GeneralData generalData, Client.GameState client)
        {
            if (Time32.Now >= client.Entity.DeathStamp.AddSeconds(20))
            {
                bool ReviveHere = generalData.dwParam == 1;
                client.Entity.TransformationID = 0;
                client.Entity.RemoveFlag(Update.Flags.Dead | Update.Flags.Ghost);
                client.Entity.Hitpoints = client.Entity.MaxHitpoints;
                if (ReviveHere)
                {
                    client.Send(new MapStatus() { ID = client.Entity.MapID, Status = 0 });
                }
                else if (client.Entity.PKPoints >= 100)
                {
                    client.Entity.Teleport(6000, 035, 076);
                }
                else
                {
                    foreach (ushort[] Point in Database.DataHolder.RevivePoints)
                        if (Point[0] == client.Entity.MapID)
                        {
                            client.Entity.Teleport(Point[1], Point[2], Point[3]);
                            UpdateprevXY(client);
                            return;
                        }
                    client.Entity.Teleport(1002, 430, 380);
                }
            }
        }
08/18/2010 16:55 killersub#11
Quote:
Originally Posted by teroareboss1 View Post
Code:
case 94:
                                        {
                                            byte RevType = Data[8];
                                            if ( RevType == [COLOR="Red"]1[/COLOR])
                                                PacketHandling.Revive.Handle(GC, Data);
                                            else
                                                PacketHandling.ReviveHere.Handle(Data, GC);
                                            break;
                                        }
thank u very much :) and I apologize for being so rude yesterday ;).

Quote:
Originally Posted by Eliminationn View Post
If it helps
Code:
static void Revive(GeneralData generalData, Client.GameState client)
        {
            if (Time32.Now >= client.Entity.DeathStamp.AddSeconds(20))
            {
                bool ReviveHere = generalData.dwParam == 1;
                client.Entity.TransformationID = 0;
                client.Entity.RemoveFlag(Update.Flags.Dead | Update.Flags.Ghost);
                client.Entity.Hitpoints = client.Entity.MaxHitpoints;
                if (ReviveHere)
                {
                    client.Send(new MapStatus() { ID = client.Entity.MapID, Status = 0 });
                }
                else if (client.Entity.PKPoints >= 100)
                {
                    client.Entity.Teleport(6000, 035, 076);
                }
                else
                {
                    foreach (ushort[] Point in Database.DataHolder.RevivePoints)
                        if (Point[0] == client.Entity.MapID)
                        {
                            client.Entity.Teleport(Point[1], Point[2], Point[3]);
                            UpdateprevXY(client);
                            return;
                        }
                    client.Entity.Teleport(1002, 430, 380);
                }
            }
        }
thanks for dat, but kinda a noob question...where do u want me to put dis exactly :D?
08/18/2010 17:22 Fish*#12
is from immunes I guess.
U have to convert it
08/18/2010 17:39 _DreadNought_#13
I dont use immune's source. It's from impulses and with my edited version of it
08/18/2010 22:41 -impulse-#14
It will still not work. Even so, this is half way done. You gotta make something else, just so you can actually use the button. Some sources out there already have it.

It's a packet sent after/when dying.
08/18/2010 23:15 _DreadNought_#15
I know. Not hard as far as I know.