Quote:
Originally Posted by EmmeTheCoder
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