[Help]ANNOYING LITTLE BOX!

12/10/2009 06:20 hunterman01#1
Alright so basically im trying to create that popup message that pops up and ask you if you want to join the pk tourny well.....

How im going about doing this(only for testing purposes) is im going to make it on a timer and create a command for it.

Well im working on this right here

Code:
public static void PopupMessageTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            new Thread(new ThreadStart(
                delegate()
                {
                    Thread.Sleep(30000);
                    NewestCOServer.Packets.PopUpMessage(2005,"Would You like to join the pk event");
                    NewestCOServer.Packets.NPCLink("Yes",1);
                    NewestCOServer.Packets.NPCLink("No",255);                    
                }
        }
Now you see thats all fine and dandy but i honestly dont think it will work

for one reason because there are no controls so..... even if i wanted to i couldnt make "yes" do anything


I was just wandering am i going about this the wrong way?

Should this be an actual npc?

Any help would be apprecaitive and kinda fast cause im on the edge of going bald (pulling my hairout)


*NOTE* i know this is not the full timer because i wanted to fix this issue before i finished it.
12/10/2009 18:37 Hitsugaya Toshiro#2
Quote:
Originally Posted by hunterman01 View Post
Alright so basically im trying to create that popup message that pops up and ask you if you want to join the pk tourny well.....

How im going about doing this(only for testing purposes) is im going to make it on a timer and create a command for it.

Well im working on this right here

Code:
public static void PopupMessageTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            new Thread(new ThreadStart(
                delegate()
                {
                    Thread.Sleep(30000);
                    NewestCOServer.Packets.PopUpMessage(2005,"Would You like to join the pk event");
                    NewestCOServer.Packets.NPCLink("Yes",1);
                    NewestCOServer.Packets.NPCLink("No",255);                    
                }
        }
Now you see thats all fine and dandy but i honestly dont think it will work

for one reason because there are no controls so..... even if i wanted to i couldnt make "yes" do anything


I was just wandering am i going about this the wrong way?

Should this be an actual npc?

Any help would be apprecaitive and kinda fast cause im on the edge of going bald (pulling my hairout)


*NOTE* i know this is not the full timer because i wanted to fix this issue before i finished it.
Well good luck hunterman =P i might be able to see if i can help you
12/10/2009 18:49 Basser#3
Maybe NPCEnd?
No idea how the source's functions are called, so no Idea what it does already.
12/10/2009 22:19 _tao4229_#4
Theres a packet that you can send to ask to join the PK tournament.
12/10/2009 22:20 hunterman01#5
Fuck i figured it was a packet but i aint got a packet sniffer so i guess thats out

>.<