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

Nostalrius 7.7

Open iologindata.cpp, and the function to save player, you have to cast sex as an actual sex.
C++:
// Load player function
player->setSex(static_cast<PlayerSex_t>(result->getNumber<uint16_t>("sex")));

// Save player function
query << "`sex` = " << static_cast<uint16_t>(player->sex) << ',';
It worked, thank you!

I have some questions.
1-In this version, used to exist hotkeys already? (use rune on target)
2-Which acc web should I use with this?
3-Is possible to add "bring me to xxx" to travel without saying hi to the boat npc?
4-Are there any known money bug that I should fix immediately?
 
Last edited:
It worked, thank you!

I have some questions.
1-In this version, used to exist hotkeys already? (use rune on target)
2-Which acc web should I use with this?
3-Is possible to add "bring me to xxx" to travel without saying hi to the boat npc?
4-Are there any known money bug that I should fix immediately?
1- No, only in 7.8 and up.
2- Any that supports account numbers and works with TFS 1.2, so Znote, Gesior.
3- Yes
4- No, but definitely some crashes
 
1- No, only in 7.8 and up.
2- Any that supports account numbers and works with TFS 1.2, so Znote, Gesior.
3- Yes
4- No, but definitely some crashes
3- Do u or anyone else have the code?
4- Do u or anyone else know any that already have solution, that you can tell/give me what is the solution? It would save a bunch of time.
 
Please.. I'm working on it, trying to downgrade to 7.4 formulas..
I've edited all spells to be used by maglevl instead level.. its ok
but in npcs, to use mag to buy i found it..
in sources 'behaviourdatabase'
BEHAVIOUR_TYPE_SPELLLEVEL, // get spell level

how change to look for maglvl?
 
Please.. I'm working on it, trying to downgrade to 7.4 formulas..
I've edited all spells to be used by maglevl instead level.. its ok
but in npcs, to use mag to buy i found it..
in sources 'behaviourdatabase'
BEHAVIOUR_TYPE_SPELLLEVEL, // get spell level

how change to look for maglvl?
 
Please.. I'm working on it, trying to downgrade to 7.4 formulas..
I've edited all spells to be used by maglevl instead level.. its ok
but in npcs, to use mag to buy i found it..
in sources 'behaviourdatabase'
BEHAVIOUR_TYPE_SPELLLEVEL, // get spell level

how change to look for maglvl?
Bro, can u tell me how u did that? I've to do the same in my server as well. (edited all spells to be used by maglevl instead level).

Abt ur question, does make any difference if you could buy or not the spell if you does not have the necessary ml yet?
In my view, doesn't matter, so I just change the npc dialog.

for example:

data\npc\lea.npc
Code:
# GIMUD - Graphical Interface Multi User Dungeon
# lea.npc: Datenbank für die Magierin Lea

Name = "Lea"
Outfit = (138,59-95-94-113)
Home = [32348,31828,6]
Radius = 3

