brendorox

Untitled

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