SphereCommunity
Restricted Spells - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Restricted Spells (/Thread-Restricted-Spells)



Restricted Spells - fuzzydice - 02-08-2013 07:46 AM

Hi, I am new to sphereserver community and I have started my own shard. I want to remove some spells from player use but keep them for npcs and staff.
Is there a way I can do that using the existing spellbook or do I have to make a new spell book and menu gump?

I realize I will have to remove the ability to create these scrolls in Inscription. Any advice here?

I will also have to remove the wands from the game. That part is easy.

Thank you for your time, and if you think of anything I have overlooked, please feel free to add it.


RE: Restricted Spells - darksun84 - 02-08-2013 08:14 AM

Under every spell section that players can't use, you can add the following trigger

PHP Code:
ON=@Select
if ( <src.isplayer>) && (!<src.isgm>)
    
src.sysmessage Can't cast this
    return 1
endif 



RE: Restricted Spells - fuzzydice - 02-08-2013 08:28 AM

Thank you for your reply. I will definatly use this, but I also want to remove the spells from the players spellbooks and scrolls from inscription menue. Thanks


RE: Restricted Spells - Mordaunt - 02-08-2013 09:04 AM

depends on the crafting system you are using, if it is the default one just search for said items within sphere_skillmenu.scp and comment them out (i'd recommend that over just deleting them) and prevent them from being dropped as loot on anything, if the players cant get the scroll they can't put it in their books.