wow my players love it !
they also asked and i wonder too, if i can duplicate this script to make something ike @ammo so they type that and then buy arrows or bullets, or for example o have a lot of shops npc, let's say i want to make it @alchemist and then they will open a shop with alchemist items o: ?
for example it would be like this right o:?
//======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 AlchemistShop -1,{
OnInit:
bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",0,40;
//Disabled on WoE maps? 1 = Yes, 0 = No
set .WoeCheck,1;
//Disabled on PvP maps? 1 = Yes, 0 = No
set .PvpCheck,1;
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 "AlchemistShop",0;
end;
}
//Modify to your liking, by default it sells like the Tool Dealer
- shop AlchemistShop -1,7134:-1,501:-1,502:-1,503:-1,504:-1,505:-1,657:-1,545:-1,546:-1,547:-1,921:-1,905:-1,7144:-1,1093:-1,507:-1,508:-1,509:-1,510:-1,911:-1,7133:-1,1092:-1,952:-1,1017:-1,708:-1,713:-1,518:-1,704:-1,7434:-1,716:-1,1012:-1,717:-1,950:-1,715:-1,7126:-1,1057:-1,7127:-1,7033:-1,7128:-1,1059:-1,7129:-1,929:-1,7130:-1,1032:-1,7131:-1,1050:-1,1051:-1,7132:-1,950:-1,1044:-1,7144:-1,7140:-1,7141:-1,7143:-1,7136:10000,7135:10000,1061:-1
o:!