Advertisement
Guest User

Untitled

a guest
Jan 8th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. - script sinx#getitem -1,{
  2. OnInit:
  3. bindatcmd "sinx",strnpcinfo(3)+"::OnAtcommand";
  4. end;
  5. OnAtcommand:
  6. set @npc$,"[ Ron ]";
  7. set @check_online,1;
  8.  
  9. if (getgmlevel() < 80) goto EPR_player;
  10. if (getgmlevel() >= 80) {
  11. if (#pg_delay > (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3))) && (#pg_mode == 0) {
  12. mes @npc$;
  13. mes "I'm afraid you have used all your prize's for this day";
  14. mes "Call in "+ (#pg_delay - (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3)) )+" hours later.";
  15. close;
  16. }
  17. if (#pg_mode == 0) goto pg_active;
  18. set #pg_mode,1;
  19. set #pg_limit,100;
  20. goto pg_active;
  21. }
  22.  
  23. pg_active:
  24. mes @npc$;
  25. mes "Hello GM "+strcharinfo(0)+".";
  26. menu "SINX",pg_tcg;
  27.  
  28.  
  29. EPR_player:
  30. mes @npc$;
  31. mes "Hello " + strcharinfo(0) + ", this NPC is for Event GMs use only.";
  32. close;
  33.  
  34. pg_tcg:
  35. set .@p,1;
  36. goto pg_tcg_give;
  37.  
  38. pg_tcg_give:
  39. set .GMName$,strcharinfo(0);
  40. set @gmdeny,getcharid(3,.GMName$);
  41. mes @npc$;
  42. mes " ";
  43. mes "Enter player name"+ (@check_online ? " (must be online)." : " .");
  44. input @ep_char_name$;
  45. next;
  46. set @ep_char_id,getcharid(3,@ep_char_name$);
  47. if (@ep_char_id == @gmdeny) {
  48. announce "Admin: Warning! \""+.GMName$+"\" You cannot give prize to yourself.",0;
  49. close;
  50. }
  51. if (@check_online && !isloggedin(getcharid(3,@ep_char_name$)))
  52. {
  53. mes @npc$;
  54. mes " ";
  55. mes "Sorry, "+@ep_char_name$+" is invalid.";
  56. mes " ";
  57. mes "This player either doesn't exist or she is not online now.";
  58. close;
  59. } else {
  60. set #pg_limit,#pg_limit-.@p;
  61. if (#pg_limit < 1) {
  62. set #pg_delay, (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3) + 5);
  63. set #pg_mode,0;
  64. }
  65. getitem 5013,.@p,@ep_char_id;
  66. getitem 5483,.@p,@ep_char_id;
  67. getitem 5548,.@p,@ep_char_id;
  68. getitem 2357,.@p,@ep_char_id;
  69. getitem 2357,.@p,@ep_char_id;
  70. getitem 2524,.@p,@ep_char_id;
  71. getitem 2524,.@p,@ep_char_id;
  72. getitem 2115,.@p,@ep_char_id;
  73. getitem 2115,.@p,@ep_char_id;
  74. getitem 1230,.@p,@ep_char_id;
  75. getitem2 1309,1,1,10,0,0,0,0,0,@ep_char_id;
  76. getitem2 1108,1,1,10,0,0,0,0,0,@ep_char_id;
  77. getitem 2629,2,@ep_char_id;
  78. getitem 2541,1,@ep_char_id;
  79. getitem 2410,1,@ep_char_id;
  80. getitem 4047,1,@ep_char_id;
  81. getitem 4174,1,@ep_char_id;
  82. getitem 4302,1,@ep_char_id;
  83. getitem 4403,5,@ep_char_id;
  84. getitem 4399,2,@ep_char_id;
  85. getitem 4305,2,@ep_char_id;
  86. getitem 4121,1,@ep_char_id;
  87. getitem 4128,1,@ep_char_id;
  88. getitem 4198,1,@ep_char_id;
  89. getitem 4146,1,@ep_char_id;
  90. getitem 674,20,@ep_char_id;
  91. close;
  92. }
  93. }
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement