-
Notifications
You must be signed in to change notification settings - Fork 5
Spawn functions
All functions are described in the Spawn
class in the file lib/spawn.js.
Function arguments: item
, angle
, distance
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://tera.argonqueen.org/items. |
angle | Number | Offset angle relative to binding point (e.g. boss). |
distance | Number | Offset distance relative to binding point (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
{ type: "spawn", func: "item", args: [
88704, // item
0, // angle
100, // distance
0, // delay
2000 // duration
] }
Function arguments: target
, angle
, distance
, delay
, duration
, highlight
, label
Argument | Value | Usage |
---|---|---|
target | true, false | Using dest instead of loc when defining an binding point. |
angle | Number | Offset angle relative to binding point (e.g. boss). |
distance | Number | Offset distance relative to binding point (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
highlight | true, false | Turn on the highlight marker. |
label | [String, String], null | Array of text label. |
{ type: "spawn", func: "marker", args: [
false, // target
0, // angle
100, // distance
0, // delay
2000, // duration
true, // highlight
["Test", "Marker"] // label
] }
Function arguments: item
, angle
, distance
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/. |
angle | Number | Offset angle relative to binding point (e.g. boss). |
distance | Number | Offset distance relative to binding point (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
{ type: "spawn", func: "point", args: [
537, // item
0, // angle
100, // distance
0, // delay
2000 // duration
] }
Function arguments: item
, offsetAngle
, offsetDistance
, angle
, length
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/. |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss). |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units). |
angle | Number | Angle of the vector direction. |
length | Number | The length of the vector in units (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
{ type: "spawn", func: "vector", args: [
553, // item
0, // offsetAngle
0, // offsetDistance
0, // angle
300, // length
0, // delay
2000 // duration
] }
Function arguments: target
, item
, offsetAngle
, offsetDistance
, interval
, radius
, delay
, duration
Argument | Value | Usage |
---|---|---|
target | true, false | Using dest instead of loc when defining an binding point. |
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/. |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss). |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units). |
interval | Number | The factor of the multiplicity of items in a circle (less value – more items). If null is specified, it will be calculated automatically. |
radius | Number | The radius of the circle in units (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
{ type: "spawn", func: "circle", args: [
true, // target
553, // item
0, // offsetAngle
0, // offsetDistance
null, // interval
250, // radius
0, // delay
2000 // duration
] }
Function arguments: degree1
, degree2
, item
, offsetAngle
, offsetDistance
, interval
, radius
, delay
, duration
Argument | Value | Usage |
---|---|---|
degree1 | Number | Degree of the first half of the semicircle (negative values allowed). |
degree2 | Number | Degree of the second half of the semicircle (negative values allowed). |
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/. |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss). |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units). |
interval | Number | The factor of the multiplicity of items in a semicircle (less value – more items). If null is specified, it will be calculated automatically. |
radius | Number | The radius of the circle in units (1 meter = 25 units). |
delay | Number | Item spawn time delay. |
duration | Number | The lifetime of the item (before its despawn). |
{ type: "spawn", func: "semicircle", args: [
-90, // degree1
90, // degree2
553, // item
0, // offsetAngle
0, // offsetDistance
null, // interval
150, // radius
0, // delay
2000 // duration
] }
When enabled, will use dest property instead of loc when defining an binding point. The dest is a entity object of the boss skill taken from S_ACTION_STAGE
. Its needed on some mechanics for more accurate binding to NPC in action (e.g. boss).
Best practice is to use dest for items attached to the boss action stage, and use loc for items when the boss is standing (AoEs, donuts, waves, etc.).
id | Name |
---|---|
553 | Cyasma Cylinder |
912 | Struthio Egg |
445 | Aefra |
537 | Mutated Mushroom |
413 | Sweet Hayblossom |
476 | Azure Shard |
548 | Reflective Root |
id | Name | Lighting | Constant (spawn) |
---|---|---|---|
110684 | Tier 21 Superior Twin Swords | Blue pillar of light | HIGHLIGHT_ITEM_BLUE |
89141 | Ishara's Halidom II | Purple pillar of light | HIGHLIGHT_ITEM_PURPLE |
102064 | — | Red pillar of light | HIGHLIGHT_ITEM_RED |
110684 | Tier 21 Superior Twin Swords | Blue pillar of light (without name) | HIGHLIGHT_ITEM |
88704 | Velika Banquet Coin | High pillar of light | MARKER_ITEM |
365001 | AWAKE Resonance Stone | Red ray | — |
365004 | Weak AWAKE Resonance Stone | Blue ray | — |
365006 | Transcendence Resonance Stone | Purple ray | — |
110684 | 89141 | 102064 | 110684 | 88704 |
---|---|---|---|---|