Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, Google, Bytespider, DotBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,723
597
LydaCawtho

» SmaugMuds » Codebases » SmaugFUSS » give players all skills/spell...
Forum Rules | Mark all | Recent Posts

give players all skills/spells like immortals?
< Newer Topic :: Older Topic > trying to find the section of code.

Pages:<< prev 1 next >>
Post is unread #1 Sep 9, 2016 8:44 am   
Go to the top of the page
Go to the bottom of the page

joeyfogas
Apprentice
GroupMembers
Posts78
JoinedAug 28, 2016

 
for the purpose of my mud, I want to have the players have the ability to have all the commands in the skill list, like the immortals do. Each skill is awarded through either questing or learned by wearing specific equipment. I know I could just make a class and setclass EVERY skill, but that's tedious and I feel unnecessary. I'm sure there is just something I can comment out or an || (or) factor I can change to let this happen via code.

if anyone could point me to it, i would be greatful. Thanks :)

Post is unread #2 Sep 9, 2016 10:51 am   
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

 
Just change the guild for all skills to the same one and make sure that all players are set to the same one as well?

See the skill_type struct in mud.h, change existing skills in system/skills.dat. Or, to do it in a slightly more automatic way, modify fread_skill in tables.c and set the guild for everything to 0, or whatever, in there.

Post is unread #3 Sep 9, 2016 9:09 pm   
Go to the top of the page
Go to the bottom of the page

joeyfogas
Apprentice
GroupMembers
Posts78
JoinedAug 28, 2016

 
Thank you for the response!

Post is unread #4 Sep 9, 2016 11:43 pm   
Go to the top of the page
Go to the bottom of the page

Kasji
Apprentice
GroupMembers
Posts60
JoinedDec 23, 2007

 
if you want a linux command for replacing strings from the command line you could try

sed -i 's/old_string/new_string/g' skills.dat

Pages:<< prev 1 next >>