[DiscordArchive] Hello, I need some help. I am looking for how script a spell, and noticed that we have the table in
[DiscordArchive] Hello, I need some help. I am looking for how script a spell, and noticed that we have the table in
Archived author: Boka • Posted: 2025-03-19T06:17:49.692000+00:00
Original source
Hello, I need some help. I am looking for how script a spell, and noticed that we have the table in sqldb - "spell_proc"
That spell_proc contains duplicates about procs , that we already have in db2 data about spells.
Why should I duplicate proc info in spell_proc? Just because scripting?
Archived author: Northstrider • Posted: 2025-03-19T06:18:45.527000+00:00
Original source
spell_proc is for the in-depth details about a proc. when exactly to proc, which spells allow it. also spell_proc uses the same pattern as spell_script_names which means -[spellId] = all ranks, otherwise per rank
Archived author: Boka • Posted: 2025-03-19T06:21:44.505000+00:00
Original source
I see that, but, i thought if data is missing in spell_proc - it is ok, just is not overrided, core looks in db2.
But in real life it seems to be "you should provide this info if you want script to work"
I would like to know: Must I provide proc data and put it in spell_proc every time I make a script? or Core takes this data in db2 when it's missed
Archived author: Northstrider • Posted: 2025-03-19T06:25:03.222000+00:00
Original source
db2 only contains proc flags and cooldowns. the rest is missing
Archived author: Northstrider • Posted: 2025-03-19T06:25:48.521000+00:00
Original source
spell_proc is only needed when you need to apply extra conditions to a proc. also no, it's not mandatory for spell scripts. spell scripts even have their on checkProc/checkeffectproc hook
Archived author: Boka • Posted: 2025-03-19T06:26:31.989000+00:00
Original source
thanks) I need to eat it
Archived author: Northstrider • Posted: 2025-03-19T06:26:46.855000+00:00
Original source
the procflag and cooldown columns should be left at 0 when not needed to make the core use the db2 values
Archived author: Boka • Posted: 2025-03-19T06:37:27.373000+00:00
Original source
It’s just interesting if Blizard does not provide more information in dB2 about procking, does this mean that spell does not work like a near Blizard and requires code-refactory?
Just if I were a developer near Blizard and decided to make a spell system, I would keep the information locally for the server, or stored in dB2, but I would keep it in one place without duplication. After all, duplication = possible error.
Archived author: Northstrider • Posted: 2025-03-19T06:56:16.096000+00:00
Original source
they only ship data in db2 that's somehow used within the client. This is not an actual representation of their own database
Archived author: Northstrider • Posted: 2025-03-19T06:56:27.654000+00:00
Original source
they have WAY more fields on their own end