Jump to content
  • 0
Sign in to follow this  
Dev G Inc

Vend Control Error

Question


Using the latest rathena February 2019.

Added this script. Encountered 2 types of errors

Only changes i've made is to change the map from mellina to prontera and define the x and y coordinates.

Any info would be greatly appreciated.

DevG

vend error.PNG

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
13 hours ago, LordeWhiplash said:

hi, i'm having the exact same problem, did you resolved that? thanks

Change all 

getmapxy( [email protected]ap$,[email protected],[email protected],1 );

to 

getmapxy( [email protected]$,[email protected],[email protected],BL_NPC );

 

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, Dev G Inc said:


Using the latest rathena February 2019.

Added this script. Encountered 2 types of errors

Only changes i've made is to change the map from mellina to prontera and define the x and y coordinates.

Any info would be greatly appreciated.

DevG

vend error.PNG

can you post your script

Share this post


Link to post
Share on other sites
  • 0
On 3/24/2019 at 11:55 PM, behemothcze said:

can you post your script

prontera,140,151,3    script    Vending Helper#1    757,{
for( set [email protected],1; [email protected] <= .count; set [email protected],[email protected] + 1 ){
    getmapxy( [email protected]$,[email protected],[email protected],1,"#vend_slot"[email protected] );
    if( !getareausers( .map$,[email protected],[email protected],[email protected],[email protected] ) && [email protected] > 1 && [email protected] > 1 ){
        set [email protected],[email protected] + 1;
        set [email protected]$,[email protected]$ + "Slot - "[email protected]+":";
    }else{
        set [email protected]$,[email protected]$ + ":";
    }
}

if( [email protected] ){
    mes "Dont have any available slot.";
}else if( !getskilllv("MC_VENDING") ){
    mes "You dont have ^0055FFVending Skill^000000.";
}else{
    mes "Available Slot : "[email protected];
    mes "Please select a slot to vending.";
    set [email protected],select( [email protected]$ );
    getmapxy( [email protected]$,[email protected],[email protected],1,"#vend_slot"[email protected] );
    if( [email protected] == 1 || [email protected] == 1 ){
        mes "This NPC at invalid location...";
    }else{
        warp [email protected]$,[email protected],[email protected];
        hideonnpc "#vend_slot"[email protected];
    }
}
close;

OnInit:
sleep 1000;
// Map for vending
set .map$,"prontera";
setcell .map$,0,0,300,300,cell_novending,1;

// x and y horizone ..
setarray .x_line,148,151,154,157,160,163;
setarray .y_line,155,152,149,146,143,140;

set .x_line_size,getarraysize( .x_line );
set .y_line_size,getarraysize( .y_line );
set .count,1;
for( set [email protected],0; [email protected] < .x_line_size; set [email protected],[email protected] + 1 )
    for( set [email protected],0; [email protected] < .y_line_size; set [email protected],[email protected] + 1 )
        if( checkcell( .map$,.x_line[[email protected]],.y_line[[email protected]],cell_chkpass ) ){
            movenpc "#vend_slot"+.count,.x_line[[email protected]],.y_line[[email protected]];
            setcell .map$,.x_line[[email protected]],.y_line[[email protected]],.x_line[[email protected]],.y_line[[email protected]],cell_novending,0;
            set .count,.count + 1;
        }
npctalk "Vending Spot : "+.count;
donpcevent "::OnSetup";
end;
}

-    script    vend_slot    -1,{
getmapxy( [email protected]$,[email protected],[email protected],1 );
if( !getskilllv("MC_VENDING") ){
    mes "You dont have ^0055FFVending Skill^000000.";
}else if( getareausers( [email protected]$,[email protected],[email protected],[email protected],[email protected] ) ){
    mes "Someone already selected this spot.";
}else{
    mes "Spot : ^777777Available^000000";
    mes "^0055FF[ Vending Area Rules ]^000000";
    mes "^FF0000 ~ Use proper Shop Name.^000000";
    mes "^FF0000 ~ Never sell Junk/Gifts.^000000";
    mes " ";
    mes "^777777Player will failed to follow these will be punished.^000000";
    if( select( "Select this Spot","Cancel" ) == 1 ){
        warp [email protected]$,[email protected],[email protected];
        hideonnpc strnpcinfo(0);
    }
}
close;

OnSetup:
getmapxy( [email protected]$,[email protected],[email protected],1 );
set [email protected]$,strnpcinfo(0);
while( [email protected]$ != "" ){
    if( getareausers( [email protected]$,[email protected],[email protected],[email protected],[email protected] ) ){
        hideonnpc [email protected]$;
    }else{
        hideoffnpc [email protected]$;
        // specialeffect 313;
    }
    sleep 5000;
}
end;
}

// Add more if needed.
prontera,1,1,4    duplicate(vend_slot)    #vend_slot1    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot2    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot3    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot4    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot5    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot6    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot7    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot8    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot9    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot10    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot11    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot12    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot13    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot14    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot15    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot16    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot17    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot18    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot19    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot20    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot21    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot22    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot23    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot24    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot25    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot26    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot27    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot28    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot29    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot30    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot31    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot32    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot33    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot34    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot35    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot36    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot37    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot38    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot39    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot40    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot41    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot42    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot43    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot44    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot45    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot46    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot47    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot48    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot49    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot50    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot51    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot52    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot53    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot54    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot55    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot56    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot57    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot58    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot59    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot60    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot61    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot62    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot63    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot64    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot65    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot66    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot67    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot68    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot69    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot70    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot71    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot72    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot73    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot74    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot75    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot76    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot77    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot78    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot79    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot80    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot81    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot82    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot83    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot84    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot85    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot86    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot87    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot88    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot89    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot90    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot91    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot92    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot93    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot94    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot95    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot96    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot97    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot98    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot99    858
prontera,1,1,4    duplicate(vend_slot)    #vend_slot100    858

 

Edited by Emistry
Please use codebox.

Share this post


Link to post
Share on other sites
  • 0

I have a problem on this when i click the vendor assistant or even the vending area it said that 

Quote

Someone already selected this area?

but there is no vendors around it

Share this post


Link to post
Share on other sites
  • 0

hi, i'm having the exact same problem, did you resolved that? thanks

On 4/8/2020 at 8:58 PM, Patskie said:

thank you very much!

thank you!

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

Sign in to follow this  

×
×
  • Create New...

Important Information

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