Jump to content
  • 0

Thanatos Summon NPC


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

 
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 :(

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  


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;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

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 by Kariton Revolution
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

OnClock0000:

OnClock0300:

OnClock0600:

...

...

disablenpc strnpcinfo(0);

end;

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...