Tdi123 Posted September 29, 2021 Share Posted September 29, 2021 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( [email protected] < barenamvp_delay ) { mes .prc$; mes "Aguarde ^0000ff"+(bar_delay - [email protected])+"s^000000 para usar o npc novamente"; close2; cutin "",255; end; } Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted September 29, 2021 Share Posted September 29, 2021 (edited) prontera,0,0,0 script delay 444,{ [email protected] = #DELAY_ERGHLKJ + 60;//60 seconds if([email protected] < gettimetick(2)){ mes "Try again after " + (gettimetick(2) - [email protected]) + " seconds"; end; } #DELAY_ERGHLKJ = gettimetick(2); mes "Hello!"; end; } #ACCOUNT_VARIABLE Edited September 29, 2021 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 Tdi123 Posted September 30, 2021 Author Share Posted September 30, 2021 On 9/30/2021 at 7:32 AM, sader1992 said: prontera,0,0,0 script delay 444,{ [email protected] = #DELAY_ERGHLKJ + 60;//60 seconds if([email protected] < gettimetick(2)){ mes "Try again after " + (gettimetick(2) - [email protected]) + " 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( [email protected] < barenamvp_delay ) { mes .prc$; mes "Aguarde ^0000ff"+(bar_delay - [email protected])+"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 Quote Link to comment Share on other sites More sharing options...
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( [email protected] < barenamvp_delay ) {
mes .prc$;
mes "Aguarde ^0000ff"+(bar_delay - [email protected])+"s^000000 para usar o npc novamente";
close2;
cutin "",255;
end;
}
Link to comment
Share on other sites