Advertisement
Mooka

Untitled

Jun 8th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.97 KB | None | 0 0
  1. //        //=====//     /==/     /==/          /==/      
  2. //       //     //     /==/     /==/  /=/     /==/        
  3. //      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
  4. //     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
  5. //    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
  6. //   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
  7. //  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
  8. // //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
  9. // ================ rAthena Script ====================================================================
  10. //=== Made by Rikimaru
  11. //==================== Information ====================================================================
  12. //==== Daily Reward Script
  13. //================= Version : =========================================================================
  14. //=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
  15. //=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
  16. //============== Credits : ============================================================================
  17. //=== Credits to Rikimaru for the Daily Reward Script
  18. //=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
  19. //=====================================================================================================
  20. //*************************************************************************
  21. payon,161,240,3 script  Daily Reward    911,{
  22. //=========================== Settings ================================================================
  23. set .@rewname$,"^0000FF[ Daily Reward ]^000000";// YOU MAY CHANGE THE NAME OF THE NPC
  24. set .rewardid,7227;// CHANGE THE XXXXX TO THE ITEM ID,WHICH THE PLAYER SHOULD GET
  25. set @rewardamount,5;// CHANGE THE XX TO THE AMOUNT OF THE ITEM WHICH YOU WANT THE PLAYER TO GET
  26. //======================= Settings End ================================================================
  27. //*****************************************************************************************************
  28.     if((gettimetick(2) - ##lastTimeTalked) > (60 * 60 * 24))
  29.     {
  30.         mes .@rewname$;
  31.         mes "Hello "+strcharinfo(0)+",I";
  32.         mes "am here to give you a daily";
  33.         mes "Reward. Do you want to have it?";
  34.         next;
  35.         switch(select("-Yes,sure!:-No,bye!:-Cancel"))
  36.         {
  37.         case 1:
  38.             mes .@rewname$;
  39.             mes "Okay going to give you the item!";
  40.             next;
  41.             mes .@rewname$;
  42.             getitem .rewardid,@rewardamount;
  43.             mes "Okay have fun with it!";
  44.             set ##lastTimeTalked, gettimetick(2);
  45.             close;
  46.  
  47.         case 2:
  48.             mes .@rewname$;
  49.             mes "Okay goodbye!";
  50.             close;
  51.         case 3:
  52.             close;
  53.         }
  54.     }
  55.  
  56.     mes .@rewname$;
  57.     mes "Sorry you can get the";
  58.     mes "Reward again after ";
  59.     mes "24 Hours are over!";
  60.     close;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement