Jump to content
  • 0

gettimetick(2) for Account_ID


Tdi123

Question


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.04
  • Content Count:  192
  • Reputation:   3
  • Joined:  12/12/17
  • Last Seen:  

I'm trying to put some delay to use npc again, but it only works for the character, I wanted to put it on the account, how do I do it?

Example:

if( .@now < barenamvp_delay ) {
                    mes .prc$;
                    mes "Aguarde ^0000ff"+(bar_delay - .@now)+"s^000000 para usar o npc novamente";
                    close2;
                    cutin "",255;
                    end;

}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

prontera,0,0,0	script	delay	444,{
	.@t = #DELAY_ERGHLKJ + 60;//60 seconds
	if(.@t < gettimetick(2)){
		mes "Try again after " + (gettimetick(2) - .@t) + " seconds";
		end;
	}
	#DELAY_ERGHLKJ = gettimetick(2);
	mes "Hello!";
end;
}

#ACCOUNT_VARIABLE

Edited by sader1992
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.04
  • Content Count:  192
  • Reputation:   3
  • Joined:  12/12/17
  • Last Seen:  

On 9/30/2021 at 7:32 AM, sader1992 said:
prontera,0,0,0	script	delay	444,{
	.@t = #DELAY_ERGHLKJ + 60;//60 seconds
	if(.@t < gettimetick(2)){
		mes "Try again after " + (gettimetick(2) - .@t) + " seconds";
		end;
	}
	#DELAY_ERGHLKJ = gettimetick(2);
	mes "Hello!";
end;
}

#ACCOUNT_VARIABLE

Thank you very much!

 

On 9/30/2021 at 6:39 AM, Tdi123 said:

I'm trying to put some delay to use npc again, but it only works for the character, I wanted to put it on the account, how do I do it?

Example:

if( .@now < barenamvp_delay ) {
                    mes .prc$;
                    mes "Aguarde ^0000ff"+(bar_delay - .@now)+"s^000000 para usar o npc novamente";
                    close2;
                    cutin "",255;
                    end;

}

It works too, putting # in front of bar_delay, so it looks like this: #bar_delay

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...