if GameRules.curr_level_map == GameRules.crab_level or GameRules.crab_level..'2' == GameRules.curr_level_map then
local speed = RandomInt(1000,9999)
local distance = math.floor(speed*201*7)
print("
http://gemtd.ppbizon.com/sm/daily/quest/@"..GameRules.steam_ids.."?hehe="..RandomInt(1,10000))
local url = "
http://gemtd.ppbizon.com/sm/daily/quest/@"..GameRules.steam_ids.."?hehe="..RandomInt(1,10000)
local req = CreateHTTPRequestScriptVM("GET", url)
req:SetHTTPRequestAbsoluteTimeoutMS(20000)
req:Send(function (result)
local t = json.decode (result["Body"])
DeepPrintTable(t)
if t['result'] ~= nil then
CustomNetTables:SetTableValue( "ie_table", "crab_daily",{ r = t['result'], speed = speed, distance = distance ,hehe = RandomInt(1,100)})
end
end)
end