Lil Troll Posted August 5, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted August 5, 2013 (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 August 5, 2013 by Lil Troll Quote Link to comment Share on other sites More sharing options...
Evelynn Posted August 5, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 93 Reputation: 14 Joined: 12/12/11 Last Seen: October 25, 2015 Share Posted August 5, 2013 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. Quote Link to comment Share on other sites More sharing options...
xienne15 Posted August 5, 2013 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 226 Reputation: 11 Joined: 01/09/12 Last Seen: March 15, 2018 Share Posted August 5, 2013 (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 August 5, 2013 by xienne15 Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted August 6, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Author Share Posted August 6, 2013 Wow! Really really thanks to both of you @xienne15 and @evelynn! I love you both! Gonna try combining this two script.! Thanks again! Quote Link to comment Share on other sites More sharing options...
Question
Lil Troll
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 TrollLink 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.