Behaviour = {
ADDRESS,Sorcerer,"hello$",! -> "Welcome back, %N!"
ADDRESS,Sorcerer,"hi$",!    -> "Welcome back, %N!"
ADDRESS,"hello$",!          -> "Greetings, %N."
ADDRESS,"hi$",!             -> *
ADDRESS,!                   -> Idle
BUSY,"hello$",!             -> "Be patient %N, please.", Queue
BUSY,"hi$",!                -> *
BUSY,!                      -> NOP
VANISH,!                    -> "Take care on your journeys."

"bye"            -> "Take care on your journeys.", Idle
"farewell"       -> *
"job"            -> "I am the archsorcerer of Carlin. I keep the secrets of our order."
"name"           -> "My name is Lea."
"time"           -> "Time is a force we sorcerers will master one day."
"wisdom"         -> "You need great wisdom to cast spells of power."
"male"           -> "Some tricks of sorcery are easy enough to be mastered even by males, but they'd better stick to cardtricks."
"sorcerer"       -> "Any sorcerer dedicates his whole life to the study of the arcane arts."
"power"          -> "We sorcerers wield arcane powers beyond comprehension of men."
"arcane"         -> *
"vocation"       -> "Your vocation is your profession. There are four vocations in this world: Sorcerers, paladins, knights, and druids."
"spellbook"      -> "A spellbook lists all your spells. There you can find the pronunciation of each spell. You can buy one at the magicians' shop."
"spell",Sorcerer -> "I can teach you rune spells and instant spells. What kind of spell do you wish to learn? You can also tell me for which level you would like to learn a spell, if you prefer that.", Topic=2
"spell"         -> "Sorry, I only sell spells to Sorcerers."

sorcerer,"wadflkjnsdfnslodfnlsdjfnjksdfnksdnd",QuestValue(333)<1  -> "Oh, you did not purchase your first magical wand yet? Please take this little present from me as your magic teacher!",SetQuestValue(333,1),Type=3074, Amount=1,Create(Type)


Topic=2,"rune","spell"        -> "I sell attack rune spells and support rune spells. Which of these interests you most?"
Topic=2,"instant","spell"     -> "I sell attack spells, healing spells, support spells and summon spells. Which of these interests you most?"
Topic=2,"level"               -> "For which level would you like to learn a spell?", Topic=2
Topic=2,"bye"                 -> "Take care on your journeys.", Idle

Sorcerer,"level"               -> "For which level would you like to learn a spell?", Topic=2
Sorcerer,"rune","spell"        -> "I sell attack rune spells and support rune spells. Which of these interests you most?"
Sorcerer,"instant","spell"     -> "I sell attack spells, healing spells, support spells and summon spells. Which of these interests you most?"

Sorcerer,"attack","rune","spell"  ->  "I sell missile rune spells, explosive rune spells, field rune spells, wall rune spells and bomb rune spells."
Sorcerer,"support","rune","spell" ->  "In this category I have 'Destroy Field'."

Sorcerer,"missile","rune","spell"   -> "In this category I have 'Light Magic Missile', 'Heavy Magic Missile' and 'Sudden Death'."
Sorcerer,"explosive","rune","spell" -> "In this category I have 'Fireball', 'Great Fireball' and 'Explosion'."
Sorcerer,"field","rune","spell"     -> "In this category I have 'Poison Field', 'Fire Field' and 'Energy Field'."
Sorcerer,"wall","rune","spell"      -> "In this category I have 'Fire Wall', 'Poison Wall' and 'Energy Wall'."
Sorcerer,"bomb","rune","spell"      -> "In this category I have 'Firebomb'."

Sorcerer,"attack","spell"           -> "In this category I have 'Fire Wave', 'Energy Wave', 'Energy Beam' and 'Great Energy Beam'."
Sorcerer,"healing","spell"          -> "In this category I have 'Light Healing', 'Intense Healing', 'Ultimate Healing' and 'Antidote'."
Sorcerer,"support","spell"          -> "In this category I have 'Find Person', 'Light', 'Great Light', 'Magic Shield', 'Creature Illusion' and 'Invisible'."
Sorcerer,"summon","spell"           -> "In this category I have 'Summon Creature'."

Sorcerer,"find","person"         -> String="Find Person", Price=80,   "Do you want to buy the spell 'Find Person' for %P gold?", Topic=3
Sorcerer,"light"                 -> String="Light", Price=100,  "Do you want to buy the spell 'Light' for %P gold?", Topic=3
Sorcerer,"light","healing"       -> String="Light Healing", Price=170,  "Do you want to buy the spell 'Light Healing' for %P gold?", Topic=3
Sorcerer,"light","missile"       -> String="Light Magic Missile", Price=500,  "Do you want to buy the spell 'Light Magic Missile' for %P gold?", Topic=3
Sorcerer,"antidote"              -> String="Antidote", Price=150,  "Do you want to buy the spell 'Antidote' for %P gold?", Topic=3
Sorcerer,"intense","healing"     -> String="Intense Healing", Price=350,  "Do you want to buy the spell 'Intense Healing' for %P gold?", Topic=3
Sorcerer,"poison","field"        -> String="Poison Field", Price=300,  "Do you want to buy the spell 'Poison Field' for %P gold?", Topic=3
Sorcerer,"great","light"         -> String="Great Light", Price=500,  "Do you want to buy the spell 'Great Light' for %P gold?", Topic=3
Sorcerer,"fire","field"          -> String="Fire Field", Price=500,  "Do you want to buy the spell 'Fire Field' for %P gold?", Topic=3
Sorcerer,"heavy","missile"       -> String="Heavy Magic Missile", Price=1500,  "Do you want to buy the spell 'Heavy Magic Missile' for %P gold?", Topic=3
Sorcerer,"magic","shield"        -> String="Magic Shield", Price=450,  "Do you want to buy the spell 'Magic Shield' for %P gold?", Topic=3
Sorcerer,"fireball"              -> String="Fireball", Price=800,  "Do you want to buy the spell 'Fireball' for %P gold?", Topic=3
Sorcerer,"energy","field"        -> String="Energy Field", Price=700,  "Do you want to buy the spell 'Energy Field' for %P gold?", Topic=3
Sorcerer,"destroy","field"       -> String="Destroy Field", Price=700,  "Do you want to buy the spell 'Destroy Field' for %P gold?", Topic=3
Sorcerer,"fire","wave"           -> String="Fire Wave", Price=850,  "Do you want to buy the spell 'Fire Wave' for %P gold?", Topic=3
Sorcerer,"ultimate","healing"    -> String="Ultimate Healing", Price=1000, "Do you want to buy the spell 'Ultimate Healing' for %P gold?", Topic=3
Sorcerer,"great","fireball"      -> String="Great Fireball", Price=1200, "Do you want to buy the spell 'Great Fireball' for %P gold?", Topic=3
Sorcerer,"fire","bomb"           -> String="Firebomb", Price=1500, "Do you want to buy the spell 'Fire Bomb' for %P gold?", Topic=3
Sorcerer,"energy","beam"         -> String="Energy Beam", Price=1000, "Do you want to buy the spell 'Energy Beam' for %P gold?", Topic=3
Sorcerer,"creature","illusion"   -> String="Creature Illusion", Price=1000, "Do you want to buy the spell 'Creature Illusion' for %P gold?", Topic=3
Sorcerer,"poison","wall"         -> String="Poison Wall", Price=1600, "Do you want to buy the spell 'Poison Wall' for %P gold?", Topic=3
Sorcerer,"explosion"             -> String="Explosion", Price=1800, "Do you want to buy the spell 'Explosion' for %P gold?", Topic=3
Sorcerer,"fire","wall"           -> String="Fire Wall", Price=2000, "Do you want to buy the spell 'Fire Wall' for %P gold?", Topic=3
Sorcerer,"great","energy","beam" -> String="Great Energy Beam", Price=1800, "Do you want to buy the spell 'Great Energy Beam' for %P gold?", Topic=3
Sorcerer,"invisible"             -> String="Invisible", Price=2000, "Do you want to buy the spell 'Invisible' for %P gold?", Topic=3
Sorcerer,"summon","creature"     -> String="Summon Creature", Price=2000, "Do you want to buy the spell 'Summon Creature' for %P gold?", Topic=3
Sorcerer,"energy","wall"         -> String="Energy Wall", Price=2500, "Do you want to buy the spell 'Energy Wall' for %P gold?", Topic=3
Sorcerer,"energy","wave"         -> String="Energy Wave", Price=2500, "Do you want to buy the spell 'Energy Wave' for %P gold?", Topic=3
Sorcerer,"sudden","death"        -> String="Sudden Death", Price=3000, "Do you want to buy the spell 'Sudden Death' for %P gold?", Topic=3


Topic=2,"0$"  -> "For magic level 0 I have 'Find Person' and 'Light'.", Topic=2
Topic=2,"1$"  -> "For magic level 1 I have 'Light magic missile' and 'Light Healing'.", Topic=2
Topic=2,"2$"  -> "For magic level 2 I have 'Poison field', 'Intense healing' and 'Antidote'.", Topic=2
Topic=2,"3$"  -> "For magic level 3 I have 'Heavy magic missile', 'Fire field' and 'Great light'.", Topic=2
Topic=2,"4$"  -> "For magic level 4 I have 'magic shield'.", Topic=2
Topic=2,"5$"  -> "For magic level 5 I have 'Energy field' and 'fireball'.", Topic=2
Topic=2,"6$"  -> "For magic level 6 I have 'Destroy field'.", Topic=2
Topic=2,"7$"  -> "For magic level 7 I have 'Fire wave'.", Topic=2
Topic=2,"8$"  -> "For magic level 8 I have 'Ultimate healing'.", Topic=2
Topic=2,"9$"  -> "For magic level 9 I have 'Firebomb' and 'Great fireball'.", Topic=2
Topic=2,"10$"  -> "For magic level 10 I have 'Energy beam' and 'Creature illusion'.", Topic=2
Topic=2,"11$"  -> "For magic level 11 I have 'poison wall'.", Topic=2
Topic=2,"12$"  -> "For magic level 12 I have 'Explosion'.", Topic=2
Topic=2,"13$"  -> "For magic level 13 I have 'fire wall'.", Topic=2
Topic=2,"14$"  -> "For magic level 14 I have 'Great energy beam'.", Topic=2
Topic=2,"15$"  -> "For magic level 15 I have 'Invisible'.", Topic=2
Topic=2,"16$"  -> "For magic level 16 I have 'Summon creature'.", Topic=2
Topic=2,"18$"  -> "For magic level 18 I have 'Energy Wall'.", Topic=2
Topic=2,"20$"  -> "For magic level 20 I have 'Energy Wave'.", Topic=2
Topic=2,"25$"  -> "For magic level 25 I have 'Sudden death'.", Topic=2

Topic=2       -> "Sorry, I have only spells For magic level 1 to 16, 18, 20, as well as for the magic level 25.", Topic=2

Topic=3,"yes",SpellKnown(String)=1        -> "You already know how to cast this spell."
Topic=3,"yes",Level<SpellLevel(String)    -> Amount=SpellLevel(String), "You have to be level %A to learn this spell."
Topic=3,"yes",CountMoney<Price            -> "You need more money."
Topic=3,"yes"                             -> "Here you are. Look in your spellbook for the pronunciation of this spell.", DeleteMoney, EffectOpp(13), TeachSpell(String)
Topic=3                                   -> "Then not."
}
 
