Jump to content
  • 0

Question

Posted (edited)

Anyone can help me do this script?

- After someone talk to NPC it will disappear but there is a delay.  (Ex. 10secs after talk = Disappear)

- Then after 5mins he will appear again.

 

The idea is limiting the use of that npc. Is this possible?

Edited by Lil Troll

3 answers to this question

Recommended Posts

Posted
map,x,y,d           script            NPC              999,{

if ($@talk ) {
mes "Someone else is talking to me";
close;
}

mes "Hello";
set $@talk,1;
close2;
sleep2 10000;
hideonnpc "NPC";
sleep2 300000;
hideoffnpc "NPC";
set $@talk,0;
end;

}

Didn't test. Somewhat made it quickly. Tell me if there is any errors.

Posted (edited)
prontera,123,123,4    script    human    55,{    
        if(#ticker<gettimetick(2)) {
        mes "Hello.";
        next;
        mes "Now you have to wait 5 minutes to talk to me again.";
        set #ticker, gettimetick(2)+60*5;
    } else {
        mes "Come back later after 5 minutes.";
    }
    close;
}

Well this one limits the player who talk to the NPC for 5 minutes, the NPC will not be invisible but will not talk to the player until the 5 minutes is finished.

Edited by xienne15

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