Jump to content
  • 0

Easy custom online reward


Question

Posted

I just want a script that gives a reward to the players every day, easy to use because i'm so noob unskilled on the script thing.

I found some scripts that gives reward per hour, day or wekk etc but i just don't get it, if it's posible, i would love a simple and basic script with just that characteriscts (sorry my english)

 

Also, a npc that gives a welcome pack to the new players, because sometimmes im not online and new players come to my server but there is no gm to ask for a welcome pack, thanks again i really apreciated this

7 answers to this question

Recommended Posts

Posted

set .@n$,"[Daily Reward]";
	mes .@n$;
	mes "Hey! Have you taken your reward today?";
	select("Yes");
	if (#dr_time$ != gettimestr("%Y%m%d",9)) {
		next;
		mes .@n$;
		mes "LIAR!!!";
		mes "Telling lies are no good.";
		mes "Please take your reward!";
		next;
		set #dr_time$, gettimestr("%Y%m%d",9);
		switch (gettime(4)) {
			Case 0: getitem 671,1; break;
			Case 1: getitem 672,1; break;
			Case 2: getitem 673,1; break;
			Case 3: getitem 674,1; break;
			Case 4: getitem 675,1; break;
			Case 5: getitem 676,1; break;
			Case 6: getitem 677,1; break;
		}
		next;
		mes .@n$;
		mes "Don't tell lies next time...";
		mes "Have a nice day!";
		close;
	}
	next;
	mes .@n$;
	mes "Then don't talk to me!";
	close;
}

This is a account based daily from these post:

http://rathena.org/board/topic/68819-request-daily-rewards-npc/

You can change the reward prize by just changing the getitem 671 "item id". 671 = Gold Coin change that to other Item(ID ONLY).

 

Posted

Thanks! i can add many more prizes for everyday? what happens when they get all items rewards, the count resets?

thank you again!

Posted

for best results change all reward item to non tradable so that they cant abuse this script. you can find better script in then forum, but then again better script is not so easy to understand in case of what you stated before that your new to scripting, i suggest start learning the basics im also new to this kind of stuffs i just kinda get used to it. :D

Posted
set .@n$,"[Daily Reward]";
	mes .@n$;
	mes "Hey! Have you taken your reward today?";
	select("Yes");
	if (#dr_time$ != gettimestr("%Y%m%d",9)) {
		next;
		mes .@n$;
		mes "LIAR!!!";
		mes "Telling lies are no good.";
		mes "Please take your reward!";
		next;
		set #dr_time$, gettimestr("%Y%m%d",9);
		switch (gettime(4)) {
			Case 0: getitem 671,1; break;
			Case 1: getitem 672,1; break;
			Case 2: getitem 673,1; break;
			Case 3: getitem 674,1; break;
			Case 4: getitem 675,1; break;
			Case 5: getitem 676,1; break;
			Case 6: getitem 677,1; break;
		}
		next;
		mes .@n$;
		mes "Don't tell lies next time...";
		mes "Have a nice day!";
		close;
	}
	next;
	mes .@n$;
	mes "Then don't talk to me!";
	close;
}

This is a account based daily from these post:

http://rathena.org/board/topic/68819-request-daily-rewards-npc/

You can change the reward prize by just changing the getitem 671 "item id". 671 = Gold Coin change that to other Item(ID ONLY).

 

where can i put this script??? in trunk/    /    /      ??

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