Jump to content
  • 0

Question

Posted

Hello, I have a problem. I am using two equal events, each one with its map, the mvp ladder, both have an interval time in which something like a delay can be used again, but I have a problem, the two events work independently, but they don't. I can make the delay different for both I'll call these mvp ladder1 and mvp ladder2 so I can be more clear with the error I'm getting mvp ladder1 has an interval time each time I can go back to 1 hour and mvp ladder2 It has a time of 12 hours and normally if I use mvp ladder1 I can re-enter the event after 1 hour has elapsed but that time is also counted in mvpl adder2 and if I do mvp ladder2 and finish it after this it tells me I have to wait 12 hours as it should be but now if I want to go back to mvp ladder 1 it tells me that I also have to wait 12 hours I upload photos and the scripts to try to be more clear

 

 

 

 

MvP ladder1

https://prnt.sc/Rpf1jcUBRuPk

    else if( #mvp_ladder_delay >= gettimetick(2) ){
        mes "regresa en 1 hora.";
        mes "Tiempo restante :^00FF00 "+( #mvp_ladder_delay - gettimetick(2) )+"^000000 segundos.";
        close;
    }
    #mvp_ladder_delay = gettimetick(2) + 3600;
	Zeny -= .register_cost;
	announce "The party ["+ strcharinfo(1) +"] a entrado a MvP ladder.", bc_all;
	set .party_id, getcharid(1);
	set .@time_enter, gettimetick(2);
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
			attachrid $@partymemberaid[.@i];
			if ( strcharinfo(3) == strnpcinfo(4) ) {
				announce "Tienes "+ .timeout +" minutos para completar "+ .totalround +" rounds.", bc_self;
				.@name$[.@c] = strcharinfo(0);
				.@c++;
			}
		}
	}

 

mvp ladder2

https://prnt.sc/B7IL4B6BWPak

        else if( #mvp_ladder_delay >= gettimetick(2) ){
               mes "regresa en 12 horas.";
               mes "Time left: "+( #mvp_ladder_delay - gettimetick(2) )+" second.";
               close;
        }
        #mvp_ladder_delay = gettimetick(2) + 43200;
	delitem 675,200;
	announce "The party ["+ strcharinfo(1) +"] a entrado a MvP ladder.", bc_all;
	set .party_id, getcharid(1);
	set .@time_enter, gettimetick(2);
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
			attachrid $@partymemberaid[.@i];
			if ( strcharinfo(3) == strnpcinfo(4) ) {
				announce "Tienes "+ .timeout +" minutos para completar "+ .totalround +" rounds.", bc_self;
				.@name$[.@c] = strcharinfo(0);
				.@c++;
			}
		}
	}

 

1 answer to this question

Recommended Posts

  • 0
Posted
On 5/30/2023 at 2:01 AM, Notorius said:

Hello, I have a problem. I am using two equal events, each one with its map, the mvp ladder, both have an interval time in which something like a delay can be used again, but I have a problem, the two events work independently, but they don't. I can make the delay different for both I'll call these mvp ladder1 and mvp ladder2 so I can be more clear with the error I'm getting mvp ladder1 has an interval time each time I can go back to 1 hour and mvp ladder2 It has a time of 12 hours and normally if I use mvp ladder1 I can re-enter the event after 1 hour has elapsed but that time is also counted in mvpl adder2 and if I do mvp ladder2 and finish it after this it tells me I have to wait 12 hours as it should be but now if I want to go back to mvp ladder 1 it tells me that I also have to wait 12 hours I upload photos and the scripts to try to be more clear

 

 

 

 

MvP ladder1

https://prnt.sc/Rpf1jcUBRuPk

    else if( #mvp_ladder_delay >= gettimetick(2) ){
        mes "regresa en 1 hora.";
        mes "Tiempo restante :^00FF00 "+( #mvp_ladder_delay - gettimetick(2) )+"^000000 segundos.";
        close;
    }
    #mvp_ladder_delay = gettimetick(2) + 3600;
	Zeny -= .register_cost;
	announce "The party ["+ strcharinfo(1) +"] a entrado a MvP ladder.", bc_all;
	set .party_id, getcharid(1);
	set .@time_enter, gettimetick(2);
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
			attachrid $@partymemberaid[.@i];
			if ( strcharinfo(3) == strnpcinfo(4) ) {
				announce "Tienes "+ .timeout +" minutos para completar "+ .totalround +" rounds.", bc_self;
				.@name$[.@c] = strcharinfo(0);
				.@c++;
			}
		}
	}

 

mvp ladder2

https://prnt.sc/B7IL4B6BWPak

        else if( #mvp_ladder_delay >= gettimetick(2) ){
               mes "regresa en 12 horas.";
               mes "Time left: "+( #mvp_ladder_delay - gettimetick(2) )+" second.";
               close;
        }
        #mvp_ladder_delay = gettimetick(2) + 43200;
	delitem 675,200;
	announce "The party ["+ strcharinfo(1) +"] a entrado a MvP ladder.", bc_all;
	set .party_id, getcharid(1);
	set .@time_enter, gettimetick(2);
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
			attachrid $@partymemberaid[.@i];
			if ( strcharinfo(3) == strnpcinfo(4) ) {
				announce "Tienes "+ .timeout +" minutos para completar "+ .totalround +" rounds.", bc_self;
				.@name$[.@c] = strcharinfo(0);
				.@c++;
			}
		}
	}

 

solution:

 

        else if( #mvp_ladder_delay2 >= gettimetick(2) ){
               mes "regresa en 12 horas.";
               mes "Time left: "+( #mvp_ladder_delay2 - gettimetick(2) )+" second.";
               close;
        }
        #mvp_ladder_delay2 = gettimetick(2) + 43200;
	delitem 675,200;
	announce "The party ["+ strcharinfo(1) +"] a entrado a MvP ladder.", bc_all;
	set .party_id, getcharid(1);
	set .@time_enter, gettimetick(2);
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
			attachrid $@partymemberaid[.@i];
			if ( strcharinfo(3) == strnpcinfo(4) ) {
				announce "Tienes "+ .timeout +" minutos para completar "+ .totalround +" rounds.", bc_self;
				.@name$[.@c] = strcharinfo(0);
				.@c++;
			}
		}
	}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...