prontera,131,171,4 script Daily Giveaway 76,{
set(@now,gettimetick(2));
query_sql("SELECT REPLACE(`last_ip`,'.','_') FROM `login` WHERE `account_id` = "+getcharid(3),@lastIP$);
if((getd("$G_LIP_"+@lastIP$)+(60*60*24)) <= @now) {
setd("$G_LIP_"+@lastIP$,@now);
getitem 7227,1;
//set(#pvppoints,#pvppoints+10);
mes "[Daily Rewards NPC]";
mes("Here's your Daily Event Reward! Thanks for playing Point RO!");
dispbottom "[ Daily Attendance ] : You have received 1 Event Ticket!";
close2();
}
else{
mes "[Daily Rewards NPC]";
mes ("You have already recieved your daily reward.");
close2();
}
end();
}
Question
pointro
I need help in modifying the reward.
In the code below the user will recieve 1 TCG card but I want it to be random item..
like they have a chance to get
10 Silver Coins, 1 Yggdrasil box, 10 Link Scrolls.. etc etc...
Can you help me with that??
thank you very much!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.