Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script paytowinbuffs -1,{
- end;
- OnBuffs:
- if(gettimetick(2) < use_delay){
- message strcharinfo(0),"Nope";
- end;
- }
- if(getgroupid() <= 4) {
- message strcharinfo(0),"Falha, você não possui VIP.";
- end;
- }
- if(isequipped(4263)) {
- message strcharinfo(0),"Não funciona equipado com Samurai Encarnado.";
- end;
- }
- if (gettimetick(2) < delay_buffer) {
- dispbottom( "You have to wait "+Time2Str(delay_bufer)+" to use the command again.", 0xFF0000 );
- end;
- }
- use_delay = gettimetick(2) + .use_delay;
- .@menu$ = implode(.buffs$,":");
- .@i = prompt(.@menu$) -1;
- if(.@i < 255) {
- sc_start .elements[.@i],180000,5;
- //atcommand "@refresh "+strcharinfo(0);
- delay_buffer = gettimetick(2) + .delay;
- }
- end;
- OnInit:
- .use_delay = 5; // 5 second use delay
- .delay = 3 * 2; // 5 = 5 seconds *60 = 360 seconds
- setarray .buffs$, "^800080Envenenar Arma^000000", "^40E0D0Aspersio^000000", "^000000Sombrio^000000", "^FFD700Encantar com Ventania^000000", "^0000FFEncantar com Geada^000000", "^FF0000Encantar com Chama^000000", "^B8860BEncantar com Terremoto^000000";
- setarray .elements, 26, 37, 144, 98, 97, 96, 99;
- bindatcmd "encantar","paytowinbuffs::OnBuffs",0,99;
- end;
- }
Add Comment
Please, Sign In to add comment