/revive

10/30/2008 15:47 Kiyono#1
//
10/30/2008 15:53 bisiol#2
you can use normal revive with false attribute. like that:
Code:
                                    if (Splitter[0] == "/revive")
                                    {
                                        if (!MyChar.Alive)
                                        {
                                            if (DateTime.Now > MyChar.Death.AddSeconds(20))
                                            {
                                                if (MyChar.GodBless > 0)
                                                {
                                                    MyChar.Revive(false);
                                                    World.UsingSkill(MyChar, (short)1100, 0, MyChar.UID, 0, (short)MyChar.LocX, (short)MyChar.LocY);

                                                }
                                                else
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry. Only players with Heaven Bless can use revive function.", 2000));
                                            }
                                        }
                                    }
10/30/2008 16:01 Kiyono#3
I can't code so i wouldn't have thought about that
10/30/2008 16:01 XxArcherMasterxX#4
added to my all-in-1 thread, nice release djago it sux to wait so long to revive when you die xD
10/30/2008 16:28 _Emme_#5
Or you just do like this:


Quote:
if (Splitter[0] == "/revive")
{

if (!MyChar.Alive)
MyChar.Revive(false);
}
10/30/2008 16:38 demonscim#6
:D owned by Emme O.o.. but still goooood job. :D
10/30/2008 16:45 Kiyono#7
Quote:
Originally Posted by EmmeTheCoder View Post
Or you just do like this:
why that i just changed it to

if (Splitter[0] == "/revive"
{
MyChar.Revive(false);
MyChar.Stamina = 100;
break;
}
10/30/2008 17:39 _Emme_#8
Doesnt check if your dead,by that,you can abuse it,also it might bug something up,because as far as I know revive is set to only revive dead players.
You just add to the void Revive,that your stamina sets to 100,easier command than =]

Emme
10/30/2008 19:16 Kiyono#9
ow ok i just copy & pasted case 94 xD
i'll just use yours than
10/30/2008 19:42 _Emme_#10
=D
12/30/2008 12:04 J-STAR#11
in what .cs file i find this?
12/30/2008 12:09 J-STAR#12
nvm i found it!