[DiscordArchive] Does the core have a similar thing?
[DiscordArchive] Does the core have a similar thing?
Archived author: Honey • Posted: 2023-01-29T17:52:35.293000+00:00
Original source
Does the core have a similar thing?
Archived author: Honey • Posted: 2023-01-29T17:53:30.145000+00:00
Original source
Basically
```cpp
creature->GetNearestGameObject(entry)
```
Archived author: Nyeriah • Posted: 2023-01-29T18:38:06.341000+00:00
Original source
FindNearestObject
![[Image: image.png?ex=690c4262&is=690af0e2&hm=ec5...92d5573e5&]](https://cdn.discordapp.com/attachments/284323424032129024/1069325670590722048/image.png?ex=690c4262&is=690af0e2&hm=ec5ed2154d250f52f5e39b42aad46ccb5d8627d1dbee1cc1a3076d892d5573e5&)
Archived author: Nyeriah • Posted: 2023-01-29T18:38:26.974000+00:00
Original source
![[Image: image.png?ex=690c4262&is=690af0e2&hm=ec5...92d5573e5&]](https://cdn.discordapp.com/attachments/284323424032129024/1069325670590722048/image.png?ex=690c4262&is=690af0e2&hm=ec5ed2154d250f52f5e39b42aad46ccb5d8627d1dbee1cc1a3076d892d5573e5&)
Archived author: Honey • Posted: 2023-01-29T18:45:25.421000+00:00
Original source
That'll do! Thanks!
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.