Hello, I was wondering how I could add a function like doPlayerCastSpell(cid, "exevo gran mas vis") for the current tfs version.
I did find a old version for this but it did not work to implement into the current tfs version of tfs. Lua Function - doPlayerCastSpell(cid, spell) It's located here if someone could update it.
I also saw that this was added as an enhancment in the forgottenserver Cast Spell function · Issue #1047 · otland/forgottenserver · GitHub for a long time ago, so it would be great if someone could implement it.
I do know that I could just recreate spells in the scripts that should use this function but I would much rather have such a function like "Creature:castSpell("exura")"
I did find a old version for this but it did not work to implement into the current tfs version of tfs. Lua Function - doPlayerCastSpell(cid, spell) It's located here if someone could update it.
I also saw that this was added as an enhancment in the forgottenserver Cast Spell function · Issue #1047 · otland/forgottenserver · GitHub for a long time ago, so it would be great if someone could implement it.
I do know that I could just recreate spells in the scripts that should use this function but I would much rather have such a function like "Creature:castSpell("exura")"