|
|
Source code |
1 |
{ name = "Action: 25 (Food)", use = (not combat) and (not pbuffs[507050]) and (not pbuffs[507041]) or (pbuffs[507050].time <= 45) or (pbuffs[507041].time <= 45) },
|
Don't know if someone answered this poor little guy, so i will.--Class Warlock/Champion
elseif mainClass == "HARPSYN" and subClass == "PSYRON" then
--Potions and Buffs
Skill = {
{ name = "Sublimation Weave Curse", use = ((EnergyBar1 >= 50) and (not pbuffs['Sublimation Weave Curse'])) },
{ name = "Mind Rune", use = ((EnergyBar1 >= 15) and (not pbuffs['Mind Rune'])) },
{ name = "Saces' Fury", use = ((EnergyBar2 >= 10) and (not pbuffs['Saces' Fury'])) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Willpower Blade", use = (PsiPoints == 6) },
{ name = "Saces' Impulse", use = ((pbuffs ['Willpower Blade']) and (PsiPoints >= 2) and (not pbuffs['Saces' Impulse'])) },
{ name = "Severed Consciousness", use = ((pbuffs ['Willpower Blade']) and (PsiPoints >= 2)) },
{ name = "Heart Collection Strike", use = (EnergyBar1 <= 50) },
{ name = "Weakening Weave Curse", use = ((EnergyBar1 >= 20) and (not tbuffs['Weakened'])) },
{ name = "Warp Charge", use = ((EnergyBar1 >= 30) and (not pbuffs['Warp Charge'])) },
{ name = "Puzzlement", use = (EnergyBar1 >= 20) },
{ name = "Energy Influx Strikes", use = ((EnergyBar2 >= 30) and (tbuffs['Electrocution'])) },
{ name = "Electrocution", use = ((EnergyBar2 >= 20) and (not tbuffs['Electrocution'])) },
{ name = "Psychic Arrows", use = (PsiPoints <= 6) },
}
its not even able to play, if I clock on the diyce makro it just changes the enemy^^ that who's it has to be anything IN the Script for warlock/champ
|
|
Source code |
1 |
{ name = "Saces' Fury", use = ((EnergyBar2 >= 10) and (not pbuffs['Saces' Fury'])) },
|
|
|
Source code |
1 |
{ name = "Saces' Fury", use = ((EnergyBar2 >= 10) and (not pbuffs["Saces' Fury"])) },
|
I'm trying to make a simple buffing routine in diyce. One line seems to be messing everything up, and I can't figure out what i've done wrong. Any advice would be appreciated.
![]()
Source code
1{ name = "Action: 25 (Food)", use = (not combat) and (not pbuffs[507050]) and (not pbuffs[507041]) or (pbuffs[507050].time <= 45) or (pbuffs[507041].time <= 45) },
It's supposed to use whatever food i have in slot 25 if Juicy Battered Fish or Juicy Spare Ribs are not already on me or if they have 45 or fewer seconds left before they run out. Thanks!
|
|
Source code |
1 |
/run KillSequence(arg1, mode, healthpot, manapot, Healslot, foodslot, speedpot, ragepot, HoTslot) |
|
|
Source code |
1 |
/run KillSequence("v1",dps,21,22,"",25)
|
This post has been edited 1 times, last edit by "SirMasterBlue" (Nov 10th 2014, 2:03pm) with the following reason: Adding info
Hello,
Fast question: which is the last version of DIYCE.lua. Still the 2.4 version from page 1, or the version from curse 2.4.2 or it has been optimized here on forums to a new version ? Kinda hard to find this in over 68 pages of info....
thanks in advance.

Is there anyway someone could put together a "best of" with good scripts for all the classes?
|
|
PHP Source code |
1 |
{ name = "Custom: Holy Strike", use = (pctEB1 >= .05) and (not tbuffs["Light Seal III"]) },
|
|
|
PHP Source code |
1 |
{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {"Mana Shield"} },
|
Question 1:
What does "custom:" do in K/M diyce and in general?
![]()
PHP Source code
1{ name = "Custom: Holy Strike", use = (pctEB1 >= .05) and (not tbuffs["Light Seal III"]) },
Why not just ( name = "Holy Strike", Use = ...)
Question 2:
What diyce will do with "function: cancelbuff" in this particular example?
![]()
PHP Source code
1{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {"Mana Shield"} },
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 |
function CustomAction(action)
if CD(action) then
if IsShiftKeyDown() then Msg("- "..action) end
g_lastaction = action
CastSpellByName(action)
return true
else
return false
end
end
|
|
|
Source code |
1 |
{ name = "Custom: Holy Light Domain", use = (pctEB1 >= .05) and (not tbuffs["Holy Illumination"]) and ((tbuffs["Light Seal I"]) or (tbuffs["Light Seal II"]) or (tbuffs["Light Seal III"])) and (g_lastaction ~= "Holy Light Domain") },
|
|
|
Source code |
1 |
{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {"Mana Shield"} },
|
This post has been edited 1 times, last edit by "BlankMinded" (Dec 26th 2014, 6:55pm)
|
|
Source code |
1 2 3 4 5 6 7 8 |
{ name = "Charge", use = (pctEB1 >= .05) },
{ name = "Shadow Step", use = (EnergyBar2 >= 60) and (not behind) },
{ name = "Threaten", use = (pctEB1 >= .05) and (not (tbuffs[500241]) and (tbuffs[500169]) and g_lastaction ~= "Holy Strike") },
{ name = "Punishment", use = (pctEB1 >= .05) and (tbuffs[500169]) and g_lastaction ~= "Threaten" },
{ name = "Strike of Punishment", use = (pctEB1 >= .05) and (tbuffs[500169]) and g_lastaction ~= "Punishment" },
{ name = "Disarmament", use = (pctEB1 >= .05) and g_lastaction ~= "Shadow Step" and not g_lastaction ~= "Holy Strike" and (not (tbuffs[500165]) or (tbuffs[500157]) or (tbuffs[500158]) or (tbuffs[500159])) },
{ name = "Shock", use = (pctEB1 >= .05) and (tbuffs[500165]) },
{ name = "Holy Strike", use = (pctEB1 >= .05) and (not tbuffs[500169]) },
|
This post has been edited 1 times, last edit by "SirMasterBlue" (Dec 26th 2014, 7:04pm)
The version of Diyce I have only references that variable during a Custom: action call. I don't know if subsequent version changed use, and I'm sure that users can make use of that variable easily as well.
|
|
Source code |
1 |
{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {"Mana Shield"} },
|
|
|
Source code |
1 2 3 |
if pbuffs[501797] then
CancelBuff("Mana Shield")
end
|
|
|
Source code |
1 |
{ name = "Disarmament", use = (pctEB1 >= .05) and g_lastaction ~= "Shadow Step" and not g_lastaction ~= "Holy Strike" and (not (tbuffs[500165]) or (tbuffs[500157]) or (tbuffs[500158]) or (tbuffs[500159])) },
|
|
|
Source code |
1 |
{ name = "Disarmament" use = CheckDisarmement },
|
|
|
Source code |
1 2 3 4 5 6 7 8 |
function CheckDisarmament()
if pctEB1 >= .05 and g_lastaction == "Holy Strike" then -- Slight optimization of the g_lastaction checks
if not tbuffs[500165] or tbuffs[500157] or(tbuffs[500158] or tbuffs[500159] then
return true
end
end
return false
end
|
This post has been edited 3 times, last edit by "SirMasterBlue" (Dec 28th 2014, 1:27am) with the following reason: I post too often