View Single Post
01/25/23, 10:26 AM   #3
quentinlamamy
 
quentinlamamy's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2016
Posts: 24
Well i have read this post about what can't do an addon but i have looked in Tamriel Trad Center addon and found this method calling an external url :

```lua
function TamrielTradeCentrePrice:SearchOnline(itemInfo)
local serverRegion = TamrielTradeCentre.GetCurrentServerRegion()
local url = "https://"
if (serverRegion == "NA") then
url = url .. "us."
else
url = url .. "eu."
end

url = url .. ""

url = url .. "ItemID=" .. itemInfo.ID
url = url .. "&ItemNamePattern=" .. itemInfo.Name

if (itemInfo.TraitID ~= nil) then
url = url .. "&ItemTraitID=" .. itemInfo.TraitID
end

if (itemInfo.QualityID ~= nil) then
url = url .. "&ItemQualityID=" .. itemInfo.QualityID
end

local level = itemInfo.Level
url = url .. "&LevelMin=" .. level .. "&LevelMax=" .. level

local langCode = TamrielTradeCentre:GetLangCode()

if (langCode ~= nil) then
url = url .. "&lang=" .. langCode
end

RequestOpenUnsafeURL(url)
end
```

That's why i was wondering if something change about that point

Last edited by quentinlamamy : 01/25/23 at 10:29 AM.
  Reply With Quote