Jump to content
  • 0

Vending Rows in Pront


Question

Posted

prontera,1,1,1 script NoVends -1,{

OnInit:

setcell "prontera",1,1,312,392,cell_novending,1;

setcell "prontera",139,129,139,173,cell_vending,0; // Line 1

setcell "prontera",141,129,141,173,cell_vending,0; // Line 2

setcell "prontera",143,158,143,173,cell_vending,0; // Line 3

setcell "prontera",145,158,145,173,cell_vending,0; // Line 4

setcell "prontera",147,130,147,173,cell_vending,0; // Line 5

setcell "prontera",164,130,164,173,cell_vending,0; // Line 6

end;

}

Using this script ^

I tried switching it to vise-versa it from 1 to 0 but nothing i get this error;

[Debug]: Data: string value="prontera"

[Debug]: Data: number value=139

[Debug]: Data: number value=129

[Debug]: Data: number value=139

[Debug]: Data: number value=173

[Debug]: Data: variable name='cell_vending'

[Debug]: Data: number value=0

[Debug]: Source (NPC): NoVends at prontera (1,1)

[Warning]: script:get_val: cannot access player variable 'cell_vending', defaulting to 0

18 answers to this question

Recommended Posts

Posted (edited)

Try this.

prontera,1,1,1 script NoChatVendPront -1,{
OnWhisperGlobal:
OnInit:

setcell "prontera",1,1,312,392,cell_novending,1;
setcell "prontera",139,129,139,173,cell_vending,0; // Line 1
setcell "prontera",141,129,141,173,cell_vending,0; // Line 2
setcell "prontera",143,158,143,173,cell_vending,0; // Line 3
setcell "prontera",145,158,145,173,cell_vending,0; // Line 4
setcell "prontera",147,130,147,173,cell_vending,0; // Line 5
setcell "prontera",164,130,164,173,cell_vending,0; // Line 6

}

Edited by Reafer
Posted

How would it work if its not on the list: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/const.txt

Same error.

[Debug]: Data: string value="prontera"

[Debug]: Data: number value=139

[Debug]: Data: number value=129

[Debug]: Data: number value=139

[Debug]: Data: number value=173

[Debug]: Data: variable name='cell_vending'

[Debug]: Data: number value=0

[Debug]: Source (NPC): NoVends at prontera (1,1)

[Warning]: script:get_val: cannot access player variable 'cell_vending', defaulting to 0

Posted

prontera,1,1,1 script NoVends -1,{

OnInit:

setcell "prontera",1,1,312,392,cell_novending,0;

setcell "prontera",139,129,139,173,cell_novending,0; // Line 1

setcell "prontera",141,129,141,173,cell_novending,0; // Line 2

setcell "prontera",143,158,143,173,cell_novending,0; // Line 3

setcell "prontera",145,158,145,173,cell_novending,0; // Line 4

setcell "prontera",147,130,147,173,cell_novending,0; // Line 5

setcell "prontera",164,130,164,173,cell_novending,0; // Line 6

end;

}

And I assume disable = 0?

Posted

- script Vending Engine -1,{

end;

OnInit:

setcell "market",95,141,95,141,cell_novending,0;

end;

}

market mapflag autotrade

market mapflag novending

market mapflag nopenalty

market mapflag noteleport

market mapflag nobranch

market mapflag nightenabled

i tried this but seems not working?

the map has a mapflag - 'novending' as u can see in the script.

and cell_novending is set to flag 0, so it should be vendable in cell 95,141, right?

but it's not working on me. xD need some help.

Posted

remove the mapflag for novending and try this in ur script

setcell "market",0,0,512,512,cell_novending,1;
setcell "market",95,141,95,141,cell_novending,0;

if error on the coordinate range..just set the maximum size of that map in the 1st line

  • Upvote 1
Posted

remove the mapflag for novending and try this in ur script

setcell "market",0,0,512,512,cell_novending,1;
setcell "market",95,141,95,141,cell_novending,0;

if error on the coordinate range..just set the maximum size of that map in the 1st line

Thx E! pro as always! =)

Posted

Sorry to ask this very noob question.

*setcell "<map name>",<x1>,<y1>,<x2>,<y2>,<type>,<flag>;

I do understand the script except for this <x1>,<y1>,<x2>,<y2> or more likely I'm saying that I can't achieve this kind of marketplace.

post-7888-0-71982700-1348042083_thumb.png

The x are the vendors and see how organized they should be.

Thanks in advance.

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