Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2014
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. //======Name========================================
  2. // Mini Mart
  3. //======Version=====================================
  4. // 1.0
  5. //======Author(s)===================================
  6. // Sandbox
  7. //======Comments====================================
  8. // This serves as a portable tool dealer..
  9. // For players who are too busy or lazy
  10. // going back to town just to restock their supplies
  11. // or sell their junk
  12. //==================================================
  13.  
  14.  
  15.  
  16. - script minimart -1,{
  17.  
  18. OnInit:
  19.  
  20. bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40;
  21.  
  22. //Disabled on WoE maps? 1 = Yes, 0 = No
  23. set .WoeCheck,0;
  24.  
  25. //Disabled on PvP maps? 1 = Yes, 0 = No
  26. set .PvpCheck,0;
  27.  
  28. end;
  29.  
  30. OnAtcommand:
  31.  
  32. if(.WoeCheck == 1 && getmapflag(strcharinfo(3),mf_gvg)) {
  33. message strcharinfo(0),"You cannot use this command on GvG maps.";
  34. end;
  35. }
  36. else if (.PvpCheck == 1 && getmapflag(strcharinfo(3),mf_pvp)){
  37. message strcharinfo(0),"You cannot use this command on PvP maps.";
  38. end;
  39. }
  40.  
  41. callshop "mini_mart",0;
  42. end;
  43.  
  44. }
  45.  
  46.  
  47. //Modify to your liking, by default it sells like the Tool Dealer
  48. - shop mini_mart -1,1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement