Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Does the core have a similar thing?

[DiscordArchive] Does the core have a similar thing?

[DiscordArchive] Does the core have a similar thing?

rektbyfaith
Administrator
0
01-29-2023, 05:52 PM
#1
Archived author: Honey • Posted: 2023-01-29T17:52:35.293000+00:00
Original source

Does the core have a similar thing?
rektbyfaith
01-29-2023, 05:52 PM #1

Archived author: Honey • Posted: 2023-01-29T17:52:35.293000+00:00
Original source

Does the core have a similar thing?

rektbyfaith
Administrator
0
01-29-2023, 05:53 PM
#2
Archived author: Honey • Posted: 2023-01-29T17:53:30.145000+00:00
Original source

Basically
```cpp
creature->GetNearestGameObject(entry)
```
rektbyfaith
01-29-2023, 05:53 PM #2

Archived author: Honey • Posted: 2023-01-29T17:53:30.145000+00:00
Original source

Basically
```cpp
creature->GetNearestGameObject(entry)
```

rektbyfaith
Administrator
0
01-29-2023, 06:38 PM
#3
Archived author: Nyeriah • Posted: 2023-01-29T18:38:06.341000+00:00
Original source

FindNearestObject
rektbyfaith
01-29-2023, 06:38 PM #3

Archived author: Nyeriah • Posted: 2023-01-29T18:38:06.341000+00:00
Original source

FindNearestObject

rektbyfaith
Administrator
0
01-29-2023, 06:38 PM
#4
Archived author: Nyeriah • Posted: 2023-01-29T18:38:26.974000+00:00
Original source


[Image: image.png?ex=690c4262&is=690af0e2&hm=ec5...92d5573e5&]
rektbyfaith
01-29-2023, 06:38 PM #4

Archived author: Nyeriah • Posted: 2023-01-29T18:38:26.974000+00:00
Original source


[Image: image.png?ex=690c4262&is=690af0e2&hm=ec5...92d5573e5&]

rektbyfaith
Administrator
0
01-29-2023, 06:45 PM
#5
Archived author: Honey • Posted: 2023-01-29T18:45:25.421000+00:00
Original source

That'll do! Thanks!
rektbyfaith
01-29-2023, 06:45 PM #5

Archived author: Honey • Posted: 2023-01-29T18:45:25.421000+00:00
Original source

That'll do! Thanks!

rektbyfaith
Administrator
0
01-30-2023, 02:38 AM
#6
Archived author: Nick • Posted: 2023-01-30T02:38:33.615000+00:00
Original source

Here's an example manifest file:
```
---
apiVersion: 0.0.1
resources:

vars:
resourceType: variable
variables:
statModifier: 1
speedModifier: 2

defiasThug:
resourceType: creature
name: Defias Thug
subname: "?SELECT * FROM creature WHERE name LIKE '%defias%' | index 0"
minLevel: 3
maxLevel: 4
expansion: classic
faction: null
npcFlags:
- gossip
- npc flags
rank: normal
unitFlags:
- stunned
modelid1: 5035
modelid2: 0
modelid3: 0
modelid4: 0
minmoney: 1
maxmoney: 5
lootTablet: 38
pickpocketTablet: 38
scale: 1
damageModifier: "!vars.variables.statModifier"
healthModifier: "!vars.variables.statModifier"
manaModifier: "!vars.variables.statModifier"
armorModifier: "!vars.variables.statModifier"
experienceModifier: 1
speedWalk: "!vars.variables.speedModifier"
speedRun: "!vars.variables.speedModifier"
speedSwim: "!vars.variables.speedModifier"
speedFlight: "!vars.variables.speedModifier"
detectionRange: 10
tags:
- "elywnn_forest"
- "defias_guy"
- "starter_area"
```

Wondering if this would be of use to anybody. Some features I'm thinking about...
- `?` operator queries the database
- `!` operator references elements within the manifest file.
- `defiasThug` is the resource name, which is stored in a separate table in the world_server db.
- `tags` make it easy to stay organized. tags are also stored in a separate table in the world_server db.
rektbyfaith
01-30-2023, 02:38 AM #6

Archived author: Nick • Posted: 2023-01-30T02:38:33.615000+00:00
Original source

Here's an example manifest file:
```
---
apiVersion: 0.0.1
resources:

vars:
resourceType: variable
variables:
statModifier: 1
speedModifier: 2

defiasThug:
resourceType: creature
name: Defias Thug
subname: "?SELECT * FROM creature WHERE name LIKE '%defias%' | index 0"
minLevel: 3
maxLevel: 4
expansion: classic
faction: null
npcFlags:
- gossip
- npc flags
rank: normal
unitFlags:
- stunned
modelid1: 5035
modelid2: 0
modelid3: 0
modelid4: 0
minmoney: 1
maxmoney: 5
lootTablet: 38
pickpocketTablet: 38
scale: 1
damageModifier: "!vars.variables.statModifier"
healthModifier: "!vars.variables.statModifier"
manaModifier: "!vars.variables.statModifier"
armorModifier: "!vars.variables.statModifier"
experienceModifier: 1
speedWalk: "!vars.variables.speedModifier"
speedRun: "!vars.variables.speedModifier"
speedSwim: "!vars.variables.speedModifier"
speedFlight: "!vars.variables.speedModifier"
detectionRange: 10
tags:
- "elywnn_forest"
- "defias_guy"
- "starter_area"
```

Wondering if this would be of use to anybody. Some features I'm thinking about...
- `?` operator queries the database
- `!` operator references elements within the manifest file.
- `defiasThug` is the resource name, which is stored in a separate table in the world_server db.
- `tags` make it easy to stay organized. tags are also stored in a separate table in the world_server db.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)