Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - shop V_LBRO 139,501:-1 // Não mecha NUNCA aqui!
- - script shop_conf#01 -1,{
- end;
- OnInit:
- setarray $V_item1[0],5132,5801,5013,5377,5374,5584,5518,5451,5452,5453,5531,5594,5506,5507,5384,5495,5532,5563,5471,5468,5401,5288,5463,5462,5470,5410,5420,5421,5388,5389,5372,5361,5360,5325,5137,5291,5283,5822,5142,5324,12221;
- setarray $V_custo1[0],11000,12500,15000,10000,15000,10000,15000,15000,10000,8000,10000,6000,6000,8000,9000,7000,7000,8000,7200,5500,5500,5000,6000,8000,8000,6000,6000,10000,8000,5000,10000,9000,13000,12000,6000,13000,15000,5000,8000,500;
- npcshopdelitem "V_LBRO",501;
- if(getarraysize($V_item1) >= 1) {
- npcshopitem "V_LBRO",$V_item1[0],$V_custo1[0];
- for (set .@i,1; .@i < getarraysize($V_item1); set .@i,.@i+1) {
- npcshopadditem "V_LBRO",$V_item1[.@i],$V_custo1[.@i];
- }
- }
- end;
- }
- prontera,150,150,4 script Lojinha do LBRO 807,{
- mes "["+strnpcinfo(1)+"]";
- mes "Para comprar itens é preciso ter ^ff0000LBRO Point's^000000";
- mes "Faça pequena doação para nosso servidor e obtenhas!";
- close2;
- callshop "V_LBRO",1;
- end;
- OnInit:
- npcshopattach "V_LBRO",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_bonuscusto1",@bought_nameid[.@i]);
- if ( countitem(7466) < @cost*@bought_quantity[.@i]) {
- dispbottom "Você não tem Emblemas suficiente!";
- } else {
- delitem 7466,@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_bonuscusto1 {
- for(set .@i,0; .@i < getarraysize($V_item1); set .@i,.@i+1) {
- if($V_item1[.@i] == getarg(0)) {
- return $V_custo1[.@i];
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment