Jump to content
  • 0
Fabre01

PVP Rank and Rich Gift System

Question

I found this code in the forum. How can I change this code for a system similar to this but where only the richest in the game and the pvp winner can get rewards? I need your help as I am new to this field. Thanks.

 

prontera,155,181,5	script	Gift NPC	4_M_2NDPRIN2,{
	set .Hour,24;
	if( #dailytimer < gettimetick(2) ) {
	mes "You have Gained a Daily Gift.";
	set #dailytimer,gettimetick(2) + ( .Hour * 3600 );
	getitem 6101,1; //set the price here
}
	else{
	set [email protected],#dailytimer - gettimetick(2);
	set [email protected], [email protected] % ( 24 * 3600 ) / 3600;
	set [email protected],  [email protected] % ( 24 * 3600 ) % 3600 / 60;
	set [email protected],  [email protected] % ( 24 * 3600 ) % 3600 % 60;
	mes "You have to wait to get your next Daily Gift.";
	mes "Time CountDown : ^FF0000"[email protected]+":"[email protected]+":"[email protected]+"^000000";
	}
close;
}


 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.