cleeezzz
The Undead Ranger.
- Reaction score
- 268
This is probably obvious but i cant seem to convert an ability ID into a string order. like if the raw id for shockwave is "A001" then a conversion of that id would return "shockwave"
GetObjectName(039;A000039;)
function GetSpecialSpellOrder takes string order returns string
if (order == "stormbolt") then
set order = "thunderbolt"
endif
if (order == "siphonmana" and order == "lifedrain") then
set order = "drain"
endif
if (order == "holylight") then
set order = "holybolt"
endif
if (order == "aerialshackles") then
set order = "magicleash"
endif
if (order == "dispelmagic") then
set order = "dispel"
endif
if (order == "abolishmagic") then
set order = "autodispel"
endif
return order
endfunction
function GetSpellAbilityOrder takes integer abilId returns string
local string order = StringCase(GetObjectName(abilId), false)
local string out = ""
local integer ln = StringLength(order)
local integer i = 0
loop
exitwhen i > ln
if not (SubString(order, i, i + 1) == " " or SubString(order, i, i + 1) == "-") then
set out = out + SubString(order, i, i + 1)
endif
set i = i + 1
endloop
return GetSpecialSpellOrder(out)
endfunction
if (order == "siphonmana" and order == "lifedrain") then