Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script sinx#getitem -1,{
- OnInit:
- bindatcmd "sinx",strnpcinfo(3)+"::OnAtcommand";
- end;
- OnAtcommand:
- set @npc$,"[ Ron ]";
- set @check_online,1;
- if (getgmlevel() < 80) goto EPR_player;
- if (getgmlevel() >= 80) {
- if (#pg_delay > (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3))) && (#pg_mode == 0) {
- mes @npc$;
- mes "I'm afraid you have used all your prize's for this day";
- mes "Call in "+ (#pg_delay - (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3)) )+" hours later.";
- close;
- }
- if (#pg_mode == 0) goto pg_active;
- set #pg_mode,1;
- set #pg_limit,100;
- goto pg_active;
- }
- pg_active:
- mes @npc$;
- mes "Hello GM "+strcharinfo(0)+".";
- menu "SINX",pg_tcg;
- EPR_player:
- mes @npc$;
- mes "Hello " + strcharinfo(0) + ", this NPC is for Event GMs use only.";
- close;
- pg_tcg:
- set .@p,1;
- goto pg_tcg_give;
- pg_tcg_give:
- set .GMName$,strcharinfo(0);
- set @gmdeny,getcharid(3,.GMName$);
- mes @npc$;
- mes " ";
- mes "Enter player name"+ (@check_online ? " (must be online)." : " .");
- input @ep_char_name$;
- next;
- set @ep_char_id,getcharid(3,@ep_char_name$);
- if (@ep_char_id == @gmdeny) {
- announce "Admin: Warning! \""+.GMName$+"\" You cannot give prize to yourself.",0;
- close;
- }
- if (@check_online && !isloggedin(getcharid(3,@ep_char_name$)))
- {
- mes @npc$;
- mes " ";
- mes "Sorry, "+@ep_char_name$+" is invalid.";
- mes " ";
- mes "This player either doesn't exist or she is not online now.";
- close;
- } else {
- set #pg_limit,#pg_limit-.@p;
- if (#pg_limit < 1) {
- set #pg_delay, (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3) + 5);
- set #pg_mode,0;
- }
- getitem 5013,.@p,@ep_char_id;
- getitem 5483,.@p,@ep_char_id;
- getitem 5548,.@p,@ep_char_id;
- getitem 2357,.@p,@ep_char_id;
- getitem 2357,.@p,@ep_char_id;
- getitem 2524,.@p,@ep_char_id;
- getitem 2524,.@p,@ep_char_id;
- getitem 2115,.@p,@ep_char_id;
- getitem 2115,.@p,@ep_char_id;
- getitem 1230,.@p,@ep_char_id;
- getitem2 1309,1,1,10,0,0,0,0,0,@ep_char_id;
- getitem2 1108,1,1,10,0,0,0,0,0,@ep_char_id;
- getitem 2629,2,@ep_char_id;
- getitem 2541,1,@ep_char_id;
- getitem 2410,1,@ep_char_id;
- getitem 4047,1,@ep_char_id;
- getitem 4174,1,@ep_char_id;
- getitem 4302,1,@ep_char_id;
- getitem 4403,5,@ep_char_id;
- getitem 4399,2,@ep_char_id;
- getitem 4305,2,@ep_char_id;
- getitem 4121,1,@ep_char_id;
- getitem 4128,1,@ep_char_id;
- getitem 4198,1,@ep_char_id;
- getitem 4146,1,@ep_char_id;
- getitem 674,20,@ep_char_id;
- close;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement