Jump to content
  • 0

thanatos script help


jadedlight

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  08/14/15
  • Last Seen:  

 

prontera,117,165,5 script 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$;
}
else {
mes "You didnt meet the requirement.";
}
}
close;
 
OnInit:
.map$ = "thana_boss";
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;
OnClock0000:
OnClock0300:
OnClock0600:
announce "Thanatos NPC has spawn",bc_all,0xFFFF00;
 
    disablenpc strnpcinfo(0);
    end;
}

 

 

problem is that it take 2 people in not 1

wanted to hide the npc when 1 person goes in and show up after 2 hours

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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