brendorox

Untitled

Aug 14th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. - shop V_Guerra 139,501:-1 // Não mecha NUNCA aqui!
  2.  
  3. - script shop_conf#01 -1,{
  4. end;
  5.  
  6. OnInit:
  7. 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;
  8. 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;
  9.  
  10. npcshopdelitem "V_Guerra",501;
  11. if(getarraysize($V_item) >= 1) {
  12. npcshopitem "V_Guerra",$V_item[0],$V_custo[0];
  13. for (set .@i,1; .@i < getarraysize($V_item); set .@i,.@i+1) {
  14. npcshopadditem "V_Guerra",$V_item[.@i],$V_custo[.@i];
  15. }
  16. }
  17. end;
  18. }
  19.  
  20.  
  21.  
  22. prontera,164,170,5 script Lojinha do SEURO 935,{
  23.  
  24. mes "["+strnpcinfo(1)+"]";
  25. mes "Para comprar itens é preciso ter ^ff0000Eventos Point's^000000";
  26. mes "Faça pequena doação para nosso servidor e obtenhas!";
  27. close2;
  28. callshop "V_Guerra",1;
  29. end;
  30.  
  31. OnInit:
  32. npcshopattach "V_Guerra",1;
  33. end;
  34.  
  35. OnBuyItem:
  36. mes "["+strnpcinfo(1)+"]";
  37. mes "Voce Quer Mesmo Concluir a Compra?";
  38. mes "^FF0000Lembre-se!!:^000000";
  39. mes "A habilidade ^0000FFDesconto^000000 Não funciona neste NPC!";
  40. next;
  41. if(select("Concluir:Cancelar")==2) {
  42. mes "["+strnpcinfo(1)+"]";
  43. mes "Compra cancelada com sucesso!";
  44. close;
  45. }
  46. close2;
  47. for (set .@i,0; .@i < getarraysize(@bought_nameid); set .@i,.@i+1) {
  48. set @cost,callfunc("V_bonuscusto",@bought_nameid[.@i]);
  49. if ( countitem(7468) < @cost*@bought_quantity[.@i]) {
  50. dispbottom "Você não tem lbRO Point's suficiente!";
  51. } else {
  52. delitem 7468,@cost*@bought_quantity[.@i];
  53. additem @bought_nameid[.@i],@bought_quantity[.@i];
  54. dispbottom "Obrigado por comprar, volte sempre!";
  55. }
  56. }
  57. deletearray @bought_nameid[0],getarraysize(@bought_nameid);
  58. deletearray @bought_quantity[0],getarraysize(@bought_quantity);
  59. end;
  60. }
  61.  
  62. function script V_bonuscusto {
  63. for(set .@i,0; .@i < getarraysize($V_item); set .@i,.@i+1) {
  64. if($V_item[.@i] == getarg(0)) {
  65. return $V_custo[.@i];
  66. }
  67. }
  68. return;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment