Jump to content
  • 0

Vendor Controls not working


Diana

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

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?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

@Emistry Please can you help?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

try to use @mapinfo 
and see tha mapflag

Link to comment
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.   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.

×
×
  • Create New...