JohnnyPlayy Posted May 30, 2018 Posted May 30, 2018 Is there any way to limit clicks on the NPC? example: I speak with npc 1 2 and 3 times in 4 times can not talk to npc. Quote
2 GodKnows Jhomz Posted May 30, 2018 Posted May 30, 2018 prontera,155,175,5 script Click Limit NPC 123,{ if(ClickLimit == 3) end; mes "[ Limit Click ]"; set ClickLimit,ClickLimit+1; mes "You have clicked me "+ClickLimit+"x."; close; } Try this. Quote
0 Tyrfing Posted May 30, 2018 Posted May 30, 2018 (edited) It depends on whom you want this limit to be bound to. Each character will be able to interact with the NPC 4 times? Or each account (acc1:Char1 clicks 1 time, then acc1:Char2 will only be able to click 3)? Edited May 30, 2018 by Tyrfing Quote
0 JohnnyPlayy Posted May 30, 2018 Author Posted May 30, 2018 It works fine, you can add a time when the player clicks 3 times has to wait 60 seconds to talk to the npc again Quote
0 Poring King Posted May 30, 2018 Posted May 30, 2018 (edited) You can play around the script that you want . Like adding delay not a click its up to you . 4 hours ago, GodKnows Jhomz said: prontera,155,175,5 script Click Limit NPC 123,{ if(ClickLimit == 3) end; mes "[ Limit Click ]"; set ClickLimit,ClickLimit+1; mes "You have clicked me "+ClickLimit+"x."; close; } Try this. i think it should be like thisprontera,155,175,5 script Click Limit NPC 123,{ set ClickLimit,0; if(ClickLimit == 3) end; mes "[ Limit Click ]"; set ClickLimit,ClickLimit+1; mes "You have clicked me "+ClickLimit+"x."; close; } Edited May 30, 2018 by Poring King Quote
0 Capuche Posted May 30, 2018 Posted May 30, 2018 @Poring King I'm a sensitive person and your edition just hurts me. Don't do this again. You have initialized the variable everytime the player interacts with the npc, breaking the interaction limit Quote
0 Poring King Posted May 30, 2018 Posted May 30, 2018 27 minutes ago, Capuche said: @Poring King I'm a sensitive person and your edition just hurts me. Don't do this again. You have initialized the variable everytime the player interacts with the npc, breaking the interaction limit oh my bad i just tested out and you are right O_O Quote
0 Stolao Posted June 2, 2018 Posted June 2, 2018 On 5/30/2018 at 2:10 PM, Capuche said: @Poring King I'm a sensitive person and your edition just hurts me. Don't do this again. You have initialized the variable everytime the player interacts with the npc, breaking the interaction limit @Capuche this comment made my day ty. Quote
Question
JohnnyPlayy
Is there any way to limit clicks on the NPC?
example: I speak with npc 1 2 and 3 times in 4 times can not talk to npc.
7 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.