• 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!

Change Spell List

ZiumZium

Member
Joined
Sep 27, 2024
Messages
106
Solutions
1
Reaction score
11
Hello :) Where can I edit this list? I removed some of the spells from the server, but they are still there

TFS 142 otcv8
 

Attachments

Love <3
Post automatically merged:

You can edit them in your OTC files, here:
otc/modules/gamelib/spells.lua
After trying to make any changes, the OTC does not want to start. Error in modules\game_spelllist\spelllist.lua
 

Attachments

Last edited:
Love <3
Post automatically merged:


After trying to make any changes, the OTC does not want to start. Error in modules\game_spelllist\spelllist.lua
Perhaps you removed too much, revert the changes in gamelib/spells.lua and try removing selected spells again, slowly, one by one. If you didnt change anything in game_spellist/spellist.lua then this file would be fine and I woudlnt touch it. If you'd still struggle with how to remove code from the file, ask chat gpt or something to correct the typos or other errors.
 
The error appears after deleting even one line with a spell (no matter which one)

That happens because you should perform edits in few places in the file for each spell.

1. remove the given spell name from spellOrder, for example :
LUA:
'Recovery',
2. remove whole line with spell from SpellInfo:
LUA:
    ['Recovery'] =                 {id = 159, words = 'utura',                 exhaustion = 60000, premium = true,  type = 'Instant', icon = 'recovery',               mana = 75,     level = 50, soul = 0, group = {[2] = 1000},               vocations = {4, 8, 3, 7}},
3. remove the spell from SpellIcons:
LUA:
['recovery']                  = {15, 159},
 
That happens because you should perform edits in few places in the file for each spell.

1. remove the given spell name from spellOrder, for example :
LUA:
'Recovery',
2. remove whole line with spell from SpellInfo:
LUA:
    ['Recovery'] =                 {id = 159, words = 'utura',                 exhaustion = 60000, premium = true,  type = 'Instant', icon = 'recovery',               mana = 75,     level = 50, soul = 0, group = {[2] = 1000},               vocations = {4, 8, 3, 7}},
3. remove the spell from SpellIcons:
LUA:
['recovery']                  = {15, 159},
It works! Thank you! :)
 
Two ways:

1st option: use a modal window to display the spells available to a player.

2nd option: use extended op codes and send the information to the client, and on the client, build a module to display this information... could even send ALL spells and then filter them like what is done on the cipsoft site.
 
Back
Top