You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

1,321

Thursday, April 10th 2014, 3:16am

If I remember correctly, you will need a small time delay between each item use in order to give the game time to register the fact and actually equip the item.

This becomes a bit of a problem, since timers inside Lua code will block the use of items and spells (when used from something called by the timer that is).

The only thing I can think of to get around this would be to have the DIYCE code to set a special variable to indicate if you should equip things, Then modify the macro so that it first calls DIYCE then checks the variable and if set does one of the equip calls, wait a small bit then does the next piece by again check the variable, etc. Finally, clear the special variable.

example:

Source code

1
2
3
4
5
/run KillSequence(xx,xx,xx,xx)
/run if DoEquip then UseItemByName("Item 1") end
/wait 0.1
/run if DoEquip then UseItemByName("Item 2") end
/run DoEquip = false


The biggest problem with this method is that no matter what, it puts a contant delay on how often the DIYCE macro can be run due to all the /waits in there.
2013... The year from hell....

1,322

Thursday, April 10th 2014, 3:23am

ty for your help

This post has been edited 1 times, last edit by "dreamweaver537" (Apr 10th 2014, 3:43am)


1,323

Saturday, April 12th 2014, 5:04pm

hey, I wanted to write a diyce part for warlock/Champion, but it doesn`t work, for my warlock/rouge the script for this class does work, but if I write 1 for my w/c nothing happens, even if everything is written normaly. Anybdy can post the script for w/c? pls..

Auros

Professional

Posts: 1,360

Mood: Mellow

  • Send private message

1,324

Saturday, April 12th 2014, 9:34pm

Could you post what you wrote up for yourself so we could maybe see where the error was.
Govinda P/W/K/M 100x4 :pump:
Wl/R/M/Ch 100x4 :borg:
Wd/W/S 100/100/100
W/M 100/100 Glass Cannon: oh gawd, not again :pinch: ... and numerous others Semi-retired :pillepalle:

1,325

Saturday, April 12th 2014, 11:28pm

--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

Mrpushpop

Master of the Storyteller

Posts: 800

Location: Indigo - The small and feisty server

Mood: Mellow

  • Send private message

1,326

Monday, April 14th 2014, 2:22pm

OxyMorph there are a few problems with the Warlock/Champ diyce. I believe Saces Impulse is unable to work even in the correct format because of an error. Xamd/Blankminded found a solution a few pages or more back. I am on my work computer so I cannot post my fix here yet but if noone else has replied when I get home, I can go over it.

The way you have it set up, if you are too close to an enemy it is going to select that enemy instead of using buffs which I am thinking is your current problem.

On a personal note, I would not use puzzlement that late in your rotation. That is your Sledgehammer skill and if you pop all your dark damage buffs at the end of countdown I would hit WWC, electrocution for more dark damage and then puzzlement now getting 150% more dark damage. that baby can hit a grotto HM boss 3million. On a side note cast shield of solid mind to enter combat during countdown that will allow u you cast Rage Sublimation early and in turn Saces' Impluse before the fight even starts.

Marvengus

Beginner

Posts: 14

Location: Netherlands

Occupation: Mathematician, Scientist

Mood: Smile

  • Send private message

1,327

Monday, April 14th 2014, 11:35pm

I just added Warden as 3rd class for my Mage, so I'm now trying to create a Mage/Warden script. I now have the following. Initially, I had "Earth Groaning Wind Blade" before "Fireball", but I noticed that DIYCE was trying "Earth Groaning Wind Blade" all the time, as if it did not respect the cool down. Strange, since that is a pretty well-tested core feature of the script, and works in all my other combo's. So I'm puzzled. Anyone see a mistake in this script? Or is there something special with "Earth Groaning Wind Blade" ?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    elseif mainClass == "MAGE" and subClass == "WARDEN" then

      Skill = {
        -- Silence
        { name = "Silence",  use = (silenceThis) },											--	4 sec?	CD = 24 sec 
        -- Potions
        { name = "Action: "..healthpot,  use = (phealth <= .50) },
        { name = "Action: "..manapot,  use = ((pctEB1 <= .30) and (phealth >= .50)) }, 			-- 	only mana pot if decent health
        -- Buffs to keep on at all times
        { name = "Briar Shield",  use = (not pbuffs["Briar Shield"]) }, 							--	15 min
        { name = "Earth Scepter",  use = (not pbuffs["Earth Scepter"]) }, 						--	15 min
        { name = "Energy Influx",  use = (not pbuffs["Energy Influx"]) },							--	30* sec	CD = 2 min
        { name = "Electrostatic Charge",  use = (not pbuffs["Electrostatic Charge"]) },			--	60 sec	CD = 2 min
    }
    -- Attack spells
    if enemy then
      Skill2 = {
        { name = "Intensification",  use = ((boss or elite) and not pbuffs["Intensification"]) },		--	20 sec	CD = 2 min
        --{ name = "Absence", use = (boss and not tbuffs["Absence"]) },				--	20 sec	CD = 60 sec	only interesting once we have lvl 60 elite
        { name = "Elemental Catalysis", use = (boss and not pbuffs["Elemental Catalysis"]) },		--	Duurt 20 sec	CD = 5 min
        -- in melee mode, mobs are close/around me
        { name = "Discharge",  use = (melee) },												--	Instant		CD = 15 sec		=> Damage + Stun
        { name = "Purgatory Fire",  use = (melee) },
        --	Pin target
        { name = "Lightning",  use = (not tbuffs["Lightning"]) },  								--	Instant		CD = 20 sec
        --	Attack
        { name = "Fireball",  use = (true) },												--	Instant		CD = 5 sec (-1 from Flame Follower elite)
        { name = "Earth Surge", 	 use = (true) },											--	Instant		CD = 3 sec
        { name = "Earth Groaning Wind Blade", use = (true) },									--	Instant		CD = 6 sec
        { name = "Flame",   use = (boss and tbuffs["Elemental Weakness"]) },		
        { name = "Plasma Arrow",  use = (not pbuffs["Charged"]) },								--	2 sec		CD = 0	=> Charged => + Critical Hit
        { name = "Meteor Shower",  use = (combat) },										--	Instant		CD = 0
      }
   end
Marvengo R/S/K (90/90/65)
Marvengus M/D/Wd (85/80/68 )
Playing on Isilitir (EU)
Guild Traumfaenger

ghostwolf82

Professional

  • "ghostwolf82" started this thread

Posts: 859

Location: Kalvans Trunk

Occupation: It's dark in here

  • Send private message

1,328

Friday, April 18th 2014, 9:01pm

Does EGWB have a cooldown of its own? Is it an instant cast with a cd, or a casted skill with no cd? If the latter, and you have managed to get the cast time to below 1 second, then yes, the script will in fact keep trying to cast EGWB unless you set up a CD check for fireball.

1,329

Saturday, April 19th 2014, 2:06pm

hey i was just wondering with diyce in pvp is there anything i have to add or could add to the script to stop it from targeting pets or to make it automatically cancel pet as target? was having some trouble with it when i was trying m/wd flame spam :missilelauncher:

1,330

Saturday, April 19th 2014, 9:13pm

the newer versions of diyce should already have something to avoid that. However, if it doesn't work you can use "mode" option and modify the very bottom of custom functions file to the following:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if (mode == "SeigeWar") then
		if (not LockedOn) or (not enemy) then
			for i=1,10 do
				if UnitIsPlayer("target") then
					break
				end
				TargetNearestEnemy()
				return
			end
		end
	
	elseif (not SeigeWar) then
		if mainClass == "RANGER" and (not party) then		--To keep scouts from pulling mobs without meaning to.
			if (not LockedOn) or (not enemy) then
				TargetNearestEnemy()
				StopDIYCETimer("LBBleed")
				StopDIYCETimer("SSBleed")
				return
			end
		elseif mainClass ~= "RANGER" then					--Let all other classes auto target.
			if (not LockedOn) or (not enemy) then
				TargetNearestEnemy()
				StopDIYCETimer("LBBleed")
				StopDIYCETimer("SSBleed")
				return
			end
		end
	end


changes are in bold. You basically change the variable "siege war" which just checks the Zone ID, and replace it with a MODE setting of sw. As already mentioned I seem to be having trouble with some things detecting siege war zones. If you're diyce doesn't look like this at the bottom of custom fuctions you can just replace the "targetting" block with this one -- you would then call KillSequence(_,"SiegeWar") as your macro

hangman04

Savage Warrior

Posts: 113

Location: Romania

Mood: Smile

  • Send private message

1,331

Sunday, May 18th 2014, 12:27pm

If I remember correctly......
just wanted to say : Welcome back Peryl!

ghostwolf82

Professional

  • "ghostwolf82" started this thread

Posts: 859

Location: Kalvans Trunk

Occupation: It's dark in here

  • Send private message

1,332

Friday, June 27th 2014, 9:41am

Since the addon community is where I really got my start on these forums, and this particular thread is my big contribution to RoM as a whole, I felt it fitting to say my goodbye here, amongst my fellow programmers. I wish you guys well, and I may be around here and there to answer questions, but officially this is goodbye to you guys. It has been a good run, five years of having fun and getting to see some of you become knowledgeable in how DIYCE works and branching that off into other works for RoM. It has been my pleasure to work with so many talented minds along the way, and I will forever remember you all fondly. I am not bitter about leaving, I am more sad to see it come to an end than anything. I am not leaving for another game, and will leave RoM installed for now. Real life has been more of a focus than anything else lately, and has been that way for a few months now, and with the death of my main with patch 6.1.0 I just don't have it in me to do it all over again. I moved to a new server, switching from Palenque after 4 years there, to Reni and spent a year there where Zidlef (and Kierr, and Hootie, and Knight) helped make the game last another year for me. I thank him for that immensely, and will hopefully get to meet him IRL fairly soon :) and I have gotten to meet other people IRL along the way as well. My past here in RoM is a storied one, and some of you know it well, and my time here, like eventually happened in WoW (where I was also an addon dev/macro king), has finally just come to a close. You guys have been great to spend my time with, and I have no regrets helping you all out and getting to answer so many questions! I hope I am leaving a legacy that can be remembered with fondness the way I can remember others who helped me when I was just starting, and have left this game before me. Everything comes to an end, this is just another beginning waiting to happen. I love you all, take care of each other and be excellent to each other.

~GW

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

1,333

Friday, June 27th 2014, 12:04pm

Sad to see you leave, but one must retire at some point.

Enjoy whatever you end up doing my friend.

-Peryl
2013... The year from hell....

Cike

Rogue

Posts: 4,171

Occupation: Being Human

  • Send private message

1,334

Friday, June 27th 2014, 11:26pm

Sad to see you go. You were one of the best on palenque, and pushed the limits of RoM period. The work you did with class combos was unparallelled, and really expanded the world of Runes of Magic. I may admit, we might not have always seen eye to eye, especially the last few times we talked, but it was a privilege knowing you, and I am honored to have had the chance to meet and talk at all.

i get the whole "straw that broke the camel's back" thing, been closer than you can imagine(well, you prolly can) myself...

Take care,
Cike/Cikie
my r/p can outdps r/m. your name is stupid.

mages should stack dex. word.

This post has been edited 1 times, last edit by "Cike" (Jun 27th 2014, 11:58pm)


1,335

Monday, June 30th 2014, 1:32pm

Sorry to see you go, ghost. Your expertise will be missed here on the forum...

Thank you for the diyce! It's an absolutely fantastic and awesome tool! :)

Oh, and your Wl guide is great - an obligatory starting point for any Wl.
>>>> >>>> >>>>
>>>>
>>>> Please, bring back (bound if there is no other option) dias to AH! :thumbsup:
>>>> If you do this we will all love you forever. ;)
>>>>
>>>> >>>> >>>>

1,336

Wednesday, August 27th 2014, 6:41am

Hi, can anyone point me to post or tell how to get certain skill to be used only when my target targets me.

Thank you!
Mythomage from Siochain!


W95/M95/K95/P95/S95/R85


1,337

Wednesday, August 27th 2014, 2:22pm

Hi, can anyone point me to post or tell how to get certain skill to be used only when my target targets me.

Thank you!

UnitIsUnit("player","targettarget")

this is the condition u r looking for

1,338

Wednesday, August 27th 2014, 5:36pm

Hi, can anyone point me to post or tell how to get certain skill to be used only when my target targets me.

Thank you!

UnitIsUnit("player","targettarget")

this is the condition u r looking for
Thanks, works nicely! :thumbup:
Mythomage from Siochain!


W95/M95/K95/P95/S95/R85


1,339

Saturday, August 30th 2014, 11:51pm

How to rotate camera view?

All,

I am interested in adding a rotated view to my DIYCE script but I can't seem to figure it out. I found the API for RotateCamera and believe I call it correctly to look behind me:

RotateCamera(1,0,6.0,0)

However, nothing happens. Any ideas?
I don't support 1 Server. I just like the Anagram - GOAT GRIP!

1,340

Sunday, September 7th 2014, 5:15pm

Ok...how about this. If I name an in game macro "blahblah" how would I call that from DIYCE?
I don't support 1 Server. I just like the Anagram - GOAT GRIP!