Login
User Name:

Password:



Register

Forgot your password?
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, SemrushBot, AhrefsBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
486
3,768
19,542
575
Zedethar

Today's Birthdays
There are no member birthdays today.
» 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
Posts62
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 >>