Jump to content
  • 0

How to do this?


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Wow! Really really thanks to both of you @xienne15 and @evelynn! I love you both! :D Gonna try combining this two script.! :D Thanks again!

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