tokisboy Posted March 7, 2020 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 01/22/19 Last Seen: February 24, 2021 Share Posted March 7, 2020 good day i want to ask where do i put the script that enable the npc make a cooldown before talking the quest again where do i place it ? if possible please tell me what the codes is i want to put 1 hr cooldown on this script mvp_ladder.txt Quote Link to comment Share on other sites More sharing options...
0 Hyroshima Posted March 8, 2020 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted March 8, 2020 (edited) I haven't tested it, but I hope it's the way you asked. you define the cooldown in: set .@cooldown,60; //time in minute the changes I made for you to understand ~1 before if ( strcharinfo(3) == strnpcinfo(4)) .@online++; ~ afeter if ( strcharinfo(3) == strnpcinfo(4) && RoomCD < gettimetick(2)) .@online++; else set .@CDnicks$,.@CDnicks$+strcharinfo(0)+", "; ~2 before else if ( .party_id ) { mes "[MvP Ladder Warper]"; mes "I'm sorry, but a party is currently playing the game. Please standby until the party is finished."; mes "Thank you."; close; } ~ afeter else if ( .@CDnicks$ != "" ) { mes "[MvP Ladder Warper]"; mes "There are players in your group with active cooldown!"; mes "^FF0000"+.@CDnicks$+"^000000"; close; } ~3 before Zeny -= .register_cost; announce "The party ["+ strcharinfo(1) +"] has started the MvP ladder game.", bc_all; set .party_id, getcharid(1); set .@time_enter, gettimetick(2); ~ afeter Zeny -= .register_cost; announce "The party ["+ strcharinfo(1) +"] has started the MvP ladder game.", bc_all; set .party_id, getcharid(1); set .@time_enter, gettimetick(2); set .@cooldown,60; //time in minute ~4 before announce "You have "+ .timeout +" minutes to complete "+ .totalround +" rounds.", bc_self; .@name$[.@c] = strcharinfo(0); .@c++; ~ afeter announce "You have "+ .timeout +" minutes to complete "+ .totalround +" rounds.", bc_self; .@name$[.@c] = strcharinfo(0); RoomCD = gettimetick(2)+(60*.@cooldown); .@c++; mvp_ladder.txt Edited March 8, 2020 by Hyroshima Quote Link to comment Share on other sites More sharing options...
Question
tokisboy
good day i want to ask where do i put the script that enable the npc make a cooldown before talking the quest again
where do i place it ? if possible please tell me what the codes is i want to put 1 hr cooldown on this script
mvp_ladder.txt
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.