Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //======Name========================================
- // Mini Mart
- //======Version=====================================
- // 1.0
- //======Author(s)===================================
- // Sandbox
- //======Comments====================================
- // This serves as a portable tool dealer..
- // For players who are too busy or lazy
- // going back to town just to restock their supplies
- // or sell their junk
- //==================================================
- - script minimart -1,{
- OnInit:
- bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40;
- //Disabled on WoE maps? 1 = Yes, 0 = No
- set .WoeCheck,0;
- //Disabled on PvP maps? 1 = Yes, 0 = No
- set .PvpCheck,0;
- end;
- OnAtcommand:
- if(.WoeCheck == 1 && getmapflag(strcharinfo(3),mf_gvg)) {
- message strcharinfo(0),"You cannot use this command on GvG maps.";
- end;
- }
- else if (.PvpCheck == 1 && getmapflag(strcharinfo(3),mf_pvp)){
- message strcharinfo(0),"You cannot use this command on PvP maps.";
- end;
- }
- callshop "mini_mart",0;
- end;
- }
- //Modify to your liking, by default it sells like the Tool Dealer
- - 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