Jump to content
  • 0

Vending Rows in Pront


Ron

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

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

Link to comment
Share on other sites

18 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

But I want those specific rows to be vend-able.

How would that work out?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Check your scripts carefully and see db/const.txt.

There is no cell_vending.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

I just checked

And I even checked the svn

All I found was..

mf_novending 41

cell_novending 6

cell_chknovending 12

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

setcell "prontera",139,129,139,173,cell_vending,0;

The first line worked, the second line didn't.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Yeah.. and thats where it picked up the error.

So what would be a way to fix it / alternative.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

just change

cell_vending

to

cell_novending

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Wouldn't that mean that you basically wont be able to vend on those cells?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

Flag is a yes/no value, so it either enables or disables a setting.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

0 = Vending is allowed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Alright.. I will try it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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! =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

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.

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