Loading...   

This is a 1-1 temporary paste from the old wiki until a formal page can be made


Table

CREATE TABLE traps (
id int(11) NOT NULL auto_increment,
zone varchar(16) NOT NULL default ,
x int(11) NOT NULL default '0',
y int(11) NOT NULL default '0',
z int(11) NOT NULL default '0',
chance tinyint NOT NULL default '0',
maxzdiff float NOT NULL default '0',
radius float NOT NULL default '0',
effect int(11) NOT NULL default '0',
effectvalue int(11) NOT NULL default '0',
effectvalue2 int(11) NOT NULL default '0',
message varcahr(200) NOT NULL;
skill int(11) NOT NULL default '0',
level mediumint(4) NOT NULL default '1',
respawn_time int(11) NOT NULL default '60',
respawn_var int(11) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;

ID
The ID of the trap.

Zone
The zone the trap is located at. Use the short_name (eg. qeynos2).

X Coordinate
The x coordinate of the trap.

Y Coordinate
The y coordinate of the trap.

Z Coordinate
The z coordinate of the trap.

Chance
The chance that someone triggers the trap. 1-100

MaxZDiff
The max z difference to the trap to get a chance to trigger it.

Radius
The radius around the given coordinates of a trap to get a chance to trigger it.

Effect
The type of trap.

Effectvalue
A variable used for the trap.

Effectvalue2
A variable used for the trap.

Message
Optional possibility to add a custom message for the trap. If it's not set, the standard message will be used.

Skill
The skill needed to disarm the trap.

Level
The actual level of the trap, useful for casting traps, doesn't matter for others.

Respawn Time
The time it takes to respawn this trap in seconds.

Respawn Variable Time
Random time in seconds added to the static respawn time that it takes this trap to respawn..

Traps
(casting trap) Casting Trap
This trap requires a trap NPC and casts a spell on the player who triggered it.
effect: 0
effectvalue: spellid of the casted spell.. 
effectvalue2: unused.

(alarm trap) Alarm Trap
An alarm trap that causes npcs to agro the player who triggered it.
effect: 1
effectvalue: range around the trap that is affected 
effectvalue2: toggles between 0 = everything will agro and 1 = only kos NPCs will agro

(npc trap) NPC Trap
This trap spawns x NPCs at a close spot. (small area)
effect: 2
effectvalue: npc_types.id of the mob that is spawned
effectvalue2: number of npcs spawned

(npc trap) NPC Trap2
This trap spawns x NPCs at a close spot. (large area)
effect: 3
effectvalue: npc_types.id of the mob that is spawned
effectvalue2: number of npcs spawned

(damage trap) Damage Trap
A trap causing x amount of non-melee dmg.
effect: 4
effectvalue: min amount of damage
effectvalue2: max amount of damage