Xaradron11
New Member
- Joined
- Nov 1, 2025
- Messages
- 3
- Reaction score
- 0
Hello everyone,I’m running a Solera-Global Server (TFS 1.3 Solera DEV build) compiled on Nov 24 2021 for x64.
I’m trying to make spells require learning from NPCs (like on real Tibia) instead of being automatically granted when a player reaches a certain level.However, I’ve run into a serious issue:---
Problem:All spells are automatically learned when reaching the required level.I want them to require NPCs (e.g. Asrak, Tevocux) to teach them.I edited all <instant ... needlearn="1" /> in data/spells/spells.xml.After that, my engine crashes when starting or when a player logs in.Setting them back to needlearn="0" makes the server stable again.
---
Server InformationThe Solera-Global Server Global - Version: (1.3.Solera . DEV)Compiled with: Microsoft Visual C++ version 14.0Compiled on Nov 24 2021 22:25:15 for platform x64Folder structure (data/):
Screenshot (https://prnt.sc/YEd9bG_teG7c)
Example from spells.xml:<instant group="attack" spellid="80" name="Berserk" words="exori" lvl="35" mana="115" prem="0" needweapon="1" exhaustion="1565" groupcooldown="2000" needlearn="0" script="attack/berserk.lua"> <vocation name="Knight" /> <vocation name="Elite Knight" /></instant>
---
What I’ve tried:Edited every spell to needlearn="1" → engine crash.Added new NPC System files (keywords.handler.lua, npc.handler.lua, modules.lua, npc.system.lua) from another server → server runs, but NPCs can’t teach spells (Asrak throws getName() nil errors).
Checked login.lua and couldn’t find any learnAllSpells() lines.Verified that the folder structure and file names are correct.
---
Goal:I want my server to:
1. Stop giving spells automatically when leveling up.
2. Allow players to learn spells from NPCs (like real Tibia).
3. Work without crashing when needlearn=1 is enabled.
---
Request:Could someone please share a working data/npcsystem setup (for TFS 1.3 Solera or similar)where NPCs can teach spells and auto-learning is disabled?
Or maybe help me find where the automatic spell assignment is handled (probably in Lua or sources)?
I can upload my current npcsystem folder if needed.
Thank you in advance
– Adam
I’m trying to make spells require learning from NPCs (like on real Tibia) instead of being automatically granted when a player reaches a certain level.However, I’ve run into a serious issue:---
---
Screenshot (https://prnt.sc/YEd9bG_teG7c)
Example from spells.xml:<instant group="attack" spellid="80" name="Berserk" words="exori" lvl="35" mana="115" prem="0" needweapon="1" exhaustion="1565" groupcooldown="2000" needlearn="0" script="attack/berserk.lua"> <vocation name="Knight" /> <vocation name="Elite Knight" /></instant>
---
Checked login.lua and couldn’t find any learnAllSpells() lines.Verified that the folder structure and file names are correct.
---
1. Stop giving spells automatically when leveling up.
2. Allow players to learn spells from NPCs (like real Tibia).
3. Work without crashing when needlearn=1 is enabled.
---
Or maybe help me find where the automatic spell assignment is handled (probably in Lua or sources)?
I can upload my current npcsystem folder if needed.
Thank you in advance
Attachments
-
data.rar45 MB · Views: 3 · VirusTotal
-
help.rar23.1 KB · Views: 3 · VirusTotal