• 0
Sign in to follow this  
President

Somebody Help Me Please

Question

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

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this