JohnnyPlayy Posted May 30, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 41 Reputation: 13 Joined: 03/20/16 Last Seen: April 28, 2024 Share 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 Link to comment Share on other sites More sharing options...
2 GodKnows Jhomz Posted May 30, 2018 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share 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 Link to comment Share on other sites More sharing options...
0 Tyrfing Posted May 30, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 86 Reputation: 21 Joined: 10/02/13 Last Seen: October 23, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 JohnnyPlayy Posted May 30, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 41 Reputation: 13 Joined: 03/20/16 Last Seen: April 28, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 Poring King Posted May 30, 2018 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share 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 Link to comment Share on other sites More sharing options...
0 Capuche Posted May 30, 2018 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
0 Poring King Posted May 30, 2018 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share 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 Link to comment Share on other sites More sharing options...
0 Stolao Posted June 2, 2018 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.