Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 07:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] PK Map with infinite stamina

Discussion on [Release] PK Map with infinite stamina within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
[Release] PK Map with infinite stamina

Hey,

I made this in under 2 seconds so it prolly isnt right/best way to do it but it works...

Make the stamina stuff this
Code:
#region Stamina
                    if (Time32.Now > client.Entity.StaminaStamp.AddMilliseconds(500))
                    {
                        if (client.Entity.MapID != MAPID)
                        {
                            if (client.Entity.Action == Game.Enums.ConquerAction.Sit)
                            {
                                if (client.Entity.Stamina <= 95)
                                {
                                    client.Entity.Stamina += 5;
                                }
                            }
                            else
                            {
                                if (client.Entity.Stamina <= 98)
                                {
                                    client.Entity.Stamina += 2;
                                }
                            }
                            client.Entity.StaminaStamp = Time32.Now;
                        }
                        else
                        {
                            client.Entity.Stamina = 100;
                        }
                    }
                    #endregion
So SIMPLE!
_DreadNought_ is offline  
Old 06/22/2010, 00:54   #2
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
wheres the pk map???
pintser is offline  
Old 06/22/2010, 00:59   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
if (client.Entity.MapID != MAPID)
Replace MAPID with the map id of your choosing.
Arcо is offline  
Old 06/25/2010, 21:44   #4
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
what .cs file i put this code :S
sohaib is offline  
Old 06/25/2010, 22:08   #5
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Program.cs for impulse's wont work for other servers.
_DreadNought_ is offline  
Old 06/26/2010, 11:03   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
It can, just takes a bit of converting. Shouldn't be that hard.
Arcо is offline  
Old 06/26/2010, 12:18   #7
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
for the 5165 lotf source just go to the character step() void and find the stamina addition.... there you put an condition for the map and other fore not in the map... isn't hard... just try : D
12tails is offline  
Old 06/26/2010, 14:56   #8
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
yeah arco I ment like THAT bit of code wont work in there.

12tails long time since ive seen a post from u
_DreadNought_ is offline  
Old 06/26/2010, 19:20   #9


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Code:
#region Stamina
if (Time32.Now > client.Entity.StaminaStamp.AddMilliseconds(500))
{
    if (client.Entity.MapID != PK_MAPID)
    {
        if (client.Entity.Action == Game.Enums.ConquerAction.Sit)
            client.Entity.Stamina += 5;
        else
            client.Entity.Stamina += 2;

        if (client.Entity.Stamina > 100)
            client.Entity.Stamina = 100;

        client.Entity.StaminaStamp = Time32.Now;
    }
    else
        client.Entity.Stamina = 100;
}
#endregion
Look better like this Else, if your stamina is at 99, you will never have 100...
CptSky is offline  
Old 06/26/2010, 21:07   #10
 
Luiz01's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 110
Received Thanks: 32
^ this.
Luiz01 is offline  
Old 06/26/2010, 21:27   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Quote:
Originally Posted by CptSky View Post
Code:
#region Stamina
if (Time32.Now > client.Entity.StaminaStamp.AddMilliseconds(500))
{
    if (client.Entity.MapID != PK_MAPID)
    {
        if (client.Entity.Action == Game.Enums.ConquerAction.Sit)
            client.Entity.Stamina += 5;
        else
            client.Entity.Stamina += 2;

        if (client.Entity.Stamina > 100)
            client.Entity.Stamina = 100;

        client.Entity.StaminaStamp = Time32.Now;
    }
    else
        client.Entity.Stamina = 100;
}
#endregion
Look better like this Else, if your stamina is at 99, you will never have 100...
Prolly I coded what I put in notepad not the source and I forget how **** looks like
_DreadNought_ is offline  
Reply


Similar Threads Similar Threads
[Release] Infinite SP - x64,x32
07/22/2010 - S4 League Hacks, Bots, Cheats & Exploits - 20 Replies
Hi guys, i want release trainer of infinite sp because more users say "work only dodge_required_mp" etc... Guide: 1. Download it 2. Open S4 and start it 3. Suspend HGWC and S4Client (Use only process explorer, CheatEngine tool has detected)
[Help]Infinite stamina?
01/13/2010 - CO2 Private Server - 11 Replies
How can i make my server have infinite stamina? I'm using 5165 source Thanks guy's!!!:handsdown::handsdown::handsdown:
[Release]How to FIX stamina at revive[CoEmu]
08/13/2009 - CO2 PServer Guides & Releases - 3 Replies
If work +thanks (Use Ctrl+F for find the codes cited) File: PacketProcessor.cs Below it: CSocket.Client.CurrentHP = CSocket.Client.MaxHP; Add: CSocket.Client.CurrentStam = 100; Below it: CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CurrentHP, Struct.StatusTypes.Hp)); Add:
[RE-RELEASE] Simple Stamina code for LOFT
07/07/2009 - CO2 PServer Guides & Releases - 3 Replies
if (Splitter == "@stamina") { MyChar.Stamina = 100; MyChar.MyClient.SendPacket(General.MyPackets.Vital (MyChar.UID, 9, MyChar.Stamina)); World.UpdateSpawn(MyChar); }
WTS Necklance of fortune (Stamina 3) + Flying Ring (Stamina 3) Cyprius
04/02/2009 - Archlord Trading - 0 Replies
Hi all, WTS Necklance of fortune (Stamina 3) + Flying Ring (Stamina 3) Each one 20€, i accept only paypal and €, if someone interesetet pm me thanks! The items are on Cyprius!



All times are GMT +2. The time now is 07:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.