Jump to content
  • 0

Request Script That Give Item Monthly Or Daily


Question

6 answers to this question

Recommended Posts

Posted


prontera,155,181,5 script Sample 757,{

setarray .ItemID[0],512;

setarray .Amount[0],1;

if( #MonthlyReward != gettime(6) ){

getitem .ItemID[gettime(6)],.Amount[gettime(6)];

set #MonthlyReward,gettime(6);

mes "You have grant an item for this month.";

}else{

mes "You cant take a reward again this month.";

}

close;

}

Posted
prontera,155,181,5	script	Sample	757,{
//                   Sun, Mon, Tue, Wed, Thu, Fri, Sat.
setarray .ItemID[0], 512, 501, 502, 503, 504, 505, 506;
setarray .Amount[0], 1  , 2  , 3  , 4  , 5  , 6  , 7  ;

if( #MonthlyReward != gettime(4) ){
getitem .ItemID[gettime(4)],.Amount[gettime(4)];
set #MonthlyReward,gettime(4);
mes "You have grant an item for this month.";
}else{
mes "You cant take a reward again this month.";
}
close;
}

Say if you were to get your prize on Monday then wait until next Monday to try and get a prize again it wouldn't let you. :)

Posted
prontera,155,181,5	script	Sample	757,{
//                   Sun, Mon, Tue, Wed, Thu, Fri, Sat.
setarray .ItemID[0], 512, 501, 502, 503, 504, 505, 506;
setarray .Amount[0], 1  , 2  , 3  , 4  , 5  , 6  , 7  ;

if( #MonthlyReward != gettime(4) ){
getitem .ItemID[gettime(4)],.Amount[gettime(4)];
set #MonthlyReward,gettime(4);
mes "You have grant an item for this month.";
}else{
mes "You cant take a reward again this month.";
}
close;
}

Say if you were to get your prize on Monday then wait until next Monday to try and get a prize again it wouldn't let you. :)

 

sir can u make it a cash point ?

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