Go Back   Forum > Runes of Magic - (EN) > Community > AddOns & UI

Closed Thread
 
Thread Tools Display Modes
Old 08.10.2009, 05:50   #1
Mavoc
 
Server: US - Artemis
Gilde: SilentWarriors
 
Join Date: 19.02.2009

Gender:

Users Flag!
Default Solution to what broke nBuff has been found

a function can now only use one skill/item per ingame calling of that function.

solution

make a macro

/run function()
/wait 1
/run UseAction(#)

make the # be the location of the macro on your hotbar and every second the function will be called ingame and use one skill/item if need be
Mavoc is offline  
Old 08.10.2009, 05:52   #2
Mavoc
 
Server: US - Artemis
Gilde: SilentWarriors
 
Join Date: 19.02.2009

Gender:

Users Flag!
Default

as long as all of the addon is inside of this one function a replacement to nBuff can be made.
Mavoc is offline  
Old 08.10.2009, 12:15   #3
KiaraAscaria
 
 
Join Date: 14.06.2009

Default

you dont have to have all of the addon inside the macro

you just have to remove the OnUpdate event in the xml and call the onupdate function manually using such a macro

works well with nbuff and SkillQueue
(although the new and nice spellautomove screws with that one a bit)

removing one line in the xml and
Quote:
/script SkillQueue.OnUpdate()
/script nBuff_OnUpdate()
/wait 0.1
/script UseAction(#)
works

Last edited by KiaraAscaria; 08.10.2009 at 12:21..
KiaraAscaria is offline  
Old 08.10.2009, 13:28   #4
certcz
 
 
Join Date: 30.03.2009

Default

Quote:
Originally Posted by KiaraAscaria View Post
you dont have to have all of the addon inside the macro

you just have to remove the OnUpdate event in the xml and call the onupdate function manually using such a macro

works well with nbuff and SkillQueue
(although the new and nice spellautomove screws with that one a bit)

removing one line in the xml and


works
Next nerf will be disabling /script in macros.
Btw is the problem only in functions called from OnUpdate or also in OnEvent?
__________________
50 S/K
certcz is offline  
Old 08.10.2009, 13:39   #5
brentona
 
brentona's Avatar
 
 
Join Date: 23.06.2009

Default

this is too confusing for laymen hahha....pls can anyone give a more specific detail as to where and how to program it? for example in game? on macro? where and wht to type exactly etc...

thx
brentona is offline  
Old 08.10.2009, 13:47   #6
KiaraAscaria
 
 
Join Date: 14.06.2009

Default

not sure

single actions called by onevent work
dunno if theres some kind of limit (when a function called by an event is considered part of a loop or somethind individual)

all i can say is
nbuff works using this workaround
and so does skillqueue (if you are already in range, that is)

Edit:
@brentona
remove the line "nBuff_OnUpdate(this)" in nbuff.xml
(might not even be necessary (but it is with skillqueue))

create a new macro that executes itself
Quote:
/script nBuff_OnUpdate()
/wait 0.1
/script UseAction(#)
and put it in hotbarslot #
(you should know about the hotbarnumbers already if you used nbuff)
(first bar 1,2,3... second 21,22,.. third 41,42,... fourth 61,62,...)

click the macro everytime you start playing
(or add UseAction(#) somewhere)
(i added it in the variablesloaded section of OnEvent in nBuff.lua)

except for one ugly hotbarbutton more, everything is like it were before

Last edited by KiaraAscaria; 08.10.2009 at 14:04..
KiaraAscaria is offline  
Old 08.10.2009, 14:17   #7
brentona
 
brentona's Avatar
 
 
Join Date: 23.06.2009

Default

make a macro

/run function()
/wait 1
/run UseAction(#)




Ok I make the above macro but it give me error message on the nBuff_OnUpdate() (a nil value)

Do I need to put something in the "(?)" of the line "/run function()"?

thx
brentona is offline  
Old 08.10.2009, 14:40   #8
KiaraAscaria
 
 
Join Date: 14.06.2009

Default

strange

nBuff_OnUpdate() does expect (this) but doesnt actually use it
so it should be fine without and it works for me without
lua functions usually dont care if a parameter is missing they dont really need for something

Quote:
/script nBuff_OnUpdate()
/wait 0.1
/script UseAction(66)
is the exact code i use

Last edited by KiaraAscaria; 08.10.2009 at 14:53..
KiaraAscaria is offline  
Old 08.10.2009, 16:01   #9
fillemar
 
 
Join Date: 19.05.2009

Default

Can somebody explain this step by step for us who havent been schooled as programmers? :-)
fillemar is offline  
Old 08.10.2009, 16:07   #10
spillageuk
 
 
Join Date: 18.01.2009

Default

goto your nbuff directory C:\whereever\Runes of Magic\interface\Addons\nBuff
open nbuff.xml
find the following
<OnUpdate>
nBuff_OnUpdate(arg1);
</OnUpdate>
delete this chunk save the xml file
start rom
Create a macro that has the following

/script nBuff_OnUpdate()
/wait .7
/script UseAction(40)

Drag the macro to skill slot 40
click macro in skill slot 40

or use whichever slot you fancy just replace the refs to 40 with the slot number you use

done.
thanks to KiaraAscaria

Last edited by spillageuk; 08.10.2009 at 16:14..
spillageuk is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +2. The time now is 14:16.

Top

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.