Skip to content

Commit

Permalink
Fleshed out the Wiki url generation. Maps/Rares now use the item's ty…
Browse files Browse the repository at this point in the history
…pe rather than name(e.g. 'Palace Map' instead of 'Twisted Sanctum'). Flasks will use 'Flask' since their specific type is not in the Item class.
  • Loading branch information
Dgc2002 committed Oct 3, 2016
1 parent 1e7d59e commit 2c4abce
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion TradeMacro.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,18 @@
Send ^c
Sleep 250
DoParseClipboardFunction()
WikiUrl := "http://pathofexile.gamepedia.com/" Item.Name

if (Item.IsUnique) {
UrlAffix := Item.Name
} else if (Item.IsFlask) {
UrlAffix := Item.SubType
} else {
UrlAffix := Item.TypeName
}

UrlAffix := StrReplace(UrlAffix," ","_")
WikiUrl := "http://pathofexile.gamepedia.com/" UrlAffix

Run % WikiUrl
SuspendPOEItemScript = 0 ; Allow Item info to handle clipboard change event
return
Expand Down

0 comments on commit 2c4abce

Please sign in to comment.