Jump to content
  • 0
Thyr

Enable Vending Skill in specific area

Question

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

-    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

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.