Setwall

From Hercules Wiki
Revision as of 06:30, 6 November 2013 by Via (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Syntax

  • setwall "<map name>",<x>,<y>,<size>,<dir>,<shootable>,"<wallname>";
  • delwall "<wallname>";

Description

Creates an invisible wall, an array of "setcell" starting from x,y and doing a line of the given size in the given direction. The difference with setcell is this one updates the client part too, to avoid the glitch problem. Directions are the same as NPC sprite facing directions: 0=north, 1=northwest, 2=west, etc.

Examples

-	script	setwall	-1,{
	end;
OnInit:
	setwall "prontera",64,102,4,2,0,"PrtWall";
}

See Also