• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spells for additional vocations

DrComet

New Member
Joined
Nov 25, 2014
Messages
63
Reaction score
3
Hello there!

I've got a problem, because I've created 2 new promotions for every vocation. Everything works fine except spellbook. It looks like this:

vocation 4 can use spells for vocation 8, 12, 16
vocation 8 can use spells for vocation 8, 4 -- can't use for 12, 16
vocation 12 can use spells for vocation 12, 16 -- can't use for 4, 8
vocation 16 can use spells for vocation 12, 16 -- can't use for 4, 8

Promotions:

1 > 5 > 9/13
2 > 6 > 10/14
2 > 7 > 11/15
4 > 8 > 12/16

spells.xml I was testing:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<spells>
    <!--
        prem="1"
        aggressive="1"
        blockwalls="1"
    -->

    <!-- knight -->
    <instant prem="0" name="kill one" words="exori" lvl="8" mana="1" exhaustion="500" needlearn="0" event="script" value="attack/berserk.lua">
        <vocation id="4"/>
    </instant>
   
    <!-- ek -->
    <instant prem="1" name="kill two" words="exori gran" lvl="70" mana="1" exhaustion="500" needlearn="0" event="script" value="attack/fierce berserk.lua">
        <vocation id="8"/>
    </instant>
   
    <!-- bloody -->
    <instant prem="1" name="Whirlwind" words="exori mega gran" lvl="300" mana="25" exhaustion="10000" needlearn="0" event="script" value="super/bloody warrior/whirlwind.lua">
        <vocation id="12"/>
    </instant>

    <!-- armored -->
    <instant prem="1" name="Provocation" words="exeta res" lvl="300" mana="30" exhaustion="1000" needlearn="0" event="script" value="super/armored swordsman/provocation.lua">
        <vocation id="16"/>
    </instant>
   
</spells>

As You can see, some vocations can see spells for other ones. And that's my problem. I have no idea how this is possible... Or maybe I should change something in some file yet?

I use TFS 0.3.6 for client 8.6

Cheers!
 
Last edited:
Do you want all 4 vocations to use only spells for them?
I mean:
Voc 4 (knight) can only use spells for voc 4 -- It is now implicitly.
Voc 8 (elite knight) can only use spells for voc 8
Voc 12 (bloody) can only use spells for voc 12
Voc 16 can only use spells for voc 16

Yes?
 
Last edited:
I am not sure, but it will probably require a source edit. Just make all vocations above 4 like vocation 1,2,3,4 are. I can't help you. I am not C++ programmer. Maybe somone from this phorum will come here and help. Anyway, good luck!
 
The best way would be to find a script that allows a god to use all spells and edit it to use only one vocation's spells and add this scripts to each vocations.
Someone know the script?
 
Last edited:
rewrite the spellbook script to only show spells for ur exact id maybe
Spellbook has nothing to it, because it still allows players to use the spells of their previous vocations. I've just tested that.
Maybe it is about: getPlayerInstantSpellCount
 
Last edited:
in still not quite sure exactly what ur asking for, in ur first post the code is 1 spell for each voc for 4/8/12/16, is that not working? can voc 16 not use only the last spell? can voc 4 not only use the spell for voc 4?
is who can cast the spells correct, but spellbook shows it wrong?
 
Yeah I had a total chaos about that... Some vocations could use spells for another ones even if I set them properly vocations ID in spells.xml. Anyway, the bug has been fixed. The problem was ,,needlearn".
 
Back
Top