Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Unnecessary Subclass Requirement for Noblesse (https://postpacific.loc-online.com/showthread.php?t=7677)

goodtimeshaxor 30.05.2007 05:07

Unnecessary Subclass Requirement for Noblesse
 
My server has a funky way of learning skills. Some skills require this thing I call a "mastery point" and new characters start out with only 100 of them. If one were to create a new character and learn every single skill by level 78 it would require at least 125 mastery points. This forces people to pick and choose which skills they want (There are a lot of custom skills so it works well)

The problem with this is the 75/75 subclass requirement for noblesse. What is the best way to bypass this problem? Either allowing to change to a noblesse without the subclass or giving 100 more mp to the subclass only (Which would be taken away when the player changes back to the original class) AND how can I make this happen?

I am thinking a non-subclass requirement would work best in this situation but am not sure how I can change that. I'm pretty sure its all AI but again, I'm not that good with it.

Aikeleer 30.05.2007 08:54

I take it those mastery points are just items?
Making it non-subclass only is extremely easy then.

goodtimeshaxor 30.05.2007 10:09

They are just items that every player starts out with. How can I make this work?

Aikeleer 30.05.2007 15:19

Before you do the Switch Subclass-command in the AI, first convert their skilltokens into other type of tokens 'non-active tokens' or whatever. :)

DeKoth 30.05.2007 16:43

you can write your own ai to set noble..

goodtimeshaxor 30.05.2007 20:25

Quote:

Originally Posted by Aikeleer (Post 87231)
Before you do the Switch Subclass-command in the AI, first convert their skilltokens into other type of tokens 'non-active tokens' or whatever. :)

If I convert them into another kind of token how would they learn their skills? All classes have some skills that require the skill token, changing them wouldn't solve the problem because their subclass skills would still require the use of it.

Quote:

you can write your own ai to set noble
Again, not very good (at all) with AI. Can anyone help me get started? Maybe point me in the right direction.

m4rk 30.05.2007 20:52

in the class lady_of_the_lake

Code:

if( talker.level >= 75 && talker.subjob_id != 0 )
{
        if( ( myself->GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
        {
                talker.quest_last_reward_time = myself->GetCurrentTick();
                myself->GiveItem1(talker,7694,1);
                myself->IncrementParam(talker,0,93836);
                myself->RemoveMemo(talker,247);
                myself->SoundEffect(talker,"ItemSound.quest_finish");
                myself->ShowPage(talker,"lady_of_the_lake_q0247_05.htm");
                myself->AddLog(2,talker,247);
                myself->SetOneTimeQuestFlag(talker,247,1);
                myself->AddUseSkillDesire(talker,1110785,0,0,1000000);
                myself->SetNobless(talker);

You'd have to take out all the '&& talker.subjob_id != 0' checks from the quest that makes u noblesse.

This is the nasc form, you'll have to edit the AI form, wich in this case you have to delete the following:
Code:

        push_event        //  talker
        push_const 40
        add
        fetch_i        //  subjob_id
        push_const 152
        add
        fetch_i4
        push_const 0
        not_equal
        and


goodtimeshaxor 30.05.2007 20:56

Perfect m4rk, thanks for doing that for me.


All times are GMT. The time now is 16:09.