Jump to content
  • 0

Somebody Help Me Please


President

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

i wanna request to my vending city, like this...Please.jpg

I wanna all my player , vending in one line same with Ghostring

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  10
  • Reputation:   2
  • Joined:  05/09/12
  • Last Seen:  

Hi nyoonyoto,

I believe this is an answer to your question? If there is a better answer anyone please post.

Quoting from script_commands.txt

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

Each map cell has several 'flags' that specify the properties of that cell.

These include terrain properties (walkability, shootability, presence of water),

skills (basilica, land protector, ...) and other (NPC nearby, no vending, ...).

Each of these can be 'on' or 'off'. Together they define a cell's behavior.

This command lets you alter these flags for all map cells in the specified

(x1,y1)-(x2,y2) rectangle. The 'flag' can be 0 or 1 (0:clear flag, 1:set flag).

The 'type' defines which flag to modify. Possible options include cell_walkable,

cell_shootable, cell_basilica. For a full list, see const.txt.

Basically set the map to have the novending mapflag and then have an npc "set cells" on which cells you can vend on using the x1-x2, y1-y2.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

Hi nyoonyoto,

I believe this is an answer to your question? If there is a better answer anyone please post.

Quoting from script_commands.txt

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

Each map cell has several 'flags' that specify the properties of that cell.

These include terrain properties (walkability, shootability, presence of water),

skills (basilica, land protector, ...) and other (NPC nearby, no vending, ...).

Each of these can be 'on' or 'off'. Together they define a cell's behavior.

This command lets you alter these flags for all map cells in the specified

(x1,y1)-(x2,y2) rectangle. The 'flag' can be 0 or 1 (0:clear flag, 1:set flag).

The 'type' defines which flag to modify. Possible options include cell_walkable,

cell_shootable, cell_basilica. For a full list, see const.txt.

Basically set the map to have the novending mapflag and then have an npc "set cells" on which cells you can vend on using the x1-x2, y1-y2.

do you have any example script sir?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

Into conf/mapflarg/novending add:

payon mapflag novending

So put some lines like this one in a npc file:

setcell "payon",0,0,0,300,novending,0;

// in this case, every cells from 0,0 up to 0, 300 will be able to use vending, in a vertical line

x is horizontal

y is vertical

x1 where should start

x2 where should end

the same with y1 and y2

1,1,2,2

||

||

1,1,1,5

|

|

|

|

|

You just have to go up to the place you want to start and finish and use /where to check x and y.

Edited by MarkZD
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...