[Help Request] Offline TG [5165]

02/22/2010 23:18 -NewDawn-#1
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

[Only registered and activated users can see links. Click Here To Register...]
Thanks!
02/22/2010 23:26 Arcо#2
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

[Only registered and activated users can see links. Click Here To Register...]
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 -Shunsui-#3
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 hunterman01#4
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
02/23/2010 00:15 -NewDawn-#5
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.
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

What is the code for current time?
02/23/2010 01:59 -NewDawn-#6
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?
02/23/2010 02:33 -Shunsui-#7
Its DateTime.Now Search Arround in the Source for That to get more ideas on how using it
02/23/2010 02:52 -NewDawn-#8
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! ^^)
02/23/2010 02:54 Arcо#9
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.
02/23/2010 02:56 -Shunsui-#10
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
02/23/2010 02:58 Arcо#11
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.
02/23/2010 03:10 -Shunsui-#12
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?
02/23/2010 06:47 Huseby#13
Stop requesting a "close" just because the OP got his answer.
Its NOT a reason for a close.