[HELP] revive here button

09/17/2010 05:17 { Angelius }#1
yeah another bumb question i know
lol

but

dose anybody knows what is the ID for the Revive Here button i was looking for it for long time but couldent find it yet . well i got the revive here code working and to test it i had to give it the revive button case ID an it works fine but to make both of them work i need the ID for the revive here one
the revive button case number was 94
So plz any ideas ??


Ohh .and btw when I get killed and the revive button comes up if the xp skill came up right after it the revive button well Disappear pffff let me know how to fix it :P
thax
09/17/2010 05:20 -Fáng-#2
Quote:
Originally Posted by { Angelius } View Post
yeah another bumb question i know
lol

but

dose anybody knows what is the ID for the Revive Here button i was looking for it for long time but couldent find it yet . well i got the revive here code working and to test it i had to give it the revive button case ID an it works fine but to make both of them work i need the ID for the revive here one
the revive button case number was 94
So plz any ideas ??


Ohh .and btw when I get killed and the revive button comes up if the xp skill came up right after it the revive button well Disappear pffff let me know how to fix it :P
thax
...
That was just released... it's at the top of the release page...
and make the xp skill load check to see if there the person is dead or not. ><
09/17/2010 05:40 Ian*#3
Why are you loading an xp skill to check to see if they are alive o.O?

Just do a check if their char status flag = IsGhost or whatever you call it.

I'm sure you have some enumerations in your source for different status types.
When they die you have to send a packet which tells the player's client they are a ghost; am i correct? So just compare their char status flag with IsDead/ IsGhost and that will work better.
09/17/2010 06:05 -Fáng-#4
Quote:
Originally Posted by Ian* View Post
Why are you loading an xp skill to check to see if they are alive o.O?

Just do a check if their char status flag = IsGhost or whatever you call it.

I'm sure you have some enumerations in your source for different status types.
When they die you have to send a packet which tells the player's client they are a ghost; am i correct? So just compare their char status flag with IsDead/ IsGhost and that will work better.
xP I'm not loading an XP Skill, I'm saying make the function that loads the xp skills check to see if the character is dead or not! :p
09/17/2010 06:48 Ian*#5
Quote:
Originally Posted by -Fáng- View Post
xP I'm not loading an XP Skill, I'm saying make the function that loads the xp skills check to see if the character is dead or not! :p
But why do that when you can just check their status flag :S

Just more data for your server to handle if you send another packet to the client. I don't really mess with p servers but just doesn't sound like you have to do it that way :p

just let them send your server the rev here packet, then do a check like...

if (char.Status.IsDead)
{
ReviveHere();
}
else
System.Diagnostics.Debug("Char " + char.Name + " attempted to revive and isn't dead");

ya know something like that :p
09/17/2010 07:11 { Angelius }#6
ummm . first thing thanks for helping me . but that post is for lotf and i dont use a lotf source or even a mysql connection
plus it dosent say anything about the case ID for the revive here button
and actuly thats all i need the ID
an about the revive button well Disappear .....fixed it
09/17/2010 07:26 -Fáng-#7
Quote:
Originally Posted by { Angelius } View Post
ummm . first thing thanks for helping me . but that post is for lotf and i dont use a lotf source or even a mysql connection
plus it dosent say anything about the case ID for the revive here button
and actuly thats all i need the ID
an about the revive button well Disappear .....fixed it
"fix it" ?
Are you serious? I really don't like being mean but you don't demand for someone to fix something- especially on this forum. <.<

EDIT: changed your post... good you fixed it then or else that would have been very rude.
09/17/2010 08:30 Ian*#8
Quote:
Originally Posted by -Fáng- View Post
"fix it" ?
Are you serious? I really don't like being mean but you don't demand for someone to fix something- especially on this forum. <.<
"fixed" meaning he fixed it himself :p
09/17/2010 09:18 -Fáng-#9
Quote:
Originally Posted by Ian* View Post
"fixed" meaning he fixed it himself :p
Nah =o he changed his post. It said "fix it".
09/17/2010 10:07 { Angelius }#10
Quote:
Originally Posted by -Fang-
"fix it" ?
Are you serious? I really don't like being mean but you don't demand for someone to fix something- especially on this forum. <.<

EDIT: changed your post... good you fixed it then or else that would have been very rude.
Trying to be a smart *** or something ????

well at least im not the one with 214 post and all i got is 13 thanks :P
an about the post YES i fixed the revive button well Disappear thing do you mind ??
and btw if you dont have something to help with THAN ***** AND DONT POST YOUR ***** DOWN HERE
09/17/2010 13:00 teroareboss1#11
Code:
                              case 145://subtype generaldata 
                                    {
                                        if (GC.MyChar.Loc.Map != 1090 && GC.MyChar.Loc.Map != 1038 && GC.MyChar.Loc.Map != 1351 && GC.MyChar.Loc.Map != 1352 && GC.MyChar.Loc.Map != 1353 && GC.MyChar.Loc.Map != 1354 && GC.MyChar.Loc.Map != 1350)
                                        {
                                            GC.SendPacket(Packets.MapStatus(GC.MyChar.Loc.Map, 65535));
                                        }
                                        break;
                                    }
case 94:
{
if (Data[8] == 1)
{
//revive here buton
}
else
//revive
break;
}
09/17/2010 17:03 dowhatuwant#12
Quote:
Originally Posted by { Angelius } View Post
Trying to be a smart *** or something ????

well at least im not the one with 214 post and all i got is 13 thanks :P
an about the post YES i fixed the revive button well Disappear thing do you mind ??
and btw if you dont have something to help with THAN ***** AND DONT POST YOUR ***** DOWN HERE
noone will help u with that attitude
09/18/2010 06:36 { Angelius }#13
Quote:
Originally Posted by teroareboss1
case 145://subtype generaldata
{
if (GC.MyChar.Loc.Map != 1090 && GC.MyChar.Loc.Map != 1038 && GC.MyChar.Loc.Map != 1351 && GC.MyChar.Loc.Map != 1352 && GC.MyChar.Loc.Map != 1353 && GC.MyChar.Loc.Map != 1354 && GC.MyChar.Loc.Map != 1350)
{
GC.SendPacket(Packets.MapStatus(GC.MyChar.Loc.Map, 65535));
}
break;
}
thanks you are the best :D