viewing paste Unknown #12407 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
//======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",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 "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
Viewed 800 times, submitted by karazu.