Enable Vending Skill in specific area

Thyr

New member
Messages
78
Points
0
Github
warcraftfrozen
Hello, I need help to make my vending line works. I set the map a novending and use the setcell (cell_novending,0;) to bypass the novending mapflag and it still not working

Here's my script

Code:
-    script    yesvend    FAKE_NPC,{
    OnInit:
    setcell "turbo_room",90,110,90,82,cell_novending,0; // Line 1
    setcell "turbo_room",96,110,96,82,cell_novending,0; // Line 2
    setcell "turbo_room",103,110,103,82,cell_novending,0; // Line 3
    setcell "turbo_room",109,110,109,82,cell_novending,0; // Line 4
}

turbo_room,90,111,5    script    Vending Lane    4_BULLETIN_BOARD2,{
mes "[^0000FFMarket Main^000000]";
mes "You can only use ^008A93Vending Skill^000000 in this lane.";
close;
}
turbo_room,96,111,5    duplicate(Vending Lane)    Vending Lane#2    4_BULLETIN_BOARD2
turbo_room,103,111,5    duplicate(Vending Lane)    Vending Lane#3    4_BULLETIN_BOARD2
turbo_room,109,111,5    duplicate(Vending Lane)    Vending Lane#4    4_BULLETIN_BOARD2

turbo_room    mapflag    novending
 
In buyingstore.c the map flag has precedence over cell flags so if novending is true for the map it won't even bother checking the cells. A workaround would be to setcell the whole map with novending, and then using setcell to remove novending on the cells you want to allow

 
Back
Top