Register for your free account! | Forgot your password?

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

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

Advertisement



[Help Request] Offline TG [5165]

Discussion on [Help Request] Offline TG [5165] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
[Help Request] Offline TG [5165]

Hey everyone!

I'm developing a release and I almost got it down! (If you can't tell, it's the Offline Training Ground). Here is my problem though, I want it so that when people log off with the "Offline TG" button, it teleports them to Map ID #601. (why the hell is "teleport" not in the Firefox dictionary?) If someone could provide it for me that would just rock. lol


Thanks!
-NewDawn- is offline  
Old 02/22/2010, 23:26   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -NewDawn- View Post
Hey everyone!

I'm developing a release and I almost got it down! (If you can't tell, it's the Offline Training Ground). Here is my problem though, I want it so that when people log off with the "Offline TG" button, it teleports them to Map ID #601. (why the hell is "teleport" not in the Firefox dictionary?) If someone could provide it for me that would just rock. lol


Thanks!
Try this:
Go to packet handler.cs and replace case 2044: with this,
Code:
                        case 2044:
                            {
                                if (Data[4] == 1)
                                {
                                    GC.MyChar.InOTG = true;
GC.MyChar.Teleport(601, 65, 55);
                                }
                                fixed (byte* p = Data)
                                {
                                    ushort e = (ushort)(GC.MyChar.TrainTimeLeft + ((DateTime.Now - GC.MyChar.LoggedOn).TotalMinutes * 10));
                                    if (e > 900) e = 900;
                                    *((uint*)(p + 8)) = e;
                                }                                
                                
                                GC.AddSend(Data);
                                break;
                            }
Arcо is offline  
Old 02/22/2010, 23:26   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Code:
case 2044:
                            {
                                if (Data[4] == 1)
                                {
                                    GC.MyChar.InOTG = true;
                                    GC.MyChar.Teleport(601, 65, 55);
                                }
                                fixed (byte* p = Data)
                                {
                                    ushort e = (ushort)(GC.MyChar.TrainTimeLeft + ((DateTime.Now - GC.MyChar.LoggedOn).TotalMinutes * 10));
                                    if (e > 900) e = 900;
                                    *((uint*)(p + 8)) = e;
                                }                                
                                
                                GC.AddSend(Data);
                                break;
                            }
This teleports You to Offline TG Map.
-Shunsui- is offline  
Thanks
1 User
Old 02/22/2010, 23:29   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by -Shunsui- View Post
Code:
case 2044:
                            {
                                if (Data[4] == 1)
                                {
                                    GC.MyChar.InOTG = true;
                                    GC.MyChar.Teleport(601, 65, 55);
                                }
                                fixed (byte* p = Data)
                                {
                                    ushort e = (ushort)(GC.MyChar.TrainTimeLeft + ((DateTime.Now - GC.MyChar.LoggedOn).TotalMinutes * 10));
                                    if (e > 900) e = 900;
                                    *((uint*)(p + 8)) = e;
                                }                                
                                
                                GC.AddSend(Data);
                                break;
                            }
This teleports You to Offline TG Map.
Looks to be that way
hunterman01 is offline  
Old 02/23/2010, 00:15   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by -Shunsui- View Post
Code:
case 2044:
                            {
                                if (Data[4] == 1)
                                {
                                    GC.MyChar.InOTG = true;
                                    GC.MyChar.Teleport(601, 65, 55);
                                }
                                fixed (byte* p = Data)
                                {
                                    ushort e = (ushort)(GC.MyChar.TrainTimeLeft + ((DateTime.Now - GC.MyChar.LoggedOn).TotalMinutes * 10));
                                    if (e > 900) e = 900;
                                    *((uint*)(p + 8)) = e;
                                }                                
                                
                                GC.AddSend(Data);
                                break;
                            }
This teleports You to Offline TG Map.




What is the code for current time?
-NewDawn- is offline  
Old 02/23/2010, 01:59   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by Decker_ View Post
lol wtf.
He wasn't picking on you.
#request close means the thread starter got his answer so that means the thread don't need to be open anymore.
Get it?
No. I'm not done and I've never seen him do that to ANY other thread.

My Question: What is the code for the current server time?
-NewDawn- is offline  
Old 02/23/2010, 02:33   #7
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Its DateTime.Now Search Arround in the Source for That to get more ideas on how using it
-Shunsui- is offline  
Thanks
1 User
Old 02/23/2010, 02:52   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by -Shunsui- View Post
Its DateTime.Now Search Arround in the Source for That to get more ideas on how using it
Thx =P
My offline training ground is almost done! i'll release it soon!
(Don't get too excited.. it's really getto. rofl. it works tho! ^^)
-NewDawn- is offline  
Old 02/23/2010, 02:54   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -NewDawn- View Post
Thx =P
My offline training ground is almost done! i'll release it soon!
(Don't get too excited.. it's really getto. rofl. it works tho! ^^)
I think what everyone is missing is the packet to make the window pop up.
That's something that people really need to make otg work perfectly.
Arcо is offline  
Old 02/23/2010, 02:56   #10
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by -NewDawn- View Post
Thx =P
My offline training ground is almost done! i'll release it soon!
(Don't get too excited.. it's really getto. rofl. it works tho! ^^)
Good Luck,

@ Arco

You are correct, Only if this people with packet loggers where more Nicer to Get packets for Us and POst em here even if we have to convert them, Just like the flower packet, look at it now almost a full System
-Shunsui- is offline  
Old 02/23/2010, 02:58   #11
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -Shunsui- View Post
Good Luck,

@ Arco

You are correct, Only if this people with packet loggers where more Nicer to Get packets for Us and POst em here even if we have to convert them, Just like the flower packet, look at it now almost a full System
Lol a friend of mine gave me the packet a while back, but I lost the source due to formatting my comp.
Arcо is offline  
Old 02/23/2010, 03:10   #12
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by .Arco View Post
Lol a friend of mine gave me the packet a while back, but I lost the source due to formatting my comp.
Fail Lol,
Emu wouldent happen to have them would it?
-Shunsui- is offline  
Old 02/23/2010, 06:47   #13
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,164
Stop requesting a "close" just because the OP got his answer.
Its NOT a reason for a close.
Huseby is offline  
Reply


Similar Threads Similar Threads
[Release] Offline TG [5165]
04/20/2010 - CO2 PServer Guides & Releases - 32 Replies
None of you deserve this. #request close



All times are GMT +2. The time now is 15:39.


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.