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-nmm7 (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-nmm7 (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-nmm7 (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
How to disable skills
Author Message
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #1
How to disable skills
good morning friends!
i was wondering if there's a correct way to deactivate the following skills:
-necromancy
-spellweaving
-bushido
-ninjitsu
-focus
-chivalry

i tried simply removing them from sphere_skills.scp and searching for relative files to delete and it looks like they disappear, but as soon as i open my skill gump ingame from the paperdoll and choose a category to show, my client crashes.

as i also edit sphere_dialog.scp to remove necromancy from the skill list in the Info menu, i get a messy list


Attached File(s) Thumbnail(s)
   
01-06-2016 07:03 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
RE: How to disable skills
Code:
[SKILL 49]
DEFNAME=SKILL_Necromancy
KEY=Necromancy
TITLE=Necromancer
STAT_STR=20
STAT_INT=100
STAT_DEX=40
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=100
BONUS_STATS=15
ADV_RATE=10.0,200.0,800.0
// VALUES=1,10,80

ON=@SkillStart
    SRC.SYSMESSAGE This skill is disabled.
    SRC.KILL
    RETURN 1

Grandmaster Localhost Admin
(This post was last modified: 01-14-2016 02:44 AM by Kanibal.)
01-06-2016 10:22 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #3
RE: How to disable skills
this one could be a nice solution...in spite of it will be still present in the various menus i can work in on it....thank you!
01-06-2016 10:45 PM
Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #4
RE: How to disable skills
go to these menus and delete the text

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
01-07-2016 04:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #5
RE: How to disable skills
(01-07-2016 04:38 AM)Criminal Wrote:  go to these menus and delete the text

yeah...this is the first thing i tried but unfortunately doesn't work properly as explained in the main post...

in the end i think i resolved as kanibal explained before, plus, in spite of my players will not have a chance to train those skill, i'm going to use
Code:
adv_rate=0
and just in case someone from the staff would manually modify those skill amount i'll use a check in my stat cap system to send them back to 0 ^_^
01-07-2016 06:04 AM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #6
RE: How to disable skills
ON=@SkillStart
return 1 //this prevent using the skill.

ON=@SkillStart
necromancy=0 //u know ...
return 1

This prevent the skill for being used. Put it behind the skill u wanna disable in sphereskills.

[function Createnpc]
necromancy=0
chivalry = 0
etc etc

use this second to put their skill lvl at 0 when they create the char. In Sphere_triggers

U can modify de menuskill and names using Uofiddler if u want make them invisible.
(This post was last modified: 01-14-2016 02:41 AM by rastrero.)
01-14-2016 02:41 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes rastrero's post
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #7
RE: How to disable skills
tnx! this is also very nice! i'll use this too!
01-14-2016 02:43 AM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #8
RE: How to disable skills
(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.
01-14-2016 02:58 AM
Find all posts by this user Like Post Quote this message in a reply
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #9
RE: How to disable skills
(01-14-2016 02:58 AM)rastrero Wrote:  
(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.

i know im kinda newbie in scripting and i always working with wiki in one hand and forum on the other but sometimes is not so immediate or easy to find wht i need for even if it's obvious for people with more experience..i just need sometimes...thx anyway ^_^
01-14-2016 03:11 AM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #10
RE: How to disable skills
(01-14-2016 03:11 AM)zottolo Wrote:  
(01-14-2016 02:58 AM)rastrero Wrote:  
(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.

i know im kinda newbie in scripting and i always working with wiki in one hand and forum on the other but sometimes is not so immediate or easy to find wht i need for even if it's obvious for people with more experience..i just need sometimes...thx anyway ^_^

U need to know how sphere works, then u will know where to look.
just keep doing things and the knolowdge will come gl
01-14-2016 03:36 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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