Register for your free account! | Forgot your password?

You last visited: Today at 10:07

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

Advertisement



[HELP]VIP Command Fix

Discussion on [HELP]VIP Command Fix within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Talking [HELP]VIP Command Fix

Could anyone help me fix this command for Hellmouth Source
The red words are errors.

Code:
case "/vip":
                            {
                                [B][COLOR="Red"]Game[/COLOR][/B].Character C = [B][COLOR="#ff0000"]Game[/COLOR][/B].World.CharacterFromName(Cmd[1]);
                                if (C != null)
                                    C.VipLevel = byte.Parse(Cmd[2]);
                                GC.[B][COLOR="#ff0000"]AddSend[/COLOR][/B](Packets.[B][COLOR="#ff0000"]ChatMessage[/COLOR][/B](0, "SYSTEM", GC.[B][COLOR="#ff0000"]MyChar[/COLOR][/B].Name, "Congratulations! " + C.Name + "Is VIP Level " + C.VipLevel + "!", 2001, 0));
                            }
F i n c h i is offline  
Old 04/06/2011, 21:49   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
HAAAAAAAAAAAAAAAAHAHAHAHA!
You are such a big fool.
1. Hellmouth has different variables.
2. Hellmouth has different Methods.
3. Hellmouth has different classifications.

Learn a bit, then we'll talk.
iStefan is offline  
Old 04/06/2011, 23:13   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 32
Received Thanks: 3
be a bit nicer stefan...

@ontopic, ask Pro4Never, he made the source if im right.
Notpop is offline  
Old 04/06/2011, 23:27   #4
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
i can help you. talk to me on the elementco chatbox
AndreaCo is offline  
Old 04/06/2011, 23:28   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
All you do is converting the variables. Not really anything else. The error you're getting is probably "Does not exist in current context" Am I right?
Syst3m_W1z4rd is offline  
Old 04/07/2011, 00:06   #6
 
elite*gold: 0
Join Date: Nov 2007
Posts: 32
Received Thanks: 3
Quote:
Originally Posted by Syst3m_W1z4rd View Post
All you do is converting the variables. Not really anything else. The error you're getting is probably "Does not exist in current context" Am I right?
i think you're right, because it's looking for something what isn't there.
so if you change it to the right ones, look them up in other files, it should be working.
Notpop is offline  
Old 04/07/2011, 03:48   #7
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
if (C != null) {
C.VipLevel = ...
C.SendPacket(....)

}
enclose both parts in the if statement
_tao4229_ is offline  
Old 04/07/2011, 13:05   #8
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
I can't see a conversion here.
iStefan is offline  
Reply


Similar Threads Similar Threads
command
06/27/2010 - CO2 Private Server - 8 Replies
Using:CoSX Source hey guys i have my p server and i am PM and i have a normal the name of it is test1 i do /kick test1 ok so it gets dc so now my other friend has an acc name xSplashx i do /kick xSplashx and nothing happens i get a error on my CoSX console
/npc command
11/09/2009 - CO2 Private Server - 7 Replies
Hi, i was trying to create a Command for the CoFuture source and i have this completed if (Splitter == "/npc") { Start.Npcs.Clear(); Database.LoadNpcs(); return 2; }
GM Command
10/16/2009 - Metin2 Private Server - 2 Replies
hey wie mache ich Leute auf meinem Server zum GM?!
[Help] /hp command
07/08/2009 - CO2 Private Server - 17 Replies
Ok im really new to c# and dont know much so would anyone be willing to hlep me with an /hp command (some sources might have it but the one i got doesnt) This is what I got and I know something is missing so im not suprised that it doesnt work: if (Splitter == "/hp") { MyChar.MaxHP = MyChar.BaseMaxHP(); MyChar.CurHP = MyChar.MaxHP; }
GM COMMAND?
07/14/2008 - Kal Online - 2 Replies
İ want /get (any weapon code) but with mix ? anybody know this gm command?



All times are GMT +1. The time now is 10:08.


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.