prontera,x,y,0 xxx 723,{
if( #reward == 1 )
{
mes "Reward already collects";
close;
}
if (Weight >= 3*MaxWeight/4)
{
dispbottom "You need to store some items";
close;
}
if(gettime(5)==1)
{
getitem 7539,10;
[color=#ff0000]set ##reward, 1;[/color]
unitskilluseid getcharid(3),698,1;
dispbottom "You collected :";
dispbottom "10 Poring Coin";
close;
}
if(gettime(5)==2)
{
getitem 7539,10;
[color=#ff0000]set ##reward, 1;[/color]
unitskilluseid getcharid(3),698,1;
dispbottom "You collected :";
dispbottom "10 Poring Coin";
close;
}
[color=#ff0000]OnClock0000:[/color]
[color=#ff0000]reward = 0;[/color]
[color=#ff0000]end;[/color]
I want to put a limitation on this npc.
I try the code in red, but dunno if it's correct.. .I would like the timer reset when the server is 00h o'clock.
Can you help me ?
Add to this, I want to put a cooldown on ip adress. I want a player to talk to the NPC only once in the day, even if he uses one different account...Thanks !