Casting without spellbook - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Casting without spellbook (/Thread-Casting-without-spellbook) |
Casting without spellbook - Gil Amarth - 03-16-2013 03:11 AM I´m trying to allow some spells to mages that they can memorize and cast without a spellbook. My problem is when I try to use: .cast s_magic_arrow I receive a message that I don´t have a spellbook, there is some way to skip this requisite? Some command that allow me launch spells without any checks? RE: Casting without spellbook - darksun84 - 03-16-2013 03:24 AM @select or @spellselect return 6 Allows the spell to be cast without checking mana, spellbook, and reagent(s). RE: Casting without spellbook - RanXerox - 03-16-2013 03:42 AM One solution is to write your own function, and in that function you can use SPELLEFFECT to cause the result... of course this bypasses all the tests entirely, as well as the spell gain. RE: Casting without spellbook - Gil Amarth - 03-16-2013 05:01 AM (03-16-2013 03:24 AM)darksun84 Wrote: @select or @spellselect Good idea, I have tried that. Unfortunately later there is another hardcoded spellbook check at @SPELLSUCCESS, and there is no way to bypass it. I would write my own function, but how can I try to start the casting process? TRIGGER @SPELLCAST don´t do anything, and TRIGGER @SPELLEFFECT is only useful for a few manually scripted spells, not a dozen. RE: Casting without spellbook - darksun84 - 03-16-2013 06:11 AM reagents are disabled by default, you have to enable them in the sphere.ini // Magic requires reagents ReagentsRequired=0 RE: Casting without spellbook - Gil Amarth - 03-16-2013 06:13 AM Yes, yes, I deleted the post because I noticed it. RE: Casting without spellbook - Gil Amarth - 03-16-2013 07:17 AM Finally I found a solution with a invisible spellbook. I set morez=800, and I add spells to it with "addspell 801", with my customs spells (801 or above). Internally the server thinks the player has a spellbook with the correct spells, so i can use .cast normally. Maybe we could start a contest of the most bizarre script created, some workarounds are pretty rare. RE: Casting without spellbook - RanXerox - 03-16-2013 11:50 AM Ahhh now that you meantion it I do remember trying something similar... I was trying to make it so a player could use both Magery and Necromancy spellicons without pickup+drop or dclicking the necessary spellbook whenever they wanted to switch to another casting skill. |