|
You last visited: Today at 15:39
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.
02/22/2010, 23:18
|
#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!
|
|
|
02/22/2010, 23:26
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -NewDawn-
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;
}
|
|
|
02/22/2010, 23:26
|
#3
|
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.
|
|
|
02/22/2010, 23:29
|
#4
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by -Shunsui-
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
|
|
|
02/23/2010, 00:15
|
#5
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by -Shunsui-
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?
|
|
|
02/23/2010, 01:59
|
#6
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by Decker_
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?
|
|
|
02/23/2010, 02:33
|
#7
|
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
|
|
|
02/23/2010, 02:52
|
#8
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by -Shunsui-
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! ^^)
|
|
|
02/23/2010, 02:54
|
#9
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -NewDawn-
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.
|
|
|
02/23/2010, 02:56
|
#10
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Quote:
Originally Posted by -NewDawn-
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
|
|
|
02/23/2010, 02:58
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -Shunsui-
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.
|
|
|
02/23/2010, 03:10
|
#12
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Quote:
Originally Posted by .Arco
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?
|
|
|
02/23/2010, 06:47
|
#13
|
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.
|
|
|
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.
|
|