Last edited:
It was only my mistake, I changed the spell system to 7.4 and forgot to change spellbook.lua, now it works!

WD87j2Q.png


Can u give us the fix?
The fixed spellbook.lua file?
 
If you have any error while opening .rar use 7-zip
I'm trying to use this, but its always crashing, and I'm going crazy to compile the master version and still getting nothing, please someone could help me? discord goes@7131
 
data/movements/movements.xml
XML:
<movevent event="Equip" itemid="5090" slot="armor" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="armor" function="onDeEquipItem" />
I think it doesn't work.

This statement is to upgrade player magic level plus the number that the variable receive, right? For example, I want this new item to be like a Focus Cape on Real Tibia that gives the player who uses it Magic Level +1 (https://www.tibiawiki.com.br/wiki/Focus_Cape).

Thanks for the help.
 
I think it doesn't work.

This statement is to upgrade player magic level plus the number that the variable receive, right? For example, I want this new item to be like a Focus Cape on Real Tibia that gives the player who uses it Magic Level +1 (https://www.tibiawiki.com.br/wiki/Focus_Cape).

Thanks for the help.
What @emil92b stated in the previous post is the exact way to make your item just as a focus cape, you need to register it as a movement for the effect to take place.

So the item needs to have the attribute in items.srv and needs to get registerd in movement
 
What @emil92b stated in the previous post is the exact way to make your item just as a focus cape, you need to register it as a movement for the effect to take place.

So the item needs to have the attribute in items.srv and needs to get registerd in movement
It worked... I only had to do the item again. Thanks a lot.
 
Guys, I have some issues that I'm trying to fix but with no success.
Does anyone have the solution for any of those?

1- How to add Store in game?


2- When I click on the "Enable Shared Experience" button in the game, the console returns an error, I need to fix that or remove the button, because I have the !share talkaction added:

CONSOLE ERROR:
Code:
Player: Jhon sent an unknown packet header: 0xa8!


3- Fix the ban in the game, clicking on the player, it's not working (Rule Violation).


4- exori mana percent not working.


5- Console error when using mana fluid on the ground:

CONSOLE ERROR:
Lua:
Lua Script Error: [Action Interface]
data/actions/scripts/misc/fluids.lua:onUse
data/actions/scripts/misc/fluids.lua:65: attempt to call method 'addMana' (a nil value)
stack traceback:
        [C]: in function 'addMana'
        data/actions/scripts/misc/fluids.lua:65: in function <data/actions/scripts/misc/fluids.lua:27>


6- Monster/Players Summons are not attacking players, not moving at all


7- Fix exura sio to use 70 mana on myself, currently it's using 35 and 35 if using it on some other player.
 
Someone got the same problem when try compile in LINUX? Ubuntu 20.04?

1665716182931.png
 
That one is, just saying if you use rand(), like rand()%10, its not inclusive. Programming is fun (Y)

Heres my Orc Spearman now.

Before uniform_random(1, spellBlock.chance) == 1
spearman1.gif


After uniform_random(1, spellBlock.chance) == 1
spearman2.gif



A Demon vs Hydra.

Before uniform_random(1, spellBlock.chance) == 1
demon1.gif


After uniform_random(1, spellBlock.chance) == 1
demon2.gif

A lot more agressive with spells and healing.
what did you changed and where? im trying to do the same into nekiro downgraded
 
That one is, just saying if you use rand(), like rand()%10, its not inclusive. Programming is fun (Y)

Heres my Orc Spearman now.

Before uniform_random(1, spellBlock.chance) == 1
spearman1.gif


After uniform_random(1, spellBlock.chance) == 1
spearman2.gif



A Demon vs Hydra.

Before uniform_random(1, spellBlock.chance) == 1
demon1.gif


After uniform_random(1, spellBlock.chance) == 1
demon2.gif

A lot more agressive with spells and healing.
did you change in both lines?
 
Back
Top