Jump to content
  • 0

Vendor Controls not working


Question

Posted

Hello , It's not working the two version , I can see the spots and I can talk to it normally , but when try to use the vending skill it tell me that I can't open shop in this area , I don't use mapflag or something just the mapflag of the script [ I'm using the latest version of rAthena ] 

No errors or bugs 

I think the problem is in this line 

setcell .map$,.x_line[.@x],.y_line[.@y],.x_line[.@x],.y_line[.@y],cell_novending,0;

Maybe the server not able to set the cell noveding to 0 after we set the whole map to 1 

Any help please?

3 answers to this question

Recommended Posts

  • 0
Posted

i am having the same problem can someone explain to us on this part to able us to set the mapflag no vending spots correctly?

setcell .map$, 0, 0, 300, 300, cell_novending, 1;

    // x and y horizone ..
    setarray .x_line, 52, 49, 46, 43, 40;
    setarray .y_line, 68, 71, 74, 77, 65, 62;

    set .x_line_size, getarraysize(.x_line);
    set .y_line_size, getarraysize(.y_line);
    set .count, 1;
    for (set .@x, 0; .@x < .x_line_size; set .@x, .@x + 1)
        for (set .@y, 0; .@y < .y_line_size; set .@y, .@y + 1)
            if (checkcell(.map$, .x_line[.@x], .y_line[.@y], cell_chkpass)) {
                movenpc "#vend_slot"+.count, .x_line[.@x], .y_line[.@y];
                setcell .map$, .x_line[.@x], .y_line[.@y], .x_line[.@x], .y_line[.@y], cell_novending, 0;
                set .count, .count + 1;

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...