Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with Self Buff conditions
Author Message
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #1
Need help with Self Buff conditions

Hi guys.

I'm trying to add REBIRTH on my healer in self buff with a condition to use it only when my MP is below let say, 10%...

And also to use it if my ISS's mp is below 10%...

Tried to figure it out, looked at the HELP in the self buff but I just can't have it to work...

Anyone would be kind enough to tell me how i should write the condition?

Thx in advance,
Cheers!
07-12-2014 19:39 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #2
RE: Need help with Self Buff conditions

Might need to make a script for this. Shouldn't be too hard.[/align]

(07-15-2014 20:06 PM)tophersoccer Wrote:  Might need to make a script for this. Shouldn't be too hard.[/align]

This will get you started, its a rough type up, no promise if it will work...


Code:
MpPercent = 10; --mp percentage
skillID = 11768 -- rebirth skill id

function isPartyMpLow()
    for member in MyParty.list do
            if member:GetMpPercent < MpPercent then
            return true;
            end;
    end        
end

function Cast(id)
if id then
     skill = GetSkills():FindById(id)
     if skill and skill:CanBeUsed() then
         UseSkillRaw(id,false,false)
         return true
     end
end
return false
end


repeat
    if not isPaused() and
        if  GetMe():GetMpPercent() < MpPercent then
        Cast(skillID);
        elseif isPartyMpLow() then
        Cast(skillID);
        end
    end
until false
(This post was last modified: 07-15-2014 20:24 PM by tophersoccer.)
07-15-2014 20:06 PM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #3
RE: Need help with Self Buff conditions

Thx for the answer...

So i put all this in conditions or its a script?

(07-15-2014 20:06 PM)tophersoccer Wrote:  Might need to make a script for this. Shouldn't be too hard.[/align]

(07-15-2014 20:06 PM)tophersoccer Wrote:  Might need to make a script for this. Shouldn't be too hard.[/align]

This will get you started, its a rough type up, no promise if it will work...


Code:
MpPercent = 10; --mp percentage
skillID = 11768 -- rebirth skill id

function isPartyMpLow()
    for member in MyParty.list do
if member:GetMpPercent < MpPercent then
return true;
end;
    end
end

function Cast(id)
if id then
skill = GetSkills():FindById(id)
if skill and skill:CanBeUsed() then
UseSkillRaw(id,false,false)
return true
end
end
return false
end


repeat
    if not isPaused() and
if GetMe():GetMpPercent() < MpPercent then
Cast(skillID);
elseif isPartyMpLow() then
Cast(skillID);
end
    end
until false
07-15-2014 21:32 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #4
RE: Need help with Self Buff conditions

Its a script. Here ill post so you dont have to make it


Attached File(s)
.lua  MP.lua (Size: 599 bytes / Downloads: 35)
07-15-2014 22:32 PM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #5
RE: Need help with Self Buff conditions

Thx a lot mate! Will try it tomorrow after maintenance !

+2 for u!
07-16-2014 03:48 AM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #6
RE: Need help with Self Buff conditions

Here is updated script.


Attached File(s)
.lua  REBRITHpartylowMP.lua (Size: 671 bytes / Downloads: 34)
07-17-2014 23:28 PM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #7
RE: Need help with Self Buff conditions

(07-17-2014 23:28 PM)tophersoccer Wrote:  Here is updated script.

Thx, ill try this new one cuz the 1st was giving an error...

thx again! +2
07-17-2014 23:31 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #8
RE: Need help with Self Buff conditions

I've been testing it and it pops rebirth whenever the skill finishes its cooldown so i'm not sure why its not detecting my own mp and party member mp correctly before it casts the skill :/. I did do another update to check that its a party member before it does rebirth but it still pops rebirth whenever it can be casted....so yeah lol

Alright i fixed it! here is final script. I have also have made another script that extends the rebirth script that will pop celestial party protection when my self or any party member is below 30% HP. So if you want that then private message me


Attached File(s)
.lua  REBRITHpartylowMP.lua (Size: 728 bytes / Downloads: 26)
.lua  REBRITHpartylowMP.lua (Size: 744 bytes / Downloads: 35)
(This post was last modified: 07-21-2014 01:37 AM by tophersoccer.)
07-21-2014 01:31 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Little help for Newbie. Buff myself at NPC niklas2208 0 1,187 08-05-2015 15:17 PM
Last Post: niklas2208
  need scrip for iss buff in pt aneduca 1 1,209 06-08-2015 04:56 AM
Last Post: plixplox
  Help party buff adrenal1ne 7 2,480 08-08-2014 03:32 AM
Last Post: tophersoccer
  ISS BUFF PARTY and Go? Mafian 0 1,839 10-14-2013 18:01 PM
Last Post: Mafian



User(s) browsing this thread: 1 Guest(s)