Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - shop V_Guerra 139,501:-1 // Não mecha NUNCA aqui!
- - script shop_conf#01 -1,{
- end;
- OnInit:
- setarray $V_item[0],5132,5801,5013,5377,5374,5584,5518,5451,5452,5453,5531,5594,5548,5506,5507,5384,5495,5532,5563,5471,5468,5466,5401,5288,5463,5462,5470,5410,5420,5421,5388,5389,5372,5361,5360,5325,5137,5291,5283,5822,5142,5324,12919,13960;
- setarray $V_custo[0],14,12,15,12,15,12,15,15,13,12,10,10,9,6,6,8,9,7,7,8,8,10,7,7,7,7,8,10,10,10,9,10,5,10,10,15,15,12,10,14,5,9,5,40;
- npcshopdelitem "V_Guerra",501;
- if(getarraysize($V_item) >= 1) {
- npcshopitem "V_Guerra",$V_item[0],$V_custo[0];
- for (set .@i,1; .@i < getarraysize($V_item); set .@i,.@i+1) {
- npcshopadditem "V_Guerra",$V_item[.@i],$V_custo[.@i];
- }
- }
- end;
- }
- prontera,164,170,5 script Lojinha do SEURO 935,{
- mes "["+strnpcinfo(1)+"]";
- mes "Para comprar itens é preciso ter ^ff0000Eventos Point's^000000";
- mes "Faça pequena doação para nosso servidor e obtenhas!";
- close2;
- callshop "V_Guerra",1;
- end;
- OnInit:
- npcshopattach "V_Guerra",1;
- end;
- OnBuyItem:
- mes "["+strnpcinfo(1)+"]";
- mes "Voce Quer Mesmo Concluir a Compra?";
- mes "^FF0000Lembre-se!!:^000000";
- mes "A habilidade ^0000FFDesconto^000000 Não funciona neste NPC!";
- next;
- if(select("Concluir:Cancelar")==2) {
- mes "["+strnpcinfo(1)+"]";
- mes "Compra cancelada com sucesso!";
- close;
- }
- close2;
- for (set .@i,0; .@i < getarraysize(@bought_nameid); set .@i,.@i+1) {
- set @cost,callfunc("V_bonuscusto",@bought_nameid[.@i]);
- if ( countitem(7468) < @cost*@bought_quantity[.@i]) {
- dispbottom "Você não tem lbRO Point's suficiente!";
- } else {
- delitem 7468,@cost*@bought_quantity[.@i];
- additem @bought_nameid[.@i],@bought_quantity[.@i];
- dispbottom "Obrigado por comprar, volte sempre!";
- }
- }
- deletearray @bought_nameid[0],getarraysize(@bought_nameid);
- deletearray @bought_quantity[0],getarraysize(@bought_quantity);
- end;
- }
- function script V_bonuscusto {
- for(set .@i,0; .@i < getarraysize($V_item); set .@i,.@i+1) {
- if($V_item[.@i] == getarg(0)) {
- return $V_custo[.@i];
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment