Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Immortals getting all skills

Immortals getting all skills

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Metsuro   USA  (389 posts)  Bio
Date Wed 26 Apr 2006 07:40 AM (UTC)
Message
Im am looking to find where in smaugfuss1.7 where it give an immortal all skills in the game.

Everything turns around in the end
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 26 Apr 2006 08:04 AM (UTC)

Amended on Wed 26 Apr 2006 08:05 AM (UTC) by Nick Gammon

Message
Check out this page:

http://www.gammon.com.au/scripts/showfaq.php?faqid=64&productid=6

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #2 on Wed 26 Apr 2006 05:26 PM (UTC)
Message
Alright thanks, however that is not what I am looking for, I know all about those heh... what I am looking for is where in the game that it allows immortals to obtain all skills within the mud, not the commands needed for it.

Everything turns around in the end
Top

Posted by Malti   USA  (55 posts)  Bio
Date Reply #3 on Wed 26 Apr 2006 11:10 PM (UTC)
Message
Your skill list is set by your class. However, your personal stats are saved in your pfile. Theoretically, you could add skills from other classes into your pfile, but I am not sure if the code will check what class you are. If this is the case, just make it so if you are immortal then your the check gets bypassed.
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #4 on Wed 26 Apr 2006 11:24 PM (UTC)
Message
Immortals don't really bypass the class check, it's just that skills default to being given at level 51 if they aren't given sooner for every class, you can change that with sset or by changing your code.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #5 on Wed 26 Apr 2006 11:52 PM (UTC)

Amended on Thu 27 Apr 2006 12:00 AM (UTC) by Metsuro

Message
I want to know where I could find that though... cause i found this in sset.

for( i = 0; i < MAX_PC_CLASS; i++ )
      {
         skill->skill_level = LEVEL_IMMORTAL;
         skill->skill_adept = 95;
      }
      for( i = 0; i < MAX_PC_RACE; i++ )
      {
         skill->race_level = LEVEL_IMMORTAL;
         skill->race_adept = 95;
      }


but not sure what it does.

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #6 on Thu 27 Apr 2006 12:04 AM (UTC)
Message
Under the "all" argument check in do_sset, you'll find the code.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #7 on Thu 27 Apr 2006 12:12 AM (UTC)
Message
if( skill_table[sn]->name && ( victim->level >= skill_table[sn]->skill_level[victim->Class] || value == 0 ) )
         {
            if( value == 100 && !IS_IMMORTAL( victim ) )
               victim->pcdata->learned[sn] = GET_ADEPT( victim, sn );
            else
               victim->pcdata->learned[sn] = value;
         }


thats the only thing in "all" that deals with immortals and that only checks what they have already learned. In SmaugFUSS1.7 the stock admin starts with all skills from all classes, I am looking for where it gave him all the skills?

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #8 on Thu 27 Apr 2006 12:21 AM (UTC)
Message
Probably "sset self all 100" gave him the skills. He was probably pre-set.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #9 on Thu 27 Apr 2006 12:23 AM (UTC)
Message
But the problem with that I dont see anywhere in sset all that would give him skills of all the classes... cause as a druid, he shouldn't really get the vampire skills right? well he does...

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #10 on Thu 27 Apr 2006 12:36 AM (UTC)
Message
As an Immortal, he should get all the skills.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #11 on Thu 27 Apr 2006 12:37 AM (UTC)
Message
Again, it's because every class gets every skill, but the ones that aren't 'meant' for that class they only get at level 51.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #12 on Thu 27 Apr 2006 01:12 AM (UTC)
Message
Ok... so can you point out to me... where that is defined... is all i want to know...

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #13 on Thu 27 Apr 2006 01:17 AM (UTC)
Message
Where what is? The Imms getting sset all? This:
    if ( fAll )
    {
        for ( sn = 0; sn < top_sn; sn++ )
        {
            /* Fix by Narn to prevent ssetting skills the player shouldn't have. */
            if ( skill_table[sn]->name
            && ( victim->level >=  skill_level( ch, sn)
                      || value == 0 ) )
            {
                if ( value == 100 && !IS_IMMORTAL( victim ) )
                  victim->pcdata->learned[sn] = GET_ADEPT( victim, sn );
                else
                  victim->pcdata->learned[sn] = value;
            }
        }
    }


Or do you mean the code where it allows Imms to have all skills?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #14 on Thu 27 Apr 2006 01:20 AM (UTC)
Message
actually, you already pointed it out to us:
Quote:

I want to know where I could find that though... cause i found this in sset.

for( i = 0; i < MAX_PC_CLASS; i++ )
{
skill->skill_level = LEVEL_IMMORTAL;
skill->skill_adept = 95;
}
for( i = 0; i < MAX_PC_RACE; i++ )
{
skill->race_level = LEVEL_IMMORTAL;
skill->race_adept = 95;
}



but not sure what it does.

What that does is to set any skills to be level_immortal at skill adept level 95% for any class that doesn't already have the skill otherwise set in the *.class file in the classes directory.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


44,383 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.