A question

11/04/2008 20:00 Kiyono#1
//
11/04/2008 20:05 tao4229#2
Depends on what you're doing..
11/04/2008 20:10 Kiyono#3
Well let's say you have a NPC that's says : Example Timer not started
And if you type for example /startnpctimer the npc would say: Example Timer started

so the npc script would be like if timer started blahblahb;a else if other blablahbla
11/04/2008 20:58 _Emme_#4
Look at my anti-bot ( As Qonquer had it ) thread, it shoul be in All-In-One thread. I there show you how to do that by command. Hope it helped!


Emme
11/04/2008 21:19 Kiyono#5
Quote:
Originally Posted by EmmeTheCoder View Post
Look at my anti-bot ( As Qonquer had it ) thread, it shoul be in All-In-One thread. I there show you how to do that by command. Hope it helped!


Emme
Ah thanks hadn't thought of that

//edit can you explain me this part a bit...

Quote:
if (Splitter[0] == "@start")
{
MyChar.QuestionTimer.Interval = 60000 * 15;
MyChar.QuestionTimer.Elapsed += new ElapsedEventHandler(MyChar.QuestionTimer_Elapsed);
MyChar.QuestionTimer.Start();
MyChar.QuestionTimer1.Interval = 60000 * 16;
MyChar.QuestionTimer1.Elapsed += new ElapsedEventHandler(MyChar.QuestionTimer1_Elapsed) ;
MyChar.QuestionTimer1.Start();
bolded parts... i don't get why you multiply by 15 or 16...
11/04/2008 22:21 _Emme_#6
60000 milliseconds = 60 seconds, right?
As I said in the post, it sends out 1 question every 15 minutes. So

60 seconds * 15 = 15 minutes,correct?

And for the 16:

60000 * 16 = 60 seconds * 16 = 16 minutes

16 minutes until the "Did not answer"- Timer starts - Disconnect you. Means you got 1 minute to answer the question.

Hope it makes sence!
11/04/2008 22:27 Kiyono#7
Quote:
Originally Posted by EmmeTheCoder View Post
60000 milliseconds = 60 seconds, right?
As I said in the post, it sends out 1 question every 15 minutes. So

60 seconds * 15 = 15 minutes,correct?

And for the 16:

60000 * 16 = 60 seconds * 16 = 16 minutes

16 minutes until the "Did not answer"- Timer starts - Disconnect you. Means you got 1 minute to answer the question.

Hope it makes sence!
ow ok i get it so for the command part i need to do something as


if (splitter[0] == "/start" && Status = 8)
{
MyChar.TImerthingy.Interval = 60000 * 5;
MyChar.TImerthingy.Elapsed += new ElapsedEventHandler(MyChar.TImerthingy_Elapsed) ;
MyChar.TImerthingy.Start();
}

and for the npc part i need to do something like
if (timer = true
{
if (CurrentNpc == 451655615
{
NPCSAY "TImer has started
NPCLink "kwahtever", 1
NPCLINk "Just passing by", 255
}
else if
{
NPCSAY "Sorry not available right now"
NPCLINK "I'll come later", 255
}

and i would need to add a public void TImerthingy() like thing right

i know it's not the right way to type it it's just a example + that i can't code lol i'm trying to learn from what i see
11/04/2008 22:48 _Emme_#8
Send the NPC packets ( chat / options / finish npc shit ) under your Timer elapsed shit,like this:

if (TImerthingy_Elapsed()
{
NPC STUFFS HERE
}
11/04/2008 22:58 Kiyono#9
Quote:
Originally Posted by EmmeTheCoder View Post
Send the NPC packets ( chat / options / finish npc shit ) under your Timer elapsed shit,like this:

if (TImerthingy_Elapsed()
{
NPC STUFFS HERE
}
ah ok i'll try tommorow since i still need to learn for my math & history test