Register for your free account! | Forgot your password?

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

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

Advertisement



5290+ source montser spawn code??

Discussion on 5290+ source montser spawn code?? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
first , thank pro4ever,Immu..rel this source!!

I want try spawn monster like this code:
(but not work!)


PHP Code:
    public class MobSpawn ExodusPacket 
    

        public 
MobSpawn(uint UID,Status type,ulong value
            : 
base(36
        { 
            
byte[] bt=new byte[8+36]; 
            
WORD((ushort)(bt.Length-8)); 
            
WORD((ushort)10017); 
            
DWORD32(UID); 
            
DWORD32(0x01); 
            
DWORD32((uint)type); 
            
DWORD(value); 
        } 
    } 
The MobThreadExecute

PHP Code:
static void MobThread_Execute() 
        { 
            try 
            { 
                if (
H_Chars.Count 0
                { 
                    try 
                    { 
                        foreach (
Hashtable H in H_Mobs.Values
                        { 
                            foreach (
MobStruct M in H.Values
                            { 
                                
//M.Step(); 

                                
if (M.PoisonedInfo != null
                                { 
                                    if (
DateTime.Now M.PoisonedInfo.LastAttack.AddSeconds(3)) 
                                    { 
                                        if (
M.CurrentHP == 0
                                        { 
                                            
M.PoisonedInfo null
                                            foreach (
Entity C in H_Chars.Values
                                                if (
M.Loc.Map == C.MapID
                                                    if (
MyMath.PointDistance(M.Loc.XM.Loc.YC.XC.Y) <= 20
                                                        
C.Client.Send(new MobSpawn(M.EntityIDStatus.Effect0)); 
                                            continue; 
                                        } 
                                        
//M.PoisonedInfo.Times--; 
                                        
M.PoisonedInfo.LastAttack DateTime.Now
                                        
uint Dmg = (uint)(M.CurrentHP * (10 M.PoisonedInfo.SpellLevel 10) / 100); 
                                        if (
Dmg == 1
                                            continue; 
                                       
// M.TakeAttack(M, Dmg, AttackType.Melee); 
                                        
if (M.PoisonedInfo.Times == 0
                                        { 
                                            
M.PoisonedInfo null
                                            foreach (
Entity C in H_Chars.Values
                                                if (
M.Loc.Map == C.MapID
                                                    if (
MyMath.PointDistance(M.Loc.XM.Loc.YC.XC.Y) <= 20
                                                        
C.Client.Send(new MobSpawn(M.EntityIDStatus.Effect0));//.AddSend(Packets.Status(M.EntityID, ConquerSx.Game.Status.Effect, 0)); 
                                        

                                    } 
                                } 
                            } 
                        } 
                    } 
                    catch (
Exception Exc) { Console.WriteLine(Exc); } 
                } 
            } 
            catch (
Exception Exc) { Console.WriteLine(Exc); } 
        } 
And in Exodus

PHP Code:
            MyThread MobThread = new MyThread(); 
            
MobThread.Execute += new Execute(MobThread_Execute); 
            
MobThread.Start(400); 
If you want know more , I will upload my edit source!
I hope study to this will help!

262315610 is offline  
Old 09/12/2010, 16:42   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Lul don't use NewestCOServer as an example when doing important functions.
Arcо is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] 5290+ Source (Immune's)
03/05/2011 - CO2 PServer Guides & Releases - 119 Replies
ok so there has been so many people who have already made their own sources for new patches or upgraded existing ones and me and others have released some info on how to go about it... This has caused a bunch of 'nubs' (there are exceptions, talking in general here) to start begging for a working 5290 base to experiment with. While I agree with the argument that it's super easy to upgrade with the information already provided, I do understand that not everyone has access to a proxy to log...
[Project] 5290+ source
11/19/2010 - CO2 Private Server - 86 Replies
Ok so as promised... project tracking thread for my source. In the last couple days of messing around with the concept for this project it's gone through a ton of changes so lemme lay out what's happening here. Custom Source: I am still planning to do a custom source... but doubt I'll be releasing that (if it ever gets done). Patch: As of right now I got lazy and decided to use an existing source to test things so that I knew what I was doing (that way I have a reference and can...
pro4never's 5290 source ???
09/03/2010 - CO2 Private Server - 2 Replies
who can work it online...and login no error please help me how to setup one by one
where can i download 5290 c# Source
09/02/2010 - CO2 Private Server - 19 Replies
hello I saw some people talking about the new 5290 C# Source. if any one have it or know from where can i download Source. Tell ME Please (If it is full or not, there are my friends will be working In IT ) They Learned C# Language Sorry For My Bad English:p
[Question] Spawn Packet of 5290 source
08/31/2010 - CO2 Private Server - 5 Replies
:handsdown:Entity SendSpaw packet (10014):handsdown: When I use tow account 5290 client login game. One Role can not see another Role I think the problem is in Packet: Entity SendSpaw The following is the structure of 5165



All times are GMT +1. The time now is 13:58.


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