Find out which ExtraSkill one has

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
dr-nuker
Posts: 145
Joined: Sun Oct 09, 2011 7:33 am

Find out which ExtraSkill one has

#1 Post by dr-nuker »

Hello everybody,

time for some questions :)

First of all I was wondering if there is a way to find out which skill is placed in your extraaction bar slot number one.
I was thinking about making a very simple waypoint for the chessgame at varanasbridge, but could not figure out how to check which spell i have loaded...

Another thing:
In the dalanis event. You need to check the target and the current value of the flamebuff.
is this to be done like

Code: Select all

		local buffed = player:getBuff("Pyrotechnical Expert")
		yrest(100)
		if (buffed) then
			score = buffed.Level
		end
and if so how to find the target value?

Thanks in advance

br
nuker
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Find out which ExtraSkill one has

#2 Post by lisa »

to know which skill you have on actionbar you can use this function

Code: Select all

function getChessSkill()
	local icon = RoMScript("GetExtraActionInfo(1)")
	if icon then
		if string.find(icon,"97") then
			return "fire"
		elseif string.find(icon,"31") then
			return "frost"
		elseif string.find(icon,"40") then
			return "lightning"
		end
	end
	return "no skill"
end
it will return, fire, frost, lightning or no skill

for the buff you would do pretty much the same but instead of "player" you would do a pawn of your target

Code: Select all

player:updateTargetPtr()
local target = CPawn(player.TargetPtr)
      local buffed = target:getBuff("Pyrotechnical Expert")
      yrest(100)
      if (buffed) then
         score = buffed.Level
      end
Something along those lines anyway

Code: Select all

Command> print(getChessSkill())
interface\Icons\boss_skill\skill_boss_skill_97.dds
fire
Command> print(getChessSkill())
interface\Icons\boss_skill\skill_boss_skill_31.dds
frost
Command> print(getChessSkill())
interface\Icons\boss_skill\skill_boss_skill_40.dds
lightning
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Find out which ExtraSkill one has

#3 Post by lisa »

the objects look like this.

Code: Select all

Command> kk()
table: 019FBDD0
Id:     121746
Z:      295
Address:        37458176
X:      3331
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC460
Id:     121746
Z:      281
Address:        1309677824
X:      3310
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC500
Id:     121746
Z:      259
Address:        1381525760
X:      3446
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC528
Id:     121746
Z:      233
Address:        1381561600
X:      3462
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC578
Id:     121746
Z:      253
Address:        1384302592
X:      3327
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC708
Id:     121746
Z:      217
Address:        1421746944
X:      3377
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC730
Id:     121746
Z:      204
Address:        1421748224
X:      3416
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC758
Id:     121746
Z:      218
Address:        1421749504
X:      3438
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC780
Id:     121746
Z:      231
Address:        1421750784
X:      3400
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC7A8
Id:     121746
Z:      190
Address:        1421752064
X:      3395
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC7D0
Id:     121746
Z:      229
Address:        1421753344
X:      3342
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC7F8
Id:     121746
Z:      203
Address:        1421754624
X:      3357
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC870
Id:     121746
Z:      177
Address:        1421775104
X:      3372
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC8E8
Id:     121746
Z:      241
Address:        1423643648
X:      3363
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC910
Id:     121746
Z:      268
Address:        1423644928
X:      3408
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC938
Id:     121746
Z:      282
Address:        1423646208
X:      3370
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC960
Id:     121746
Z:      310
Address:        1423691008
X:      3416
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC988
Id:     121746
Z:      284
Address:        1423692288
X:      3431
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC9B0
Id:     121746
Z:      255
Address:        1423693568
X:      3386
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FC9D8
Id:     121746
Z:      244
Address:        1423694848
X:      3422
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FCA00
Id:     121746
Z:      337
Address:        1423696128
X:      3399
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FCA28
Id:     121746
Z:      322
Address:        1423697408
X:      3376
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FCA50
Id:     121746
Z:      295
Address:        1423698688
X:      3392
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FCA78
Id:     121746
Z:      309
Address:        1423699968
X:      3353
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FCAA0
Id:     121746
Z:      266
Address:        1423701248
X:      3348
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
Then a clicked a few and they looked like this, so you can see ID and name changes.

Code: Select all

Command> kk()
table: 038E3D58
Id:     121741
Z:      295
Address:        37458176
X:      3331
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019F9C38
Id:     121741
Z:      281
Address:        1309677824
X:      3310
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019F9D00
Id:     121739
Z:      259
Address:        1381525760
X:      3446
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019F9D28
Id:     121739
Z:      233
Address:        1381561600
X:      3462
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019F9DF0
Id:     121746
Z:      253
Address:        1384302592
X:      3327
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019F9F80
Id:     121741
Z:      217
Address:        1421746944
X:      3377
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019F9FA8
Id:     121741
Z:      204
Address:        1421748224
X:      3416
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019F9FD0
Id:     121740
Z:      218
Address:        1421749504
X:      3438
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019F9FF8
Id:     121746
Z:      231
Address:        1421750784
X:      3400
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FA020
Id:     121739
Z:      190
Address:        1421752064
X:      3395
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019FA048
Id:     121740
Z:      229
Address:        1421753344
X:      3342
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA070
Id:     121739
Z:      203
Address:        1421754624
X:      3357
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019FA110
Id:     121740
Z:      177
Address:        1421775104
X:      3372
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA1B0
Id:     121739
Z:      241
Address:        1423643648
X:      3363
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019FA1D8
Id:     121740
Z:      268
Address:        1423644928
X:      3408
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA200
Id:     121746
Z:      282
Address:        1423646208
X:      3370
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FA228
Id:     121741
Z:      310
Address:        1423691008
X:      3416
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019FA250
Id:     121740
Z:      284
Address:        1423692288
X:      3431
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA278
Id:     121746
Z:      255
Address:        1423693568
X:      3386
Y:      47
Attackable:     false
Type:   4
Name:   Pure Rune Crystal
table: 019FA2A0
Id:     121741
Z:      244
Address:        1423694848
X:      3422
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019FA2C8
Id:     121740
Z:      337
Address:        1423696128
X:      3399
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA2F0
Id:     121741
Z:      322
Address:        1423697408
X:      3376
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
table: 019FA318
Id:     121739
Z:      295
Address:        1423698688
X:      3392
Y:      47
Attackable:     false
Type:   4
Name:   Lightning Rune Crystal
table: 019FA368
Id:     121740
Z:      309
Address:        1423699968
X:      3353
Y:      47
Attackable:     false
Type:   4
Name:   Frost Rune Crystal
table: 019FA3B8
Id:     121741
Z:      266
Address:        1423701248
X:      3348
Y:      47
Attackable:     false
Type:   4
Name:   Flame Rune Crystal
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Post Reply