View Full Version : Add Self.xxxPercent() functions and more.
eldera
12-24-2015, 12:25 AM
Would be nice if you can add those functions to XenoLuaLib:
- Self.ManaPercent()
- Self.HealthPercent()
- Self.LevelPercent()
- Self.ExperienceLeft()
- Self.SKILLPercent() where SKILL is Sword, Axe, Club, Mlvl itp...
And meaby Self.Vocation() - I know it's impossible to read them from client unless you "Look" on character ingame but it can be guessed by amount of health/mana at x level, also it's possible to track it by gear specified for each vocation like glaciar rod for ed, underworld robe for ms etc...
+ something that is currently impossible to do with xenobot - inviting players to party and accepting it. It's hard to make teamscripts without it.
Snurq
12-25-2015, 01:07 AM
u can easy make script for Self.Vocation() by analising your eq ( as you said) just script who look on your eq
edit:
Self.ManaPercent() is also easy to do just use this code
local ManaPercent = (Self.Mana() / Self.MaxMana() * 100)
krille09
12-25-2015, 01:53 AM
Yup, I use
Self.ManaPercent = function ()
return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
end
brindeds
12-29-2015, 10:24 AM
I see no problem in doing the calculations manually.
Fatality
12-29-2015, 05:12 PM
Would be nice if you can add those functions to XenoLuaLib:
- Self.ManaPercent()
- Self.HealthPercent()
- Self.LevelPercent()
- Self.ExperienceLeft()
- Self.SKILLPercent() where SKILL is Sword, Axe, Club, Mlvl itp...
And meaby Self.Vocation() - I know it's impossible to read them from client unless you "Look" on character ingame but it can be guessed by amount of health/mana at x level, also it's possible to track it by gear specified for each vocation like glaciar rod for ed, underworld robe for ms etc...
+ something that is currently impossible to do with xenobot - inviting players to party and accepting it. It's hard to make teamscripts without it.
HealthPercent and ManaPercent are possible, so it's irrelevant. XenoBot currently does not look at Skills (Besides level) IIRC. But if that has changed you will have to ask DarkstaR. The rest im too lazy to comment on.
eldera
12-29-2015, 06:59 PM
Snurq, krille09
I know how to calculate mana/health % but I am pretty lazy and don't want to add it everytime I need to use it so thats why I wanted to it in XenoLuaLib.
HealthPercent and ManaPercent are possible, so it's irrelevant.
It's not irrelevant. There is no point of adding Self.ManaPercent() manually every time I or anyone else want to use it in any script when it could be added to XenoLuaLib and be globally accessible from all scripts.
XenoBot currently does not look at Skills (Besides level) IIRC.
Ummm? This is suggestion section? :confused:
Fatality
12-29-2015, 11:08 PM
Snurq, krille09
I know how to calculate mana/health % but I am pretty lazy and don't want to add it everytime I need to use it so thats why I wanted to it in XenoLuaLib.
It's not irrelevant. There is no point of adding Self.ManaPercent() manually every time I or anyone else want to use it in any script when it could be added to XenoLuaLib and be globally accessible from all scripts.
Ummm? This is suggestion section? :confused:
Yeah, but Mana and Health... They're there.. NO point to make it native if you can do it, its like mapclick, you can do it, just people want it built in.
krille09
12-29-2015, 11:39 PM
make your own lib then make dofile("your file.lua") something like this then...
eldera
12-30-2015, 03:37 AM
Yeah, but Mana and Health... They're there.. NO point to make it native if you can do it, its like mapclick, you can do it, just people want it built in.
You are retarded.
make your own lib then make dofile("your file.lua") something like this then...
Yeah, but when I send script to someone I have to send this shit also... And other than that dofile sucks dick and require '' doesn't work :mad:
krille09
12-30-2015, 05:51 AM
it does work, your just not doing it right, just go support forum and tell whats wrong, it's hard to send ur lib to the person, or like i said earlier, just use it in ur original file
eldera
12-30-2015, 06:52 AM
Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
Fatality
12-30-2015, 04:15 PM
You are retarded.
Yeah, but when I send script to someone I have to send this shit also... And other than that dofile sucks dick and require '' doesn't work :mad:
How am i retarded? http://images.akamai.steamusercontent.com/ugc/36357635592724233/A32679C5E8B2E28E91D9B7DC2950DC4260F88776/
texmex47
01-01-2016, 04:33 AM
Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
allmywats.jpg
shadowart
01-02-2016, 11:04 AM
Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
In what way does require not work for you? I had to fight it a little to get package.path to accept a relative path but now it seems to be working.
HjugO
01-02-2016, 03:28 PM
Would be nice if you can add those functions to XenoLuaLib:
- Self.ManaPercent()
- Self.HealthPercent()
- Self.LevelPercent()
- Self.ExperienceLeft()
- Self.SKILLPercent() where SKILL is Sword, Axe, Club, Mlvl itp...
And meaby Self.Vocation() - I know it's impossible to read them from client unless you "Look" on character ingame but it can be guessed by amount of health/mana at x level, also it's possible to track it by gear specified for each vocation like glaciar rod for ed, underworld robe for ms etc...
+ something that is currently impossible to do with xenobot - inviting players to party and accepting it. It's hard to make teamscripts without it.
function getExperienceForLevel(level)
local level = level or Self.Level()
return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
end
function getExperienceLeft(level)
local level = level or Self.Level() + 1
return getExperienceForLevel(level) - Self.Experience()
end
eldera
01-03-2016, 02:48 AM
In what way does require not work for you? I had to fight it a little to get package.path to accept a relative path but now it seems to be working.
It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.
function getExperienceForLevel(level)
local level = level or Self.Level()
return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
end
function getExperienceLeft(level)
local level = level or Self.Level() + 1
return getExperienceForLevel(level) - Self.Experience()
end Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.
HjugO
01-03-2016, 09:45 AM
It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.
Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.
Fuck you PXForum kiddo, go there to your pedo-friends - ohhh wait I forgot ;). You are not a hub of Universe. If you don't wanna paste every time to your script then paste those functions to actually XB Library. Fuck you and have a nice day.
eldera
01-03-2016, 05:58 PM
Fuck you PXForum kiddo, go there to your pedo-friends - ohhh wait I forgot ;). You are not a hub of Universe. If you don't wanna paste every time to your script then paste those functions to actually XB Library. Fuck you and have a nice day.
Why you so mad bro? Take a chiill pill or something lol. If I paste those functions manually into XB lib people with my scripts would've to do exactly the same thing by themselfs, also after update of lib we would've to do it again.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.