brendorox

Untitled

Aug 28th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. - shop V_RH 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],5531,5291,5376,5210,5361,5137,5314,5564,5490,5362,5563,12085,12090,12095,12100,12075,12080;
  8. setarray $V_custo1[0],1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,10,10,10,10,10,10;
  9.  
  10. npcshopdelitem "V_RH",501;
  11. if(getarraysize($V_item1) >= 1) {
  12. npcshopitem "V_RH",$V_item1[0],$V_custo1[0];
  13. for (set .@i,1; .@i < getarraysize($V_item1); set .@i,.@i+1) {
  14. npcshopadditem "V_RH",$V_item1[.@i],$V_custo1[.@i];
  15. }
  16. }
  17. end;
  18. }
  19.  
  20.  
  21. prontera,150,150,4 script Lojinha dos Eventos 807,{
  22.  
  23. mes "["+strnpcinfo(1)+"]";
  24. mes "Para comprar itens é preciso ter ^ff0000Ticket de Donates^000000";
  25. mes "Doe ao Servidor e Obtenhas itens á se vendido por mim!";
  26. close2;
  27. callshop "V_RH",1;
  28. end;
  29.  
  30. OnInit:
  31. npcshopattach "V_RH",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(999) < @cost*@bought_quantity[.@i]) {
  49. dispbottom "Você não tem Ticket de Eventos suficiente!";
  50. } else {
  51. delitem 999,@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