Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Google, DotBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 6:44 am
Go to the top of the page
Go to the bottom of the page

joeyfogas
Fledgling
GroupMembers
Posts10
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, 8: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, 7:09 pm
Go to the top of the page
Go to the bottom of the page

joeyfogas
Fledgling
GroupMembers
Posts10
JoinedAug 28, 2016

Thank you for the response!
       
Post is unread #4 Sep 9, 2016, 9: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 >>