How to create npc give item 24Hours once per character?

hadiesyafiq

New member
Messages
160
Points
0
Age
35
Location
Malaysia
Github
hadiesyafiq
Emulator
hi all

i just want make npc that give item/exp per day for character

how to make it?

i try use daily supply but it for an account and 12hours per claim 

i want make it 24hour per claim and make it per character

thanks in advance

 
Well.

Create new npc.

After claiming item add new char var with current time + 24h.

If char talk again with npc and if(current time < saved) {gtfo} 

 
Well.

Create new npc.

After claiming item add new char var with current time + 24h.

If char talk again with npc and if(current time < saved) {gtfo} 
i sir thanks for reply...can you make one npc that can i use for example?

 
uhm, maybe you can do it in a easy way.

something like this...

Code:
	if ( time_down > gettimetick(2) && 1 ) {
		mes ("Sorry, try again in : "+callfunc( "Time2Str", time_down )+".");
		close;

	}

		time_down  = gettimetick(2) + .cooldown;
		getitem Apple,1;
                    
	OnInit:
		.cooldown = ( 24 * 3600 ); // 24 hours.
		end;
 
i all ready success to make it give 24hours per reward

but it only work per account not per character

here my script

function script getmercenary {
set .Hour,24;
if( #dailymercenary < gettimetick(2) ) {
mes "Here your Mercenary Contract for today.";
set #dailymercenary,gettimetick(2) + ( .Hour * 3600 );
getitem 12160,5; //set the price here
}else{
set .@last,#dailymercenary - gettimetick(2);
set .@hour, .@last % ( 24 * 3600 ) / 3600;
set .@min, .@last % ( 24 * 3600 ) % 3600 / 60;
set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60;
mes "You have to wait ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000 countdown to get next Mercenary Contract";
}
close;
}


how to make it give per character?

 
Back
Top