The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restricted Spells
Author Message
fuzzydice
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #1
Restricted Spells
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.
(This post was last modified: 02-08-2013 08:30 AM by fuzzydice.)
02-08-2013 07:46 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Restricted Spells
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 
02-08-2013 08:14 AM
Find all posts by this user Like Post Quote this message in a reply
fuzzydice
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: Restricted Spells
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
02-08-2013 08:28 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Restricted Spells
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.

[Image: 2nis46r.jpg]
02-08-2013 09:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)