• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua How to make mana and hp with 100%

Seumion

★ Spell Maker & Mapper ★
Joined
Feb 24, 2015
Messages
172
Reaction score
2
hello otland and support can anyone tell me how can i make my ot my mana and my hp with 100%

using tfs 0.3.6 8.6
 
Not sure if you are talking about potions o0 but...

You could edit the potions.lua (actions>scripts>liquids) and select a huge ammount to recover
Code:
local POTIONS = {
    [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
    [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
    [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion
    [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion
    [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion

    [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion
    [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
    [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion

    [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion
}

Just chage the numbers inside the { }. It works this way: {min to recover, max to recover}, so you could change to {9999999999999,99999999999999999} and test.
 
Not sure if you are talking about potions o0 but...

You could edit the potions.lua (actions>scripts>liquids) and select a huge ammount to recover
Code:
local POTIONS = {
    [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
    [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
    [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion
    [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion
    [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion

    [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion
    [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
    [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion

    [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion
}

Just chage the numbers inside the { }. It works this way: {min to recover, max to recover}, so you could change to {9999999999999,99999999999999999} and test.
doesn't work
 
nono bro i want my mana and hp with 100% not like this .Health 10120120 Mana 10101010

you understand?
 
That one you linked didnt work for me..
What diden't work?

A good way to get help is by actually saying what the problem is..
The problem is most likely that the code differs, I tought everyone quickly compares the code to see if you have a major diffrence etc. But apparently not.
 
What diden't work?

A good way to get help is by actually saying what the problem is..
The problem is most likely that the code differs, I tought everyone quickly compares the code to see if you have a major diffrence etc. But apparently not.
I did as Limos said.. And i saved restarted the ot.. And still same numbers no errors or crashes
 
didnt work maybe its not for 0.4?
It is clearly not for 0.4, but 0.3 and 0.4 is pretty much the same crap.

You must have copied it wrong, because I can't find anything in that code that should have been changed.
But as I said, check the code you are replacing first. @Limos made this really nice for you, all you have to do is check what he tells you to replace and then if they are the same replace it.
The only thing I can see is that the indentation is way off, but those versions had really messy codes so he probbly did it to make it "fit in" hahahah....
 
I think he wants the status to be shown in the client. You cant do it, its a client limitation over the numbers displayed.

Sorry, but unless you are able to state exactaly what you want, we cant help. I could not figure out what you need...
 
Back
Top