Kariton Revolution Posted August 22, 2015 Group: Members Topic Count: 161 Topics Per Day: 0.03 Content Count: 429 Reputation: 5 Joined: 11/21/11 Last Seen: January 14, 2017 Share Posted August 22, 2015 help to make this script every 3-hours NPC will be available again Broadcast if the room is available, to notify the players if the summon room is already available. Requirements to Summon Thanatos are the 4 Fragments: Agony, Despair, Sorrow, Hatred. Only 1 player can enter. help me please help please Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 22, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 51 minutes ago Share Posted August 22, 2015 prontera,155,165,5 script Sample#thanatos 757,{ mes "Summon Thanatos ?"; mes " "; mes "You need:"; for ( .@i = 0; .@i < .required_item_size; .@i++ ) { mes " > "+getitemname( .required_item[.@i] ); if ( !countitem( .required_item[.@i] ) ) .@fail++; } if ( select( "Take it","Cancel" ) == 1 ) { if ( getmapusers( .map$ ) ) { mes "Someone already inside it."; } else if ( !.@fail ) { for ( .@i = 0; .@i < .required_item_size; .@i++ ) delitem .required_item[.@i],1; warp .map$,0,0; killmonsterall .map$; monster .map$,0,0,"--ja--",1708,1; } else { mes "You didnt meet the requirement."; } } close; OnInit: .map$ = "evt_coke"; setarray .required_item, 7436, 7437, 7438, 7439; .required_item_size = getarraysize( .required_item ); getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 ); setmapflagnosave( .map$,.@npc_map$,.@npc_x,.@npc_y ); end; } Quote Link to comment Share on other sites More sharing options...
Kariton Revolution Posted August 24, 2015 Group: Members Topic Count: 161 Topics Per Day: 0.03 Content Count: 429 Reputation: 5 Joined: 11/21/11 Last Seen: January 14, 2017 Author Share Posted August 24, 2015 (edited) prontera,155,165,5 script Sample#thanatos 757,{ mes "Summon Thanatos ?"; mes " "; mes "You need:"; for ( .@i = 0; .@i < .required_item_size; .@i++ ) { mes " > "+getitemname( .required_item[.@i] ); if ( !countitem( .required_item[.@i] ) ) .@fail++; } if ( select( "Take it","Cancel" ) == 1 ) { if ( getmapusers( .map$ ) ) { mes "Someone already inside it."; } else if ( !.@fail ) { for ( .@i = 0; .@i < .required_item_size; .@i++ ) delitem .required_item[.@i],1; warp .map$,0,0; killmonsterall .map$; monster .map$,0,0,"--ja--",1708,1; } else { mes "You didnt meet the requirement."; } } close; OnInit: .map$ = "evt_coke"; setarray .required_item, 7436, 7437, 7438, 7439; .required_item_size = getarraysize( .required_item ); getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 ); setmapflagnosave( .map$,.@npc_map$,.@npc_x,.@npc_y ); end; } sir emistry thankyou for this sir can you set it every 3hours before the npc can show again ? Edited August 24, 2015 by Kariton Revolution Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 24, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 51 minutes ago Share Posted August 24, 2015 OnClock0000: OnClock0300: OnClock0600: ... ... disablenpc strnpcinfo(0); end; Quote Link to comment Share on other sites More sharing options...
Question
Kariton Revolution
help please
Link to comment
Share on other sites
3 answers 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.