Jump to content
  • 0

[Supp/Help] Setcell


Azeroth

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Hi, i would like to ask for support how can i exactly make it work out, using "Setcell" i have a little event on my server. how can i make setcell enabled and disabled here is how it works as you can see in the picture  there is arrow pointed on the line where that area your not allowed to enter UNLESS you will kill all the barricades. after you kill all the barricades the setcell will disabled and player can enter in the middle.

Image:

post-3539-0-29061400-1435871478_thumb.png

Olrox for the Amazing Map i purchased before.

 

 

I'm using this script but i fail on this:

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



Example:



    setcell "arena",0,0,300,300,cell_basilica,1;

    setcell "arena",140,140,160,160,cell_basilica,0;

    setcell "arena",135,135,165,165,cell_walkable,0;

    setcell "arena",140,140,160,160,cell_walkable,1;



This will add a makeshift ring into the center of the map. The ring will be

surrounded by a 5-cell wide 'gap' to prevent interference from outside, and

the rest of the map will be marked as 'basilica', preventing observers from

casting any offensive skills or fighting among themselves. Note that the wall

will not be shown nor known client-side, which may cause movement problems.



Another example:



OnBarricadeDeploy:

    setcell "schg_cas05",114,51,125,51,cell_walkable,0;

    end;

OnBarricadeBreak:

    setcell "schg_cas05",114,51,125,51,cell_walkable,1;

    end;



This could be a part of the WoE:SE script, where attackers are not allowed

to proceed until all barricades are destroyed. This script would place and

remove a nonwalkable row of cells after the barricade mobs.

Hopefully can some help me working with this.

Thank you in advance.
 

 

Azeroth

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

Hi, i would like to ask for support how can i exactly make it work out, using "Setcell" i have a little event on my server. how can i make setcell enabled and disabled here is how it works as you can see in the picture  there is arrow pointed on the line where that area your not allowed to enter UNLESS you will kill all the barricades. after you kill all the barricades the setcell will disabled and player can enter in the middle.

Image:

attachicon.gifUntitled`.png

Olrox for the Amazing Map i purchased before.

 

 

I'm using this script but i fail on this:

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



Example:



    setcell "arena",0,0,300,300,cell_basilica,1;

    setcell "arena",140,140,160,160,cell_basilica,0;

    setcell "arena",135,135,165,165,cell_walkable,0;

    setcell "arena",140,140,160,160,cell_walkable,1;



This will add a makeshift ring into the center of the map. The ring will be

surrounded by a 5-cell wide 'gap' to prevent interference from outside, and

the rest of the map will be marked as 'basilica', preventing observers from

casting any offensive skills or fighting among themselves. Note that the wall

will not be shown nor known client-side, which may cause movement problems.



Another example:



OnBarricadeDeploy:

    setcell "schg_cas05",114,51,125,51,cell_walkable,0;

    end;

OnBarricadeBreak:

    setcell "schg_cas05",114,51,125,51,cell_walkable,1;

    end;



This could be a part of the WoE:SE script, where attackers are not allowed

to proceed until all barricades are destroyed. This script would place and

remove a nonwalkable row of cells after the barricade mobs.

Hopefully can some help me working with this.

Thank you in advance.

 

 

Azeroth

 

I have experience on this. If u dont have a script skills u will be collapse in one sec. LOL

 

I think, u can use WOE SE scripts as a base. Because they have a barricade. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

 

Hi, i would like to ask for support how can i exactly make it work out, using "Setcell" i have a little event on my server. how can i make setcell enabled and disabled here is how it works as you can see in the picture  there is arrow pointed on the line where that area your not allowed to enter UNLESS you will kill all the barricades. after you kill all the barricades the setcell will disabled and player can enter in the middle.

Image:

attachicon.gifUntitled`.png

Olrox for the Amazing Map i purchased before.

 

 

I'm using this script but i fail on this:

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



Example:



    setcell "arena",0,0,300,300,cell_basilica,1;

    setcell "arena",140,140,160,160,cell_basilica,0;

    setcell "arena",135,135,165,165,cell_walkable,0;

    setcell "arena",140,140,160,160,cell_walkable,1;



This will add a makeshift ring into the center of the map. The ring will be

surrounded by a 5-cell wide 'gap' to prevent interference from outside, and

the rest of the map will be marked as 'basilica', preventing observers from

casting any offensive skills or fighting among themselves. Note that the wall

will not be shown nor known client-side, which may cause movement problems.



Another example:



OnBarricadeDeploy:

    setcell "schg_cas05",114,51,125,51,cell_walkable,0;

    end;

OnBarricadeBreak:

    setcell "schg_cas05",114,51,125,51,cell_walkable,1;

    end;



This could be a part of the WoE:SE script, where attackers are not allowed

to proceed until all barricades are destroyed. This script would place and

remove a nonwalkable row of cells after the barricade mobs.

Hopefully can some help me working with this.

Thank you in advance.

 

 

Azeroth

 

I have experience on this. If u dont have a script skills u will be collapse in one sec. LOL

 

I think, u can use WOE SE scripts as a base. Because they have a barricade. 

 

 

 

A little i have :3 well i'll try to look up in the WoE SE. might the script can help me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Just use setwall and delwall.

 


  • setwall "<map name>",<x>,<y>,<size>,<dir>,<shootable>,"<wallname>";
  • Directions are the same as NPC sprite facing directions: 0=north, 1=northwest, 2=west, etc.

 

setwall "schg_cas06",114,48,13,6,0,"EventWall1";

delwall "EventWall1";

 

Add the delwall to a OnMyMobDead event.

Edited by Nova
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

 

Just use setwall and delwall.
 
  • setwall "<map name>",<x>,<y>,<size>,<dir>,<shootable>,"<wallname>";
  • Directions are the same as NPC sprite facing directions: 0=north, 1=northwest, 2=west, etc.
 
setwall "schg_cas06",114,48,13,6,0,"EventWall1";
delwall "EventWall1";
 
Add the delwall to a OnMyMobDead event.

 

 

Yeah probably i'm gonna try this i'll let you know if it is work.

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