im having trouble with Emistry's script for vending control, the cell that's supposed to allow me for vending, it didnt allow me to do so, here's the script that i've edited
OnInit:
sleep 1000;
// Map for vending
.map$ = strnpcinfo(4);
setcell .map$, 0, 0, 300, 300, cell_novending, 1;
// x and y horizone ..
setarray .x_line, 142, 146, 150, 154, 158, 162, 166;
setarray .y_line, 230, 228, 226, 224, 222, 220, 218, 216, 214, 212, 210, 208, 206, 204, 202, 200, 198, 196, 194, 192;
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;
}
everytime i go to the spot for vending and using vending skill, it gives me this error :
Question
nekoyarou
Hi all,
im having trouble with Emistry's script for vending control, the cell that's supposed to allow me for vending, it didnt allow me to do so, here's the script that i've edited
everytime i go to the spot for vending and using vending skill, it gives me this error :
can anyone point me to where i do wrong?.
Thanks in advance~
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.