Jump to content
  • 0

Daily Reward upgrade


Sallycantdance

Question


  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

Hello guys i would like to ask for help using this Daily Reward npc i figured that all character can get reward in the same account also if you create new character in the same account , Question is how can i apply to make this Daily reward npc to be only get once per account and not per character Thanks in advance heres the script

//====================== rAthena Script ===============================================================
//=== Made by Rikimaru
//=== Topic Link : http://rathena.org/board/topic/58004-request-daily-reward-npc-script/
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
prontera,146,92,6    script    Daily Reward NPC    757,{
//=========================== Settings ================================================================
set .@rewname$,"[ Daily Reward ]";
set .rewardid,12744;
set @rewardamount,1;
//======================= Settings End ================================================================
//*****************************************************************************************************
if(gettimetick(2) - lastTimeTalked > (60 * 60 * 24)) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Reward. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes "Welcome...this is Daily gift...";
getitem 12987,1;
getitem 12263,2;
getitem 14765,2;
getitem 12264,2;
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2);
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry you can get the";
mes "Reward again after ";
mes "24 Hours are over!";
close;
OnInit:
waitingroom " Daily Rewards",0;
    end;
}

// Duplicates
//============================================================
alberta,29,240,6    duplicate(Daily Reward NPC)    Daily Reward NPC#alb    757
aldebaran,145,118,4    duplicate(Daily Reward NPC)    Daily Reward NPC#ald    757
geffen,115,66,6    duplicate(Daily Reward NPC)    Daily Reward NPC#gef    757
morocc,156,102,6    duplicate(Daily Reward NPC)    Daily Reward NPC#mor    757
payon,184,104,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay    757
izlude,134,93,4    duplicate(Daily Reward NPC)    Daily Reward NPC#izl    757
payon,172,226,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay1    757
yuno,148,187,6    duplicate(Daily Reward NPC)    Daily Reward NPC#yun    757

 

Edited by Haruka Mayumi
Code Box
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  485
  • Reputation:   271
  • Joined:  06/13/17
  • Last Seen:  

//====================== rAthena Script ===============================================================
//=== Made by Rikimaru
//=== Topic Link : http://rathena.org/board/topic/58004-request-daily-reward-npc-script/
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
prontera,146,92,6    script    Daily Reward NPC    757,{
//=========================== Settings ================================================================
set .@rewname$,"[ Daily Reward ]";
set .rewardid,12744;
set @rewardamount,1;
//======================= Settings End ================================================================
//*****************************************************************************************************
if(gettimetick(2) > #lastTimeTalked) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Reward. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes "Welcome...this is Daily gift...";
getitem 12987,1;
getitem 12263,2;
getitem 14765,2;
getitem 12264,2;
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2)+86400;
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry you can get the";
mes "Reward again after ";
mes "24 Hours are over!";
close;
OnInit:
waitingroom " Daily Rewards",0;
    end;
}

// Duplicates
//============================================================
alberta,29,240,6    duplicate(Daily Reward NPC)    Daily Reward NPC#alb    757
aldebaran,145,118,4    duplicate(Daily Reward NPC)    Daily Reward NPC#ald    757
geffen,115,66,6    duplicate(Daily Reward NPC)    Daily Reward NPC#gef    757
morocc,156,102,6    duplicate(Daily Reward NPC)    Daily Reward NPC#mor    757
payon,184,104,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay    757
izlude,134,93,4    duplicate(Daily Reward NPC)    Daily Reward NPC#izl    757
payon,172,226,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay1    757
yuno,148,187,6    duplicate(Daily Reward NPC)    Daily Reward NPC#yun    757

 

Edited by Haruka Mayumi
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

1 hour ago, Haruka Mayumi said:

//====================== rAthena Script ===============================================================
//=== Made by Rikimaru
//=== Topic Link : http://rathena.org/board/topic/58004-request-daily-reward-npc-script/
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
prontera,146,92,6    script    Daily Reward NPC    757,{
//=========================== Settings ================================================================
set .@rewname$,"[ Daily Reward ]";
set .rewardid,12744;
set @rewardamount,1;
//======================= Settings End ================================================================
//*****************************************************************************************************
if(gettimetick(2) - #lastTimeTalked > (60 * 60 * 24)) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Reward. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes "Welcome...this is Daily gift...";
getitem 12987,1;
getitem 12263,2;
getitem 14765,2;
getitem 12264,2;
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2);
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry you can get the";
mes "Reward again after ";
mes "24 Hours are over!";
close;
OnInit:
waitingroom " Daily Rewards",0;
    end;
}

// Duplicates
//============================================================
alberta,29,240,6    duplicate(Daily Reward NPC)    Daily Reward NPC#alb    757
aldebaran,145,118,4    duplicate(Daily Reward NPC)    Daily Reward NPC#ald    757
geffen,115,66,6    duplicate(Daily Reward NPC)    Daily Reward NPC#gef    757
morocc,156,102,6    duplicate(Daily Reward NPC)    Daily Reward NPC#mor    757
payon,184,104,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay    757
izlude,134,93,4    duplicate(Daily Reward NPC)    Daily Reward NPC#izl    757
payon,172,226,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay1    757
yuno,148,187,6    duplicate(Daily Reward NPC)    Daily Reward NPC#yun    757

 

thankyou sir for your reply but sad to say  i get again  daily reward

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  485
  • Reputation:   271
  • Joined:  06/13/17
  • Last Seen:  

i edited my reply.

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

1 minute ago, Haruka Mayumi said:

i edited my reply.

i will try i right now sir ❤️

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

2 hours ago, Haruka Mayumi said:

//====================== rAthena Script ===============================================================
//=== Made by Rikimaru
//=== Topic Link : http://rathena.org/board/topic/58004-request-daily-reward-npc-script/
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
prontera,146,92,6    script    Daily Reward NPC    757,{
//=========================== Settings ================================================================
set .@rewname$,"[ Daily Reward ]";
set .rewardid,12744;
set @rewardamount,1;
//======================= Settings End ================================================================
//*****************************************************************************************************
if(gettimetick(2) > #lastTimeTalked) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Reward. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes "Welcome...this is Daily gift...";
getitem 12987,1;
getitem 12263,2;
getitem 14765,2;
getitem 12264,2;
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2)+86400;
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry you can get the";
mes "Reward again after ";
mes "24 Hours are over!";
close;
OnInit:
waitingroom " Daily Rewards",0;
    end;
}

// Duplicates
//============================================================
alberta,29,240,6    duplicate(Daily Reward NPC)    Daily Reward NPC#alb    757
aldebaran,145,118,4    duplicate(Daily Reward NPC)    Daily Reward NPC#ald    757
geffen,115,66,6    duplicate(Daily Reward NPC)    Daily Reward NPC#gef    757
morocc,156,102,6    duplicate(Daily Reward NPC)    Daily Reward NPC#mor    757
payon,184,104,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay    757
izlude,134,93,4    duplicate(Daily Reward NPC)    Daily Reward NPC#izl    757
payon,172,226,4    duplicate(Daily Reward NPC)    Daily Reward NPC#pay1    757
yuno,148,187,6    duplicate(Daily Reward NPC)    Daily Reward NPC#yun    757

 

thankyou so much sir finally it works!!!!!! thank your again Godbless you !!

Link to comment
Share on other sites

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.

×
×
  • Create New...