Jump to content
  • 0

1 hour cooldown on npcs...


Question

Posted

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

2 answers to this question

Recommended Posts

  • 1
Posted (edited)
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

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...