Advertisement
ryax

reward daily

Jun 11th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.91 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. prontera,160,109,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,10;// CHANGE THE XX TO THE AMOUNT OF THE ITEM WHICH YOU WANT THE PLAYER TO GET
  26. //======================= Settings End ================================================================
  27. //*****************************************************************************************************
  28. if(gettimetick(5) - lastTimeTalked > (30)) {
  29. mes .@rewname$;
  30. mes "Hello "+strcharinfo(0)+",I";
  31. mes "am here to give you a monthly";
  32. mes "Reward. Do you want to have it?";
  33. next;
  34. switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
  35.     case 1:
  36.     mes .@rewname$;
  37.     mes "Okay going to give you the item!";
  38.     next;
  39.     mes .@rewname$;
  40.     getitem .rewardid,@rewardamount;
  41.     mes "Okay have fun with it!";
  42.     set lastTimeTalked,gettimetick(5);
  43.     close;
  44.     case 2:
  45.     mes .@rewname$;
  46.     mes "Okay goodbye!";
  47.     close;
  48.     case 3:
  49.     close;
  50.     }
  51.     }
  52.     mes .@rewname$;
  53.     mes "Sorry you can get the";
  54.     mes "Reward again after ";
  55.     mes "One Month is Over!";
  56.     close;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement