Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 15:28

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

Advertisement



[Question] How to make this command [For 5165 Source]

Discussion on [Question] How to make this command [For 5165 Source] within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 13
Received Thanks: 11
[Question] How to make this command [For 5165 Source]

Hello guys, I'm new at coding and was wondering how to make a command for the 5165 source which enables you to have unlimited stamina (For GMs only). Thanks.

This is wut I have did so far...

Code:
                   if (Cmd[0] == "/gmstamina")
                    {
                        if (!InfiniteStamina)
                        {
                            InfiniteStamina = true;
                        }
                        else
                        {
                            InfiniteStamina = false;
                        }
                         
                    }
I dunno where to define InfiniteStamina.

#EDIT

Okay I've tried doing this. I went to Character.cs and put this above if (Action == 250)

Code:
                    if (InfiniteStamina)
                        Stamina = 100;
And went back and changed the Chat.cs thing to

Code:
                    if (Cmd[0] == "/gmstamina")
                    {
                        if (!GC.MyChar.InfiniteStamina)
                        {
                            GC.MyChar.InfiniteStamina = true;
                        }
                        else
                        {
                            GC.MyChar.InfiniteStamina = false;
                        }
                         
                    }
Is it okay to do it like this??
iLikeSkittles is offline  
Old 04/01/2010, 01:34   #2
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Gonna have to do checks on all skills that use stamina i believe, so if
Code:
InfiniteStamina = true;
then remove the stamina cost for the skill,
else
Stamina cost for skill as normal

Thats how i'd do it
xScott is offline  
Old 04/01/2010, 02:01   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
no...

basically do this..

find out where you send it finally liek im pretty sure the new lotf doesn't require u to send a packet each time it sends at the end

find it there.. be like

if (InifiniteStamina)
Stamina = 100;
send stam.
PeTe Ninja is offline  
Old 04/01/2010, 02:04   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 13
Received Thanks: 11
So for example for this:
Code:
                if (AT != AttackType.Magic && Action == 250)
                {
                    if (Stamina > 30)
                        Stamina -= 30;
                    else
                        Stamina = 0;
                }
Do I just change it to this:

Code:
             if (AT != AttackType.Magic && Action == 250 && InfiniteStamina)
                {
                    if (Stamina > 30)
                        Stamina -= 30;
                    else
                        Stamina = 0;
                }
iLikeSkittles is offline  
Old 04/01/2010, 14:56   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
cheater learn how to fb/ss then you wouldn't need infinite stamina.
copz1337 is offline  
Old 04/01/2010, 18:03   #6
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
public bool InfiniteStamina;

since you asked where to define it
.Guru is offline  
Old 04/01/2010, 20:54   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 13
Received Thanks: 11
Quote:
Originally Posted by copz1337 View Post
cheater learn how to fb/ss then you wouldn't need infinite stamina.
When did say I wanted to FB/SS using infinite stamina? I could be using it for something else like mounts & guards.

I got it working 100%.

#request close
iLikeSkittles is offline  
Closed Thread


Similar Threads Similar Threads
[5165] make it full command?
01/29/2010 - CO2 Private Server - 13 Replies
:confused: how could i just make it so all accounts can do commands for items and also how to make a guard reviver if any1 would happen 2 know? :D
[Question] re: PM command 5165
01/13/2010 - CO2 Private Server - 9 Replies
Is there a such thing as tempban, ban, or ipban commands for PM's for 5165 source? only ones ive seen are for LOTF, and i actually have no clue how to convert them
[HELP] What is the command to make attributes 1000 on ultimateco source?
09/15/2009 - CO2 Private Server - 0 Replies
What is the command to make attributes 1000 on ultimateco source?
What is the command on a v5017 source to make all attributes 1000?
08/31/2009 - CO2 Private Server - 13 Replies
What is the command on a v5017 source to make all attributes 1000?



All times are GMT +1. The time now is 15:29.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.