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

TFS 1.X+ Skillstats on weapons(crit,mana leech, lifesteal)

monkeyy

Member
Joined
Aug 20, 2011
Messages
153
Reaction score
9
Hello y'all!

It's not really necessary, however I would like to know how to fix the following:
Snaggy - easy screenshots

I know I can just remove the stats in items.xml:

Lua:
<item id="26320" article="a" name="Wand of Mayhem (infinite)">
        <attribute key="description" value="This weapon is over charged." />
        <attribute key="weight" value="3500" />
        <attribute key="weaponType" value="wand" />
        <attribute key="shootType" value="energy" />
        <attribute key="magiclevelpoints" value="1" />
        <attribute key="range" value="3" />  
        <attribute key="skillstatcriticalchance" value="25" />
        <attribute key="skillstatcriticaldamage" value="45" />
    </item>
But I kinda like all this scripting and im super curious about understanding and fixing stuff.
Hope someone can help me out :)

Server info: TFS 1.3
Tibia: 10.98
 
Code:
Functions:
getBoost(boostType)
Constants:
BOOST_CRITICALCHANCE = 0
BOOST_CRITICALDAMAGE = 1
BOOST_LIFELEECHCHANCE = 2
BOOST_LIFELEECHAMOUNT = 3
BOOST_MANALEECHCHANCE = 4
BOOST_MANALEECHAMOUNT = 5

Some lua additional. Can try into
\mods folder,
\data
\global
to every to test action.
 

I tried to compile, but after following the steps of your link it gave me some errors and didnt let me compile:
Snaggy - easy screenshots

Anyways ive been working on my server straight for over 10 hours :p I may have made a mistake while following your provided steps hehe

Edit: Compiling on Windows · otland/forgottenserver Wiki · GitHub
found this tutorial, seems I need to download libraries and stuff before compiling, going to try that now.
 
Last edited:
Alright, so I downloaded everything I needed and followed your link: Adding "boosts" introduced in Tibia 10.94 by nekiro · Pull Request #2395 · otland/forgottenserver · GitHub

The only errors I got were in game.cpp. I hope you would like to help me out!
These are the errors I got:
HWmNL6.jpg
 
Im really new to all this and I didnt know that it was possible.
I tried to add the rewardchest into my server and I compiled it manually. If I download the latest tfs1.3 wont it mess up my server?
If not, what should I replace exactly ?
 
Back
Top