Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
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
Apprentice
GroupMembers
Posts77
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
Apprentice
GroupMembers
Posts77
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 >>