Lil Troll Posted August 5, 2013 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
Evelynn Posted August 5, 2013 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
xienne15 Posted August 5, 2013 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
Lil Troll Posted August 6, 2013 Author 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
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 Troll3 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.