Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted (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 by Tyrfing
  • 0
Posted (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 this

prontera,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 by Poring King
  • 0
Posted
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

  • 0
Posted
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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...