Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 11-19-2007, 02:06 AM   #1 (permalink)
Newbie
 
Join Date: Oct 2007
Age: 42
Posts: 22
Default Turning off a Skill

There are a couple of skill I want to turn off and not allow players to use.

I figured the best bet would be to set the skill cap in charactercreation.cs

That works but they will get skill gain to 50 if during character creation they choose Advanced and then choose those skills.

Any thoughts?

Thanks
dwayne2700 is offline   Reply With Quote
Old 11-19-2007, 04:58 AM   #2 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,363
Default

If you adjust the skill cap to zero for specific skills, you can also just set the skill total for those to zero in charactercreation.cs. That way they will be set to zero when the new character enters the world, even if they had placed points against those skills during character creation.

Also, if it's an active use skill, you could just disable the entire button so they can never use the skill. That would also keep players from getting angry/confused because they are using a skill but not gaining anything.
__________________
HellRazor is offline   Reply With Quote
Old 11-19-2007, 07:50 AM   #3 (permalink)
Newbie
 
Join Date: Oct 2007
Age: 42
Posts: 22
Default

Thanks a bunch. I will give that a shot.
dwayne2700 is offline   Reply With Quote
Old 11-19-2007, 08:57 AM   #4 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

lot of it depends on what skill he wants to disable.

if he wants to disable say hiding, that would cause confusion. if its something like bushido, just dont give the players a book and dont give them one in charcreation.cs.

of course if its a use type skill you would have to take into account that the client can setup a macro to use the skill directly. maybe change the skill script to when they try to use the skill, it sends them a message saying that the skill is disabled with a return to close out of the loop.

like for hiding i would try something akin to this:

SkillInfo.Table[21].Callback = new SkillUseCallback( OnUse );

changing that line to call a seprate method like SkillUseCallback( Disabled );

and the Disabled method would just send a message to the client saying this skill does not work here or something.

just some thoughts.
Murzin is offline   Reply With Quote
Old 11-19-2007, 10:42 AM   #5 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,363
Default

Good point about the button and the use of macros to get around that. I probably worded that poorly. What I meant about disabling an active skill is, make the skill itself do nothing when it is used (similar to what you cited in your example). Then it wouldn't matter if they pressed a button or used a macro - no code, no skill use.
__________________
HellRazor is offline   Reply With Quote
Old 11-19-2007, 11:24 AM   #6 (permalink)
Newbie
 
Join Date: Oct 2007
Age: 42
Posts: 22
Default

Would SkillUseCallback( Disabled ); disable the skill from being used by mobs?

Here is an example. I do not want players to have the magery skill. We will have some kind of cleric system instead. I still want the mobs to use magery but just not players.

*If I set a cap on magery of 0.
*Then maybe in WelcomeTimer set the skill to 0. (Then everytime they logged in it would be reset to 0)
*Then have the button tell them the skill is not used

That would do it, right?

Thanks for your time.
dwayne2700 is offline   Reply With Quote
Old 11-19-2007, 12:23 PM   #7 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

you would have to create a new method inside the hiding file called Disabled like it has OnUse that has what code you want to have happen. best option would be is if there is a skill value higher than 0, it would add a skill ball to their inventory letting them spend the points they did at char creation on another skill and then set the skill to 0.
Murzin is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5