ID:179816
 
How do u make a proc call every 60 seconds. I know that it's sleep(600) but how do u make it call every 60 seconds.
BurningIce wrote:
I know that it's sleep(600) but how do u make it call every 60 seconds.

These two sentences contradict each other.

Anyway, you'll wanna use spawn(600) here.
mob/proc/age()
minutesalive++
spawn(600)
age()

That'd create a loop to do it over and over :).
In response to Vortezz
Vortezz wrote:
BurningIce wrote:
I know that it's sleep(600) but how do u make it call every 60 seconds.

These two sentences contradict each other.

Anyway, you'll wanna use spawn(600) here.
> mob/proc/age()
> minutesalive++
> spawn(600)
> age()
>

That'd create a loop to do it over and over :).

Will it call automaticly?
In response to BurningIce
BurningIce wrote:
Vortezz wrote:
BurningIce wrote:
I know that it's sleep(600) but how do u make it call every 60 seconds.

These two sentences contradict each other.

Anyway, you'll wanna use spawn(600) here.
> > mob/proc/age()
> > minutesalive++
> > spawn(600)
> > age()
> >

That'd create a loop to do it over and over :).

Will it call automaticly?

Well no. I left that up to you.
In response to Vortezz
Vortezz wrote:
BurningIce wrote:
Vortezz wrote:
BurningIce wrote:
I know that it's sleep(600) but how do u make it call every 60 seconds.

These two sentences contradict each other.

Anyway, you'll wanna use spawn(600) here.
> > > mob/proc/age()
> > > minutesalive++
> > > spawn(600)
> > > age()
> > >

That'd create a loop to do it over and over :).

Will it call automaticly?

Well no. I left that up to you.

Well I knew how to do the code you gave me I need to know how to make a proc call automaticly. Like on Morte, the day and night. But only to effect one mob.
In response to BurningIce
BurningIce wrote:
Well I knew how to do the code you gave me I need to know how to make a proc call automaticly. Like on Morte, the day and night. But only to effect one mob.

Sigh. This is not my day.
mob/New()
age()
. = ..()
In response to Vortezz
Vortezz wrote:
BurningIce wrote:
Well I knew how to do the code you gave me I need to know how to make a proc call automaticly. Like on Morte, the day and night. But only to effect one mob.

Sigh. This is not my day.
> mob/New()
> age()
> . = ..()
>


For some reason that only calls the first time use a proc. I don't expect you to help me I'm just teling you that. You can help if you want.
In response to BurningIce
BurningIce wrote:
For some reason that only calls the first time use a proc.

Sorry, what? Please rephrase :)
In response to Vortezz
Vortezz wrote:
BurningIce wrote:
For some reason that only calls the first time use a proc.

Sorry, what? Please rephrase :)

Ok I'm using Click() and it calls the New() proc only when the Click() proc is called for the first time.
In response to BurningIce
BurningIce wrote:
Ok I'm using Click() and it calls the New() proc only when the Click() proc is called for the first time.

That has absolutely nothing to do with playing music. I'm off this thread, now.
In response to Vortezz

That has absolutely nothing to do with playing music. I'm off this thread, now.

Who said anything about plaing music???
In response to BurningIce
BurningIce wrote:
That has absolutely nothing to do with playing music. I'm off this thread, now.

Who said anything about plaing music???

Oops! Hehe, sorry about that! I'm getting posts mixed up! :)

Sorry. Okay, explain in detail what you want, again? I'm too confused now =P
In response to Vortezz
Vortezz wrote:
BurningIce wrote:
That has absolutely nothing to do with playing music. I'm off this thread, now.

Who said anything about plaing music???

Oops! Hehe, sorry about that! I'm getting posts mixed up! :)

Sorry. Okay, explain in detail what you want, again? I'm too confused now =P

About making a proc automaticly be called like every 10 minuits without it being called by a mobs action. Get it? like on Morte, the day and night system. Exept to be on one mob only.
In response to BurningIce
[link]

Okay. No more. I already answered you :p
You'd use:

proc/StartUpWhatever()
for()
//do proc stuff
sleep(600)


This will repeat continually until you return the loop from an if statement or somesuch.
In response to Foomer
Foomer wrote:
You'd use:

proc/StartUpWhatever()
> for()
> //do proc stuff
> sleep(600)

This will repeat continually until you return the loop from an if statement or somesuch.

Oh I'm such a dumb@$$ i could have just put that in the
Login() proc *Smacks his forehead*
In response to BurningIce
Sigh..