PDA

View Full Version : Improve 'Recovery' in the condition manager



psychaos
02-03-2012, 10:20 PM
Recovery is a very handy spell for reducing mana pots used and therefore increasing profits. At the moment the spell just refreshes once it expires, but if i happen to be a full health, then it is wasted mana.

I suggest a 'health%' box so that it only casts when health goes below x amount....

please :)

Spectrus
02-03-2012, 10:55 PM
Write a script?



local t1 = os.time()
while(true) do
if(os.difftime(os.time(), t1) > 60) then
if(Self.Health() < minHealth) then
Self.Say("utura")
t1 = os.time()
end
end
sleep(100,300)
end


No idea if this works. Haven't tested, but it's a good place to start.

Mac
03-13-2012, 12:49 PM
well ive reported it ages ago and what ive got is a thread closed for disrespect xD whatever heres the probable solution
function uturaGran(hppc) local t1 = os.time() local t2 = 0 local hp = Self.Health() local mhp = (Self.MaxHealth()*hppc)/100 while(hp < mhp) do t2 = os.time() local t3 = t2 - t1 if (t3 > 60) then Self.Say("utura gran") t1 = os.time() t3 = 0 end end return false end while (true) do uturaGran(98) wait(1000,2000) end change spell to whichever you want and hp percentage in the brackets or idk after i merged it with other scripts it causes huge lag any clue why? edit it actually eats alot of processor even alone and sometimes crashes entire klient while killed, can you guys come up with a solution?
function utura(hppc) local t1 = os.time() local t2 = t1 local t3 = 0 local hp = Self.Health() local mhp = (Self.MaxHealth()*hppc)/100 while(hp < mhp) do t2 = os.time() local t3 = t2 - t1 if (t3 > 60) then Self.Say("utura gran") t1 = os.time() t3 = 0 end wait(2000,3000) end end while(true) do utura(85) end aye my bad now it works fine

rustas
03-13-2012, 04:03 PM
or just set
Spell hi: utura at like 60%
Spell lo: exura ico at 45%
mana refill under 70
at the support settings. =)

Elvang
03-13-2012, 04:20 PM
^ owned.

Mac
03-13-2012, 04:40 PM
well as ive already posted in another thread, when you set it up this way and want exura ico as a cure for paralyze aswell, it doesnt cure your paralyze at all thats why im looking for another solution as my thread got locked by darkstar lol

especially that the one ive made doesnt work the way i wished it was -.-

Luls
03-13-2012, 10:40 PM
Seriously, stop double posting. I hate merging posts, because things like what happened to the triple post you made tend to happen.

Mac
03-13-2012, 11:52 PM
love when you flame me for some off topic craps but you cant say anything on topic that would help

Behersk
03-14-2012, 01:32 AM
Why dont you set it to x ammount of mana, then u wont be "wasting" other than u would be gaining magic lvl :p

Luls
03-14-2012, 02:41 AM
My bad for doing my job as a forum mod, bro. I'll do my best to let everyone do what they want from now on.

Mac
03-15-2012, 12:40 AM
well id expect more from mods admins or whatever than just flaming others, unless you gain a moderator position for so called cute face, without any knowledge or idea to help others? im asking a question a barely experienced lua programmer should be answering within 3 seconds while being waken up at the 5 am and so far i havent get any answer within 2 days, and 2 weeks in another thread, just some dumb walkarounds that simply dont work the way I want. More, they dont work the way we all want them to work, cuz its pretty obvious with the solutions im stating the character itself uses less mana. but I still cant get it working properly, ive tryed an other way around with


function antypara()
if (Self.Speed() < 300) then
Self.Say ('exura ico')
wait(500,800)
end
end
while(true) do
antypara()
wait(1000,1400)
end

which, despite the fact that it crashes my client pretty often when im loging the char out, aint working the way id expect it to do. its not like im asking for a big effort, but when im getting answers that do NOT refer to my problem in any way im getting simply nervous, wouldnt you?