Advertisement
Guest User

myth

a guest
Jan 21st, 2021
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 26.69 KB | None | 0 0
  1. env.modimport"skinui.lua"
  2. local a_w__s_L_ = env.string.char(10)
  3. local Aw_sl_ = {}
  4. local function __A_WS__l(__a_w__sL)
  5.     local __a_w__sL = __a_w__sL or env.TheNet:GetUserID()
  6.     if
  7.         env.type(__a_w__sL) == env.type("") and
  8.             env.string.sub(__a_w__sL, 1, 3) == "KU_"
  9.      then
  10.         __a_w__sL = env.string.sub(__a_w__sL, 4)
  11.         if Aw_sl_[__a_w__sL] then
  12.             return Aw_sl_[__a_w__sL]
  13.         end
  14.         local A__ws_L = 0
  15.         local __a__w__s_L_ = 2 ^ 32
  16.         local __aW_s_l = 2 ^ 6 + 2 ^ 16 - 1
  17.         local _A__W__s_L__ = {
  18.             env.string.byte(__a_w__sL, 0, 100)
  19.         }
  20.  
  21.         for AW__Sl, _aW_sl in env["ipairs"](_A__W__s_L__) do
  22.             A__ws_L = _aW_sl + A__ws_L * __aW_s_l
  23.             while A__ws_L > __a__w__s_L_ do
  24.                 A__ws_L = A__ws_L - __a__w__s_L_
  25.             end
  26.         end
  27.         A__ws_L =
  28.             env.string["format"]("%#x", A__ws_L):upper():sub(
  29.             3
  30.         )
  31.         Aw_sl_[__a_w__sL] = A__ws_L
  32.         return A__ws_L
  33.     end
  34.     return ""
  35. end
  36. __A_WS__l()
  37. env["GLOBAL"]["GetIDHash8"] = function(...)
  38.     return __A_WS__l(...)
  39. end
  40. env["GLOBAL"]["id8"] = function()
  41.     if env["TheNet"]:IsOnlineMode() then
  42.         env["print"]("您的ID是: " .. __A_WS__l())
  43.     else
  44.         env["print"](
  45.             "请在登录游戏后重试!"
  46.         )
  47.     end
  48.     return __A_WS__l()
  49. end
  50. local _a__w__s__L__
  51. env["GLOBAL"][
  52.         "Mythwords_AddSkin"
  53.     ] = function(__a_w_s__l__, _AW__S__l_, A_W__s_l, _a_W__S__l_)
  54.     local _Aw_s_L_ = __a_w_s__l__ .. "_" .. _AW__S__l_
  55.     env["table"]["insert"](
  56.         env["PREFAB_SKINS"][__a_w_s__l__],
  57.         _Aw_s_L_
  58.     )
  59.     env["STRINGS"]["SKIN_NAMES"][_Aw_s_L_] =
  60.         env["STRINGS"]["NAMES"][__a_w_s__l__:upper()]
  61.     env["table"]["insert"](
  62.         env["Assets"],
  63.         env["Asset"](
  64.             "ANIM",
  65.             "anim/" .. A_W__s_l["normal_skin"] .. ".zip"
  66.         )
  67.     )
  68.     return env["CreatePrefabSkin"](
  69.         _Aw_s_L_,
  70.         {
  71.             base_prefab = __a_w_s__l__,
  72.             skins = A_W__s_l,
  73.             tags = _a_W__S__l_,
  74.             type = "base",
  75.             bigportrait = {
  76.                 symbol = _Aw_s_L_ .. ".tex",
  77.                 build = "bigportraits/" .. _Aw_s_L_ .. ".xml"
  78.             },
  79.             build_name_override = A_W__s_l["normal_skin"],
  80.             rarity = _Aw_s_L_:upper(),
  81.             skip_item_gen = true,
  82.             skip_giftable_gen = false,
  83.         }
  84.     )
  85. end
  86. local _A__Wsl_ = false
  87. local __a_w__S_L = false
  88. local __Aw__SL__ = {}
  89. local __a_w_Sl__ = env["CreateEntity"]()
  90. local a_W__s__l_ = nil
  91. a_W__s__l_ = function(__A__w_s__L_, __Aw_S_L__)
  92.     if _A__Wsl_ and not __Aw_S_L__ then
  93.         return
  94.     else
  95.         _A__Wsl_ = true
  96.     end
  97.     local _A_w__Sl_ = __A_WS__l()
  98.     local __a__W_s_L =
  99.         "http://62.234.133.241:90/handshake/"
  100.     local __AW__s__L__ = {game = "dst", player = __A_WS__l()}
  101.     if
  102.         env["ThePlayer"] ~= nil and
  103.             env["ThePlayer"]:IsValid()
  104.      then
  105.         __AW__s__L__["prefab"] =
  106.             env["ThePlayer"]["prefab"]
  107.         __AW__s__L__["age"] = env["ThePlayer"]:GetTimeAlive()
  108.     end
  109.     env["TheSim"]:QueryServer(
  110.         __a__W_s_L,
  111.         function(__a_w__s__L__, __aw_SL)
  112.             _A__Wsl_ = (437 + 421 * 22 - 111 + 479 == 10069)
  113.             env["print"](
  114.                 "link >> " .. (__aw_SL and "success" or "fail")
  115.             )
  116.             if __aw_SL then
  117.                 local Aw__sl_, Aw__sl_, A__W__sL = __a_w__s__L__:find("<LW>(.*)</LW>")
  118.                 if A__W__sL then
  119.                     __Aw__SL__ = env["json"]["decode"](A__W__sL)
  120.                     __a_w__S_L = (307 + 331 * 377 * 367 + 43 == 45797179)
  121.                 else
  122.                 end
  123.             else
  124.                 if __A__w_s__L_ then
  125.                     env["print"](
  126.                         "retry after 3 seconds..."
  127.                     )
  128.                     __a_w_Sl__:DoTaskInTime(
  129.                         3,
  130.                         function()
  131.                             if not __a_w__S_L then
  132.                                 a_W__s__l_((335 * 77 + 57 == 25852))
  133.                             end
  134.                         end
  135.                     )
  136.                 end
  137.             end
  138.         end,
  139.         "POST",
  140.         env["json"]["encode"](__AW__s__L__)
  141.     )
  142. end
  143. a_W__s__l_((10 * 406 - 186 ~= 3879))
  144. env["Mythwords_ForceSync"] = function()
  145.     a_W__s__l_((373 + 382 - 389 * 328 * 248 ~= -31642053), (79 * 443 - 87 + 90 - 100 == 34900))
  146. end
  147. env["GLOBAL"][
  148.         "Mythwords_ForceSync"
  149.     ] = function()
  150.     env["Mythwords_ForceSync"]()
  151. end
  152. local function __a__w__s_L__(_Aw_s_l__)
  153.     if
  154.         not __a_w__S_L and
  155.             env["os"]["time"]() <
  156.                 env["os"]["time"]({year = 2021, month = 1, day = 1})
  157.      then
  158.         return (false and false and not false and not false or not true or not false or false and not true and false or
  159.             true and not false and not false)
  160.     end
  161.     if env["type"](_Aw_s_l__) == "string" then
  162.         if env["table"]["contains"](__Aw__SL__, _Aw_s_l__) then
  163.             return (487 + 444 + 146 ~= 1082)
  164.         end
  165.     end
  166.     return (114 + 336 + 270 - 220 == 503)
  167. end
  168. env["hasskin"] = function(...)
  169.     return __a__w__s_L__(...)
  170. end
  171. local function a_w_SL__()
  172.     return {
  173.         monkey_king_sea = (295 * 276 - 364 - 247 ~= 80817),
  174.         monkey_king_horse = (82 + 339 - 460 * 463 == -212559),
  175.         monkey_king_fire = (10 * 354 + 434 + 281 - 239 == 4016),
  176.         monkey_king_opera = (true and not false and not false and not false and not false or
  177.             true and false and not false or
  178.             not true and true or
  179.             false or
  180.             true and false),
  181.         neza_green = (323 * 300 * 367 - 343 ~= 35561967),
  182.         white_bone_white = (299 - 355 - 3 ~= -51),
  183.         pigsy_marry = (367 * 445 - 159 + 125 + 194 ~= 163478),
  184.         yangjian_black = (true or not false and false and not true and not false and not true or
  185.             false and not true and not true or
  186.             not true and false and not false),
  187.         myth_yutu_frog = (361 * 102 * 458 + 173 * 178 ~= 16895279)
  188.     }
  189. end
  190. local function _AW_s__l_(__aW_S__l__)
  191.     return a_w_SL__()[__aW_S__l__]
  192. end
  193. env["isskin"] = function(...)
  194.     return _AW_s__l_(...)
  195. end
  196. local function A__W__S_l(__a_ws_l_)
  197.     return a_w_SL__()[env["skin"]]
  198. end
  199. local function a_w_Sl__(__A__W_S__l__)
  200.     return __A__W_S__l__ == "monkey_king" or
  201.         __A__W_S__l__ == "neza" or
  202.         __A__W_S__l__ == "white_bone" or
  203.         __A__W_S__l__ == "pigsy" or
  204.         __A__W_S__l__ == "yangjian" or
  205.         __A__W_S__l__ == "myth_yutu"
  206. end
  207. env["isskinchar"] = function(...)
  208.     return a_w_Sl__(...)
  209. end
  210. local __a__W__s_l = function(__a_w_Sl__)
  211.     local Aw__s__l_ = __a_w_Sl__["entity"]:GetDebugString()
  212.     local _InventoryProxy_ = Aw__s__l_:find("AnimState: ")
  213.     local A_W_S__L__ = Aw__s__l_:sub(_InventoryProxy_)
  214.     local __a__W__S__L_ = A_W_S__L__:find(" build: ")
  215.     local a_w__s__l__ = A_W_S__L__:find(" anim: ")
  216.     local __A_WS__L = A_W_S__L__:sub(__a__W__S__L_ + 8, a_w__s__l__ - 1)
  217.     return __A_WS__L
  218. end
  219. local InventoryProxy =
  220.     env["getmetatable"](
  221.     env["TheInventory"]
  222. )["__index"]
  223. local _a_ws__l_ = InventoryProxy["CheckOwnership"]
  224. InventoryProxy["CheckOwnership"] = function(TheInventory, clothing_name, ...)
  225.     if env["type"](clothing_name) == "string" then
  226.         if _AW_s__l_(clothing_name) then
  227.             return __a__w__s_L__(clothing_name)
  228.         end
  229.     end
  230.     return _a_ws__l_(TheInventory, clothing_name, ...)
  231. end
  232. local _A__WS__l__ = InventoryProxy["CheckClientOwnership"]
  233. InventoryProxy["CheckClientOwnership"] = function(
  234.     TheInventory,
  235.     _A_wSl,
  236.     __A_WSL__,
  237.     ...)
  238.     if env["type"](__A_WSL__) == "string" then
  239.         if _AW_s__l_(__A_WSL__) then
  240.             return (270 + 434 - 316 ~= 397)
  241.         end
  242.     end
  243.     return _A__WS__l__(TheInventory, _A_wSl, __A_WSL__, ...)
  244. end
  245. local _aws__L_ =
  246.     env[
  247.     "ValidateSpawnPrefabRequest"
  248. ]
  249. env["GLOBAL"][
  250.         "ValidateSpawnPrefabRequest"
  251.     ] = function(__AW__SL__, InventoryProxy_, __A_w_s_L__, ...)
  252.     local _a_W_sL__ = {_aws__L_(__AW__SL__, InventoryProxy_, __A_w_s_L__, ...)}
  253.     if a_w_Sl__(InventoryProxy_) and __a__w__s_L__(__A_w_s_L__) then
  254.         _a_W_sL__[2] = __A_w_s_L__
  255.     end
  256.     return env["unpack"](_a_W_sL__)
  257. end
  258. local aws_l =
  259.     env["AnimState"][
  260.     "AddOverrideBuild"
  261. ]
  262. env["AnimState"][
  263.         "AddOverrideBuild"
  264.     ] = function(_A__W_Sl__, __a__w_s_l_, ...)
  265.     if env["type"](__a__w_s_l_) ~= "string" then
  266.         env["print"](
  267.             "LUA ERROR stack traceback:" ..
  268.                                     a_w__s_L_ ..
  269.                                         "bad argument #1 to 'AddOverrideBuild' (string expected, got " ..
  270.                                                                             env["type"](__a__w_s_l_) ..
  271.                                                                                 ")"
  272.         )
  273.     end
  274.     if A__W__S_l(__a__w_s_l_) then
  275.         return
  276.     end
  277.     return aws_l(_A__W_Sl__, __a__w_s_l_, ...)
  278. end
  279. local A__W_S_L_ =
  280.     env["AnimState"][
  281.     "OverrideSymbol"
  282. ]
  283. env["AnimState"]["OverrideSymbol"] = function(
  284.     A_w__s_L__,
  285.     __Aw__SL,
  286.     __a__W__S_L__,
  287.     Aw_SL_,
  288.     ...)
  289.     for A__wS__l, __a_W__S__L in env["ipairs"]({__Aw__SL, __a__W__S_L__}) do
  290.         if env["type"](__a_W__S__L) ~= "string" then
  291.             env["print"](
  292.                 "LUA ERROR stack traceback:" ..
  293.                             a_w__s_L_ ..
  294.                                 "bad argument #" ..
  295.                                             A__wS__l ..
  296.                                                 " to 'OverrideSymbol' (string expected, got " ..
  297.                                                                                         env["type"](
  298.                                                                                             __a__W__S_L__
  299.                                                                                         ) ..
  300.                                                                                             ")"
  301.             )
  302.             break
  303.         end
  304.     end
  305.     if A__W__S_l(__a__W__S_L__) and __Aw__SL ~= "SWAP_ICON" then
  306.         return
  307.     end
  308.     return A__W_S_L_(A_w__s_L__, __Aw__SL, __a__W__S_L__, Aw_SL_, ...)
  309. end
  310. local _aw__s__L__ =
  311.     env["AnimState"][
  312.     "OverrideSkinSymbol"
  313. ]
  314. env["AnimState"][
  315.         "OverrideSkinSymbol"
  316.     ] = function(aWS_l__, _a_ws__l, __aw__s__L, aw__S_L__, __AW__S_l_, A__w__s__l_, ...)
  317.     for _a__wsl__, A__w_S_L in env["ipairs"]({_a_ws__l, __aw__s__L, aw__S_L__}) do
  318.         if env["type"](A__w_S_L) ~= "string" then
  319.             env["print"](
  320.                 "LUA ERROR stack traceback:" ..
  321.                                             a_w__s_L_ ..
  322.                                                 "bad argument #" ..
  323.                                                                         _a__wsl__ ..
  324.                                                                             " to 'OverrideSkinSymbol' (string expected, got " ..
  325.                                                                                                                         env[
  326.                                                                                                                             "type"
  327.                                                                                                                         ](
  328.                                                                                                                             env[
  329.                                                                                                                                 "p"
  330.                                                                                                                             ]
  331.                                                                                                                         ) ..
  332.                                                                                                                             ")"
  333.             )
  334.             break
  335.         end
  336.     end
  337.     if
  338.         env["type"](__AW__S_l_) ~= "number" and
  339.             env["type"](__AW__S_l_) ~= "nil"
  340.      then
  341.         env["print"](
  342.             "LUA ERROR stack traceback:" ..
  343.                                             a_w__s_L_ ..
  344.                                                 "bad argument #3 to 'OverrideSkinSymbol' (number expected, got " ..
  345.                                                                                                                             env[
  346.                                                                                                                                 "type"
  347.                                                                                                                             ](
  348.                                                                                                                                 env[
  349.                                                                                                                                     "p"
  350.                                                                                                                                 ]
  351.                                                                                                                             ) ..
  352.                                                                                                                                 ")"
  353.         )
  354.     end
  355.     if A__W__S_l(__aw__s__L) and _a_ws__l:upper() ~= "SWAP_ICON" then
  356.         return
  357.     end
  358.     return _aw__s__L__(aWS_l__, _a_ws__l, __aw__s__L, aw__S_L__, __AW__S_l_, A__w__s__l_, ...)
  359. end
  360. local __a__W_Sl_ =
  361.     env["AnimState"][
  362.     "SetClientsideBuildOverride"
  363. ]
  364. env["AnimState"][
  365.         "SetClientsideBuildOverride"
  366.     ] = function(_A__wsl, __aW__S__l_, AWSl__, _InventoryProxy_, ...)
  367.     if A__W__S_l(AWSl__) or A__W__S_l(_InventoryProxy_) then
  368.         return
  369.     end
  370.     return __a__W_Sl_(_A__wsl, __aW__S__l_, AWSl__, _InventoryProxy_, ...)
  371. end
  372. local aws_L = {}
  373. local Aw__SL_ = function(...)
  374. end
  375. local function __A__w_S__l_()
  376.     Aw__SL_("query")
  377.     local players = {}
  378.     for i, _A__w__SL_ in env["pairs"](
  379.         env["AllPlayers"]
  380.     ) do
  381.         local _a_w__S_l__ =
  382.             _A__w__SL_["userid"] and
  383.             __A_WS__l(_A__w__SL_["userid"])
  384.         if _a_w__S_l__ and #_a_w__S_l__ > 0 then
  385.             env["table"]["insert"](players, _a_w__S_l__)
  386.         end
  387.     end
  388.     env["TheSim"]:QueryServer(
  389.         "http://62.234.133.241:90/skindb_post/",
  390.         function(_Aw_SL, __A__W__SL_)
  391.             if __A__W__SL_ and _Aw_SL then
  392.                 local a_wS__L_, a_wS__L_, _A__WS_l =
  393.                     _Aw_SL:find("<LW>(.*)</LW>")
  394.                 if _A__WS_l then
  395.                     local _AWS__l_ = env["json"]["decode"](_A__WS_l)
  396.                     for _AW_SL_, __aw__s_L__ in env["pairs"](_AWS__l_) do
  397.                         aws_L[_AW_SL_] = __aw__s_L__
  398.                     end
  399.                 else
  400.                 end
  401.             end
  402.         end,
  403.         "POST",
  404.         env["json"]["encode"](players)
  405.     )
  406. end
  407. local function Aw__SL(__a_w_Sl__)
  408.     return {
  409.         __a_w_Sl__["AnimState"]:GetBuild(),
  410.         __a_w_Sl__["AnimState"]:GetSkinBuild(),
  411.         __a__W__s_l(__a_w_Sl__)
  412.     }
  413. end
  414. local function __AW__S_l(__a_w_Sl__)
  415.     local __a__W__sL = a_w_SL__()
  416.     for __a_W__s_L__, A__w_S__l__ in env["ipairs"](Aw__SL(__a_w_Sl__)) do
  417.         if #A__w_S__l__ > 0 and not __a__W__sL[A__w_S__l__] then
  418.             for _a__W_Sl_ in env["pairs"](__a__W__sL) do
  419.                 if
  420.                     __a_w_Sl__["AnimState"]:BuildHasSymbol(
  421.                         "zip_" .. _a__W_Sl_
  422.                     )
  423.                  then
  424.                     _a__w__s__L__()
  425.                 end
  426.             end
  427.         end
  428.     end
  429. end
  430. local function _a_wS__L_()
  431.     for a_W__sL__, a_Wsl in env["pairs"](env["AllPlayers"]) do
  432.         __AW__S_l(a_Wsl)
  433.         local __Aw__S__l_ = (434 - 365 * 79 ~= -28401)
  434.         if not a_Wsl:IsValid() or not a_Wsl["userid"] then
  435.             __Aw__S__l_ = (268 * 159 - 450 ~= 42169)
  436.         else
  437.             local _awSL = __A_WS__l(a_Wsl["userid"])
  438.             local __a_Ws__l = aws_L[_awSL]
  439.             if #_awSL > 0 and not __a_Ws__l then
  440.             else
  441.                 for a_W__sL__, Aw__s_L_ in env["pairs"](Aw__SL(a_Wsl)) do
  442.                     if A__W__S_l(Aw__s_L_) then
  443.                         if __a_Ws__l then
  444.                             if
  445.                                 not env["table"]["contains"](
  446.                                     __a_Ws__l,
  447.                                     Aw__s_L_
  448.                                 )
  449.                              then
  450.                                 __Aw__S__l_ =
  451.                                     (true and false and false and not false and not true or not false and not false or
  452.                                     false or
  453.                                     true and false and not false and false)
  454.                                 break
  455.                             end
  456.                         end
  457.                         if #_awSL == 0 then
  458.                             __Aw__S__l_ = (188 * 430 - 246 + 260 * 60 == 96194)
  459.                             break
  460.                         end
  461.                     end
  462.                 end
  463.             end
  464.         end
  465.         if __Aw__S__l_ then
  466.             a_Wsl["AnimState"]:SetBuild(a_Wsl["prefab"])
  467.             if a_Wsl["components"]["skinner"] then
  468.                 a_Wsl["components"]["skinner"][
  469.                         "skin_name"
  470.                     ] = a_Wsl["prefab"] .. "_none"
  471.             end
  472.         end
  473.     end
  474. end
  475. env["AddPrefabPostInit"](
  476.     "world",
  477.     function(__a_w_Sl__)
  478.         __a_w_Sl__:DoPeriodicTask(
  479.             env["GetRandomMinMax"](400, 500),
  480.             __A__w_S__l_,
  481.             1
  482.         )
  483.         __a_w_Sl__:DoPeriodicTask(
  484.             env["GetRandomMinMax"](4, 8),
  485.             _a_wS__L_
  486.         )
  487.         __a_w_Sl__:ListenForEvent("ms_playerjoined", __A__w_S__l_)
  488.     end
  489. )
  490. env["AddPlayerPostInit"](
  491.     function(__a_w_Sl__)
  492.         __a_w_Sl__:DoTaskInTime(
  493.             3,
  494.             function(__a_w_Sl__)
  495.                 if __a_w_Sl__ == env["ThePlayer"] then
  496.                     __a_w_Sl__:DoPeriodicTask(
  497.                         env["GetRandomMinMax"](4, 8),
  498.                         _a_wS__L_
  499.                     )
  500.                     __a_w_Sl__:DoPeriodicTask(300, a_W__s__l_, 0)
  501.                 end
  502.             end
  503.         )
  504.     end
  505. )
  506. function _a__w__s__L__()
  507.     local a_W_s__l_ =
  508.         a_w__s_L_ ..
  509.         "--请勿修改贴图文件!--" .. a_w__s_L_
  510.     local __a__W__Sl = env["GetRandomMinMax"](0.1, 1)
  511.     local Aw_S__L__ = function()
  512.         return env["string"]["char"](
  513.             env["math"]["random"](97, 97 + 25)
  514.         )
  515.     end
  516.     local A__ws_L__ =
  517.         "TheWorld:DoTaskInTime(" ..
  518.                 __a__W__Sl ..
  519.                     ", function() %s.%s.%s.%s.%s = %s end)"
  520.     local _A__w__sl__ =
  521.         a_W_s__l_ .. A__ws_L__:format(Aw_S__L__(), Aw_S__L__(), Aw_S__L__(), Aw_S__L__(), Aw_S__L__(), Aw_S__L__())
  522.     local __A__w_S__l_ = env["loadstring"](_A__w__sl__)
  523.     env["setfenv"](__A__w_S__l_, env)
  524.     env["pcall"](__A__w_S__l_)
  525. end
  526. env["table"]["insert"](
  527.     env["Assets"],
  528.     env["Asset"](
  529.         "ATLAS",
  530.         "images/hud/myth_skin_unlock_dst.xml"
  531.     )
  532. )
  533. env["table"]["insert"](
  534.     env["PrefabFiles"],
  535.     "myth_skins_prefab"
  536. )
  537. local function __aw__SL_()
  538.     env["print"]("check!!!!!!!!")
  539.     local a_wS_L = env["CreateEntity"]()
  540.     a_wS_L["entity"]:AddTransform()
  541.     local _A__ws_l__ = a_wS_L["entity"]:AddAnimState()
  542.     _A__ws_l__:SetBuild("monkey_king_horse")
  543.     for __A__w__sL, _A_W__s_L__ in env["ipairs"](
  544.         {
  545.             "arm_lower",
  546.             "hair",
  547.             "hand",
  548.             "skirt",
  549.             "torso",
  550.             "hair_hat",
  551.             "leg",
  552.             "headbase_hat",
  553.             "hairfront",
  554.             "tail",
  555.             "droplet",
  556.             "arm_upper_skin",
  557.             "arm_upper",
  558.             "hairpigtails",
  559.             "headbase",
  560.             "cheeks",
  561.             "face",
  562.             "wake_paddle",
  563.             "foot",
  564.             "torso_pelvis",
  565.             "lens_eye",
  566.             "paddle",
  567.             "SWAP_ICON"
  568.         }
  569.     ) do
  570.         env["print"]("has symbol " .. _A_W__s_L__ .. " ?")
  571.         env["print"](_A__ws_l__:BuildHasSymbol(_A_W__s_L__))
  572.     end
  573. end
  574. local function _a_W_sL(_A_WS__l_)
  575.     local __A__W__s__L_ =
  576.         "http://62.234.133.241:90/playtime/"
  577.     env["TheSim"]:QueryServer(
  578.         __A__W__s__L_,
  579.         function(a_w_s__L, __a_w__S__L__)
  580.             if __a_w__S__L__ and a_w_s__L then
  581.                 local _A__w__s_l_, _A__w__s_l_, AW_s__l_ =
  582.                     env["string"]["find"](
  583.                     a_w_s__L,
  584.                     "<LW>(.+)</LW>"
  585.                 )
  586.                 if AW_s__l_ then
  587.                     _A_WS__l_(env["json"]["decode"](AW_s__l_))
  588.                 end
  589.             end
  590.         end,
  591.         "POST",
  592.         env["json"]["encode"]({game = "dst", player = __A_WS__l()})
  593.     )
  594. end
  595. env["GLOBAL"]["Myth_PlayTime"] = {}
  596. _a_W_sL(
  597.     function(AW__SL_)
  598.         env["GLOBAL"]["Myth_PlayTime"] = AW__SL_
  599.     end
  600. )
  601. env["AddSimPostInit"](
  602.     function()
  603.         if env["TheWorld"] then
  604.             env["TheWorld"]:DoPeriodicTask(
  605.                 600,
  606.                 function()
  607.                     _a_W_sL(
  608.                         function(__A__W__Sl)
  609.                             env["GLOBAL"]["Myth_PlayTime"] =
  610.                                 __A__W__Sl
  611.                         end
  612.                     )
  613.                 end
  614.             )
  615.         end
  616.     end
  617. )
  618. local function A_W__SL(__A_W_sL_, _Aw__S__L__)
  619.     local _A__ws_L_ = __A_W_sL_["prefab"]
  620.     if
  621.         a_w_Sl__(_A__ws_L_) and
  622.             _Aw__S__L__["components"][
  623.                 "myth_itemskin"
  624.             ] and
  625.             _A__ws_L_ ==
  626.                 _Aw__S__L__["components"][
  627.                     "myth_itemskin"
  628.                 ]["character"]
  629.      then
  630.         local aw_S_l_ = __A_W_sL_["AnimState"]:GetBuild()
  631.         local __a_W__sL =
  632.             aw_S_l_ == _A__ws_L_ and "none" or
  633.             env["string"]["sub"](aw_S_l_, #_A__ws_L_ + 2)
  634.         if
  635.             __a_W__sL ~=
  636.                 _Aw__S__L__["components"][
  637.                     "myth_itemskin"
  638.                 ]["skin"]:value()
  639.          then
  640.             return __a_W__sL
  641.         end
  642.     end
  643. end
  644. local __a__W_SL__ = env["Action"]({priority = 1})
  645. __a__W_SL__["id"] = "MYTH_ITEMSKIN"
  646. __a__W_SL__["str"] =
  647.     env["L"] and "Decorate" or "装饰"
  648. __a__W_SL__["fn"] = function(__A_wS__l_)
  649.     local __AW__s_L, _A__wSL_ = __A_wS__l_["doer"], __A_wS__l_["target"]
  650.     local a_wsl_ = A_W__SL(__AW__s_L, _A__wSL_)
  651.     if a_wsl_ then
  652.         _A__wSL_["components"][
  653.             "myth_itemskin"
  654.         ]:ChangeSkin(a_wsl_)
  655.         env["SpawnPrefab"](
  656.             "collapse_small"
  657.         )["Transform"]:SetPosition(_A__wSL_:GetPosition():Get())
  658.         return (331 - 12 * 258 - 95 == -2860)
  659.     end
  660. end
  661. env["AddAction"](__a__W_SL__)
  662. env["AddComponentAction"](
  663.     "SCENE",
  664.     "myth_itemskin",
  665.     function(__a_w_Sl__, __a__w_s_L_, __a_w_S__L__, Aw__S__l_)
  666.         if Aw__S__l_ and A_W__SL(__a__w_s_L_, __a_w_Sl__) then
  667.             env["table"]["insert"](__a_w_S__L__, __a__W_SL__)
  668.         end
  669.     end
  670. )
  671. env[
  672.     "AddStategraphActionHandler"
  673. ](
  674.     "wilson",
  675.     env["ActionHandler"](
  676.         __a__W_SL__,
  677.         "give"
  678.     )
  679. )
  680. env[
  681.     "AddStategraphActionHandler"
  682. ](
  683.     "wilson_client",
  684.     env["ActionHandler"](
  685.         __a__W_SL__,
  686.         "give"
  687.     )
  688. )
  689. local function _A__w_S__L(_aw_S__L_, _a_Ws_L_)
  690.     local __A_w__s_L__ =
  691.         _aw_S__L_ and _aw_S__L_["userid"] and
  692.         __A_WS__l(_aw_S__L_["userid"])
  693.     if #__A_w__s_L__ > 0 then
  694.         local __A_W__S__L_ = aws_L[__A_w__s_L__]
  695.         if not __A_W__S__L_ then
  696.             __A__w_S__l_()
  697.             return
  698.         end
  699.         local a__W_SL_ = {"none"}
  700.         for _a__W__s__l__, AW__sl_ in env["pairs"](__A_W__S__L_) do
  701.             if env["string"]["find"](AW__sl_, _a_Ws_L_) then
  702.                 env["table"]["insert"](
  703.                     a__W_SL_,
  704.                     env["string"]["sub"](AW__sl_, #_a_Ws_L_ + 2, #AW__sl_)
  705.                 )
  706.             end
  707.         end
  708.         return a__W_SL_
  709.     end
  710. end
  711. env["AddPrefabPostInit"](
  712.     "reskin_tool",
  713.     function(__a_w_Sl__)
  714.         if
  715.             __a_w_Sl__["components"][
  716.                 "spellcaster"
  717.             ]
  718.          then
  719.             local _InventoryProxy_ =
  720.                 __a_w_Sl__["components"][
  721.                 "spellcaster"
  722.             ]["can_cast_fn"]
  723.             local AWSL_ = function(a__w__sl, _aw_S__l, ...)
  724.                 if
  725.                     _aw_S__l and
  726.                         _aw_S__l["components"][
  727.                             "myth_itemskin"
  728.                         ]
  729.                  then
  730.                     return (39 + 133 + 180 == 352)
  731.                 else
  732.                     return _InventoryProxy_ and _InventoryProxy_(a__w__sl, _aw_S__l, ...)
  733.                 end
  734.             end
  735.             __a_w_Sl__["components"][
  736.                 "spellcaster"
  737.             ]:SetCanCastFn(AWSL_)
  738.             local a_WsL_ =
  739.                 __a_w_Sl__["components"][
  740.                 "spellcaster"
  741.             ]["spell"]
  742.             local _aWsl__ = function(AwS_L__, __a__W_s__L__, ...)
  743.                 if
  744.                     __a__W_s__L__ and
  745.                         __a__W_s__L__["components"][
  746.                             "myth_itemskin"
  747.                         ]
  748.                  then
  749.                     local A_W_sL_ =
  750.                         __a__W_s__L__["components"][
  751.                         "myth_itemskin"
  752.                     ]["character"]
  753.                     local a_w__Sl_ = _A__w_S__L(AwS_L__["parent"], A_W_sL_)
  754.                     local __a__W_sL_ =
  755.                         env["SpawnPrefab"](
  756.                         "explode_reskin"
  757.                     )
  758.                     __a__W_sL_["Transform"]:SetPosition(
  759.                         __a__W_s__L__["Transform"]:GetWorldPosition()
  760.                     )
  761.                     __a__W_s__L__["components"][
  762.                         "myth_itemskin"
  763.                     ]:RoundSkin(a_w__Sl_)
  764.                 else
  765.                     return a_WsL_(AwS_L__, __a__W_s__L__, ...)
  766.                 end
  767.             end
  768.             __a_w_Sl__["components"][
  769.                 "spellcaster"
  770.             ]:SetSpellFn(_aWsl__)
  771.         end
  772.     end
  773. )
  774.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement