Jump to content
  • 0

Vending script help


dev

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   3
  • Joined:  12/06/16
  • Last Seen:  

 // Map for vending
set .map$,"vend_zone";
//setcell .map$,0,0,284,365,cell_novending,1;

// x and y horizone ..
setarray .x_line,104,107,110,113,113,113,113;
setarray .y_line,113,113,113,113,110,107,104;

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;
        }
npctalk "Vending Spot : "+.count;
donpcevent "::OnSetup";
end;

 

NEED HELP IN MODIFICATION IN SCRIPT SUCH THAT SLOT SHOULD BE IN PARTICULAR CELL ONLY...

 

Capture.PNG

Capture1.PNG

full script.txt

Edited by dev
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...