|
You last visited: Today at 15:15
Advertisement
logout revive
Discussion on logout revive within the CO2 Private Server forum part of the Conquer Online 2 category.
10/08/2008, 22:30
|
#1
|
elite*gold: 0
Join Date: May 2007
Posts: 75
Received Thanks: 12
|
logout revive
ok if u have the lotf source or many others for that matter wen u log out while dead and log back in you have 0 health and still in the same place how do you make it so it revs wen u disconnect or you client is dropped
Code:
public void GameDisconnectionHandler(object Sender, HybridSocket Socket, string Debug)
{
try
{
Client Cli = (Client)Socket.Wrapper;
if (Cli != null && Cli.Online)
Cli.Drop();
}
catch (Exception Exc) { WriteLine(Exc.ToString()); }
}
im thinkin it has somethin to do with this line of code...
|
|
|
10/08/2008, 22:44
|
#2
|
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
|
Just check at login whether their HP is 0 or not, if it is 0 then revive the player. (However you do it in that source.)
|
|
|
10/09/2008, 01:20
|
#3
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Yeah, if (!Alive)
Then do the revive stuff.
|
|
|
10/09/2008, 01:47
|
#4
|
elite*gold: 0
Join Date: May 2007
Posts: 75
Received Thanks: 12
|
Quote:
Originally Posted by tanelipe
Just check at login whether their HP is 0 or not, if it is 0 then revive the player. (However you do it in that source.)
|
wen wen i put it to like
Code:
if (MyChar.CurHP == 0)
{
MyChar.Revive(false);
}
it just revives them like the revive skill and doesnt send to nearest rev point how do i make it revive like when you press the button
|
|
|
10/09/2008, 04:37
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
MyChar.Revive(true);
That sends them to the revpoint on the map(if there is one in the database class).
|
|
|
10/09/2008, 17:07
|
#6
|
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
|
is mychar.alive not revive *_*
|
|
|
10/10/2008, 00:20
|
#7
|
elite*gold: 0
Join Date: May 2007
Posts: 75
Received Thanks: 12
|
Quote:
Originally Posted by felipeboladao
is mychar.alive not revive *_*
|
lol i already figured it out b 4 i looked at ur post but yes this is how it goes
Code:
if (MyChar.CurHP == 0)
{
MyChar.Alive = false;
}
|
|
|
10/10/2008, 00:32
|
#8
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Quote:
Originally Posted by yourworstnightmare
lol i already figured it out b 4 i looked at ur post but yes this is how it goes
Code:
if (MyChar.CurHP == 0)
{
MyChar.Alive = false;
}
|
Your telling the script to not respawn the player if the persons hp is zero.
Change it to true.
|
|
|
10/10/2008, 20:00
|
#9
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Can put this in public void Drop()
Code:
if (!MyChar.Alive)
{
MyChar.Revive(true);
}
And this in public static void DoStuff()
Code:
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
DataBase.ChangeOnlineStatus(Char.MyClient.Account, 0);
//Logout Rev
if (!Char.Alive)
{
Char.Revive(true);
}
}
|
|
|
10/11/2008, 05:21
|
#10
|
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
|
Quote:
Originally Posted by kinshi88
Can put this in public void Drop()
Code:
if (!MyChar.Alive)
{
MyChar.Revive(true);
}
And this in public static void DoStuff()
Code:
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
DataBase.ChangeOnlineStatus(Char.MyClient.Account, 0);
//Logout Rev
if (!Char.Alive)
{
Char.Revive(true);
}
}
|
Lol, once again, Kinshi to the rescue!
|
|
|
10/11/2008, 06:47
|
#11
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Quote:
Originally Posted by taguro
Lol, once again, Kinshi to the rescue!
|
lol, I just did that in 3 secs, hope it works for him =P
|
|
|
 |
Similar Threads
|
Instant Logout
03/26/2009 - WoW Exploits, Hacks, Tools & Macros - 10 Replies
Make a macro with the following:
/logout
/console logout
and your character will be logged out instantly, it's good for reseting items that have cooldowns, or just a quick way to switch characters.
Credits to DeathSoft.
|
Logout
03/18/2009 - RF Online - 7 Replies
If I use alt ctrl delete and I close RF do I logout at the same second? If no is there any possible way to do this? Since I saw a lot of MAU who logouted in a sec.
|
LOGOUT SCRIPT
05/27/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies
can anyone tell me the logout command for l2walker script. :confused:
thanks!
|
WSG Logout Glitch
07/11/2006 - WoW Exploits, Hacks, Tools & Macros - 5 Replies
When you have the opposing factions flag go to the roof, it is the best defensive position. There is only one way for the opposing faction to get in. Also, there are many ways to escape. This is basic knowledge however, some people may not know it. Now for the good stuff:
If you are on the roof, your healer is dead and you are also about to die, jump off the roof. Right when you jump, logout. Doing so will cause you to be suspended in the air for 19 seconds until your logout timer runs out....
|
All times are GMT +1. The time now is 15:17.
|
|