Register for your free account! | Forgot your password?

You last visited: Today at 12:19

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

Advertisement



[Release]My source...

Discussion on [Release]My source... within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 05/14/2010, 20:02   #91
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Okay ,

UPDATE: I got all the Conductress's working.
I got all portals working.

EDIT: What general Data type is 146 ? it seems to happen when I do a @tele command
MonstersAbroad is offline  
Old 05/14/2010, 20:53   #92
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
EndTeleport I think...not sure
-impulse- is offline  
Old 05/15/2010, 00:33   #93
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Thanks,

I have a little problem I coded a full entire Server Maintance system but got error the atually Game.Maintenace.cs is fine no errors atol when I add a command
Code:
case "maintenace":
                                        {
                                            Game.Maintenace.Start();
                                            break;
                                        }
It errors
Code:
No Overload method for 'start' takes '0' methods
the Start looks like
Code:
 public static void Start(Client.GameState client)
any help ?
MonstersAbroad is offline  
Old 05/15/2010, 01:24   #94
 
elite*gold: 0
Join Date: Sep 2006
Posts: 6
Received Thanks: 0
you have to pass in a game state in your method call
micro1337 is offline  
Old 05/15/2010, 01:38   #95
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Okay thanks got it working another problem

I am not posting my WHOLE broadcast code here but its nearly done
Code:
B.Place =[COLOR="Red"][B] Client.GameState.BroadCasts[Client.GameState.BroadCastCount] = B;[/B][/COLOR]
Error:
[code]
Cannot implicilty covert type 'Conquer_Online_Server.Client.GameState.BroadCastM essage' to 'byte' when it is not coverting it to a byte....
THIS MITE HELP
Code:
        public static BroadCastMessage[] BroadCasts = new BroadCastMessage[100];
        public static BroadCastMessage CurrentBC = new BroadCastMessage();
        public static byte BroadCastCount = 0;
any help please ??
MonstersAbroad is offline  
Old 05/15/2010, 01:53   #96
 
elite*gold: 0
Join Date: Sep 2006
Posts: 6
Received Thanks: 0
what are you trying to do?
micro1337 is offline  
Old 05/15/2010, 01:58   #97
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
This is what I did
I went into Message.cs and made it look like
Code:
public const uint Center = 2011,
                          PopUP = 2100,
                          Dialog = 2101,
                          Guild = 2004,
                          Service = 2014,
                          Talk = 2000,
                          Team = 2003,
                          TopLeft = 2005,
                          Whisper = 2001,
                          World = 2021,
                          Website = 2105,
                          Broadcast = 2500;
Then went into Gamestate.cs and added
Code:
        public static BroadCastMessage[] BroadCasts = new BroadCastMessage[100];
        public static BroadCastMessage CurrentBC = new BroadCastMessage();
        public static DateTime LastBroadCast = DateTime.Now;
Then went into PacketHandler.cs and under
Code:
                    case Message.Guild:
                        {
                            break; 
                        }
adding
Code:
case Message.Broadcast:
                        {
                            if (client.Entity.Level == 70)
                            {
                                if (client.Entity.ConquerPoints >= 5)
                                {
                                    if (Client.GameState.BroadCastCount <= 100)
                                    {
                                        client.Entity.ConquerPoints -= 5;


                                        string BMessage = "";
                                        for (byte i = 0; i < Data[13]; i++)
                                            BMessage += Convert.ToChar(Data[14 + i]);

                                        foreach (Client.GameState pClient in ServerBase.Kernel.GamePool.Values)
                                        {
                                            Client.GameState.BroadCastMessage B = new Client.GameState.BroadCastMessage();
                                            B.Name = client.Entity.Name;
                                            B.BMessage = BMessage;
                                            // B.Place = Client.GameState.BroadCasts[Client.GameState.BroadCastCount] = B;
                                            Client.GameState.BroadCastCount++;

                                            Data[8] = B.Place;
                                            client.Send(Data);
                                            pClient.Send(Data);
                                        }
                                    }
                                }
                            }
                            else
                            {
                                return;
                            }
                            break;
                        }
oh and I also added
Code:
byte[] Data = null;
UPOVE
Code:
if (!CheckCommand(message, client))
??
MonstersAbroad is offline  
Old 05/15/2010, 02:28   #98
 
elite*gold: 0
Join Date: Sep 2006
Posts: 6
Received Thanks: 0
first change the broadcast value to 0x7da or 2010...then add this to player commands or w/e

Code:
case "broadcast":
                                        {
                                            client.Send(new Message(Data[1], System.Drawing.Color.AliceBlue, GamePackets.Message.Broadcast));
                                            break;
                                        }
start off small then add features like level cap and conquer points.
micro1337 is offline  
Old 05/15/2010, 08:36   #99
 
AliveVVithoutFeeling's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 74
Received Thanks: 46
You'd better to put a screen shots to see everything ..
AliveVVithoutFeeling is offline  
Old 05/15/2010, 23:15   #100
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
UPDATE:
Added it so when you die and your PKPoints are over 100 you get teleported to jail.
Added JailWarden and the guy who takes you to Jail.
Added Mount skill with a bool so like
if you use the skill Mount it will do Client.GameState.Mounted == true; and it has checks for stamina if your already mounted and if you are mounted it will check stamina if thats 100 and mounted == true; then you get demounted etc

I need help with vigor tho I tryed client.entitry.Vigor == 100; but nothing any help ?
MonstersAbroad is offline  
Old 05/16/2010, 02:56   #101
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Why do we care what you updated?

Anyways, == is for bools, it should be =
Arcо is offline  
Thanks
3 Users
Old 05/16/2010, 12:21   #102
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
I am just saying what I update then is someone looks at the thread and sees what I updated they could be like "**** wont work for me " they will end up PM'ing me and I'll help them...btw your server sux...5065 tq bin....
MonstersAbroad is offline  
Old 05/16/2010, 12:25   #103

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by MonstersAbroad View Post
I am just saying what I update then is someone looks at the thread and sees what I updated they could be like "**** wont work for me " they will end up PM'ing me and I'll help them...btw your server sux...5065 tq bin....
TQ bins can be good if you have the required skills =X
Kiyono is offline  
Old 05/16/2010, 12:29   #104
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
I could argue that. but I could also Argue that its just a stolen peace of work.
MonstersAbroad is offline  
Old 05/16/2010, 18:55   #105

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by MonstersAbroad View Post
I could argue that. but I could also Argue that its just a stolen peace of work.
*piece and I agree.
Kiyono is offline  
Reply


Similar Threads Similar Threads
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



All times are GMT +2. The time now is 12:19.


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.