Jump to content
  • 0

1 hour cooldown on npcs...


lllaaazzz

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  10/14/17
  • Last Seen:  

skip to bold for question

 

Hi i would love to play around with every time command and function and stuff till i get it but im just not that desperate yet so maybe one of you would be so awesome as to just spoon feed me how  ? 

prontera,155,155,5	script	Cornfarmer	4_CORN,{
	if (BaseJob == Job_Gunslinger) {		
	getitem 26001,1;
	
	}//gs only
	
mes "corn only for gunslingers sorry";
close;
end;
}

Censoring my work because im not ready for feedback/criticism 

 

How could i make the gunslinger only part, after you click it and get your CORN , it needs 1 hour cooldown before you can get your corn as a gunslinger again, but if you click on it, the other message will show instead (yeah it contradicting as is lol my bad)

 

ya theres a bunch of timers and things out there but its alot of work testing from scratch ? i know # and .@ mean character and account, i saw a command i could use but it seemed like when i logged out it and log in , i would be able to use the npc again

 

please find my question, its in bold ? 

 

 

Thank you

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

prontera,155,155,5	script	Cornfarmer	4_CORN,{
	if (BaseJob == Job_Gunslinger) {
		if (CORNCOOLDOWN > gettimetick(2)){
			mes "you need to wait 1 hour to get one more corn";
			close;
		}
		getitem 26001,1;
		CORNCOOLDOWN = gettimetick(2) + 3600;	//3600 seconds! = 1 hour
		mes "you got a corn!";
		close;
	}//gs only
	
	mes "corn only for gunslingers sorry";
	close;
}

 

Edited by sader1992
  • Upvote 1
  • MVP 1
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  10/14/17
  • Last Seen:  

thanks you even added the extra message..... your the best dude 

 

I dont know how to thumb you up, so i clicked everything ❤️

Edited by lllaaazzz
Link to comment
Share on other sites

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.

×
×
  • Create New...