[DiscordArchive] it's prob client?
[DiscordArchive] it's prob client?
Archived author: Barbz • Posted: 2020-12-19T23:54:19.071000+00:00
Original source
it's prob client?
Archived author: Barbz • Posted: 2020-12-19T23:54:46.950000+00:00
Original source
----
i discovered smthg crazy. If i make a custom spell in the db, in spell_dbc table
then i assign it to an item ON USE, it never triggers.
u click item but it doesn't know it's "on USE" (client doesn't send the opcode)
isn't there a solution to fix that in the core so i didn't waste 3hrs making that spell/item?
Archived author: Kitzunu • Posted: 2020-12-20T00:07:27.338000+00:00
Original source
I dont think so, since server side spells are not known to the client (I think)
Archived author: Barbz • Posted: 2020-12-20T00:54:35.316000+00:00
Original source
but why clicking on an item with a script triggers the script too? something tells the client "u can click it"
Archived author: Kitzunu • Posted: 2020-12-20T00:55:22.613000+00:00
Original source
fair point, honestly I dont know
Archived author: FALL1N • Posted: 2020-12-20T00:55:38.079000+00:00
Original source
you can make it as an item script I guess, a hacky way but it will work, "OnGossipHello" then "CastSpell"
Archived author: Barbz • Posted: 2020-12-20T01:13:55.783000+00:00
Original source
yes fall1n, but i'm curious on how it works (and never made an item scrip, also i'd need to add a "cast spell" action to fake a visual effect, annoying for me not doing much cpp xD)