Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- env.modimport"skinui.lua"
- local a_w__s_L_ = env.string.char(10)
- local Aw_sl_ = {}
- local function __A_WS__l(__a_w__sL)
- local __a_w__sL = __a_w__sL or env.TheNet:GetUserID()
- if
- env.type(__a_w__sL) == env.type("") and
- env.string.sub(__a_w__sL, 1, 3) == "KU_"
- then
- __a_w__sL = env.string.sub(__a_w__sL, 4)
- if Aw_sl_[__a_w__sL] then
- return Aw_sl_[__a_w__sL]
- end
- local A__ws_L = 0
- local __a__w__s_L_ = 2 ^ 32
- local __aW_s_l = 2 ^ 6 + 2 ^ 16 - 1
- local _A__W__s_L__ = {
- env.string.byte(__a_w__sL, 0, 100)
- }
- for AW__Sl, _aW_sl in env["ipairs"](_A__W__s_L__) do
- A__ws_L = _aW_sl + A__ws_L * __aW_s_l
- while A__ws_L > __a__w__s_L_ do
- A__ws_L = A__ws_L - __a__w__s_L_
- end
- end
- A__ws_L =
- env.string["format"]("%#x", A__ws_L):upper():sub(
- 3
- )
- Aw_sl_[__a_w__sL] = A__ws_L
- return A__ws_L
- end
- return ""
- end
- __A_WS__l()
- env["GLOBAL"]["GetIDHash8"] = function(...)
- return __A_WS__l(...)
- end
- env["GLOBAL"]["id8"] = function()
- if env["TheNet"]:IsOnlineMode() then
- env["print"]("您的ID是: " .. __A_WS__l())
- else
- env["print"](
- "请在登录游戏后重试!"
- )
- end
- return __A_WS__l()
- end
- local _a__w__s__L__
- env["GLOBAL"][
- "Mythwords_AddSkin"
- ] = function(__a_w_s__l__, _AW__S__l_, A_W__s_l, _a_W__S__l_)
- local _Aw_s_L_ = __a_w_s__l__ .. "_" .. _AW__S__l_
- env["table"]["insert"](
- env["PREFAB_SKINS"][__a_w_s__l__],
- _Aw_s_L_
- )
- env["STRINGS"]["SKIN_NAMES"][_Aw_s_L_] =
- env["STRINGS"]["NAMES"][__a_w_s__l__:upper()]
- env["table"]["insert"](
- env["Assets"],
- env["Asset"](
- "ANIM",
- "anim/" .. A_W__s_l["normal_skin"] .. ".zip"
- )
- )
- return env["CreatePrefabSkin"](
- _Aw_s_L_,
- {
- base_prefab = __a_w_s__l__,
- skins = A_W__s_l,
- tags = _a_W__S__l_,
- type = "base",
- bigportrait = {
- symbol = _Aw_s_L_ .. ".tex",
- build = "bigportraits/" .. _Aw_s_L_ .. ".xml"
- },
- build_name_override = A_W__s_l["normal_skin"],
- rarity = _Aw_s_L_:upper(),
- skip_item_gen = true,
- skip_giftable_gen = false,
- }
- )
- end
- local _A__Wsl_ = false
- local __a_w__S_L = false
- local __Aw__SL__ = {}
- local __a_w_Sl__ = env["CreateEntity"]()
- local a_W__s__l_ = nil
- a_W__s__l_ = function(__A__w_s__L_, __Aw_S_L__)
- if _A__Wsl_ and not __Aw_S_L__ then
- return
- else
- _A__Wsl_ = true
- end
- local _A_w__Sl_ = __A_WS__l()
- local __a__W_s_L =
- "http://62.234.133.241:90/handshake/"
- local __AW__s__L__ = {game = "dst", player = __A_WS__l()}
- if
- env["ThePlayer"] ~= nil and
- env["ThePlayer"]:IsValid()
- then
- __AW__s__L__["prefab"] =
- env["ThePlayer"]["prefab"]
- __AW__s__L__["age"] = env["ThePlayer"]:GetTimeAlive()
- end
- env["TheSim"]:QueryServer(
- __a__W_s_L,
- function(__a_w__s__L__, __aw_SL)
- _A__Wsl_ = (437 + 421 * 22 - 111 + 479 == 10069)
- env["print"](
- "link >> " .. (__aw_SL and "success" or "fail")
- )
- if __aw_SL then
- local Aw__sl_, Aw__sl_, A__W__sL = __a_w__s__L__:find("<LW>(.*)</LW>")
- if A__W__sL then
- __Aw__SL__ = env["json"]["decode"](A__W__sL)
- __a_w__S_L = (307 + 331 * 377 * 367 + 43 == 45797179)
- else
- end
- else
- if __A__w_s__L_ then
- env["print"](
- "retry after 3 seconds..."
- )
- __a_w_Sl__:DoTaskInTime(
- 3,
- function()
- if not __a_w__S_L then
- a_W__s__l_((335 * 77 + 57 == 25852))
- end
- end
- )
- end
- end
- end,
- "POST",
- env["json"]["encode"](__AW__s__L__)
- )
- end
- a_W__s__l_((10 * 406 - 186 ~= 3879))
- env["Mythwords_ForceSync"] = function()
- a_W__s__l_((373 + 382 - 389 * 328 * 248 ~= -31642053), (79 * 443 - 87 + 90 - 100 == 34900))
- end
- env["GLOBAL"][
- "Mythwords_ForceSync"
- ] = function()
- env["Mythwords_ForceSync"]()
- end
- local function __a__w__s_L__(_Aw_s_l__)
- if
- not __a_w__S_L and
- env["os"]["time"]() <
- env["os"]["time"]({year = 2021, month = 1, day = 1})
- then
- return (false and false and not false and not false or not true or not false or false and not true and false or
- true and not false and not false)
- end
- if env["type"](_Aw_s_l__) == "string" then
- if env["table"]["contains"](__Aw__SL__, _Aw_s_l__) then
- return (487 + 444 + 146 ~= 1082)
- end
- end
- return (114 + 336 + 270 - 220 == 503)
- end
- env["hasskin"] = function(...)
- return __a__w__s_L__(...)
- end
- local function a_w_SL__()
- return {
- monkey_king_sea = (295 * 276 - 364 - 247 ~= 80817),
- monkey_king_horse = (82 + 339 - 460 * 463 == -212559),
- monkey_king_fire = (10 * 354 + 434 + 281 - 239 == 4016),
- monkey_king_opera = (true and not false and not false and not false and not false or
- true and false and not false or
- not true and true or
- false or
- true and false),
- neza_green = (323 * 300 * 367 - 343 ~= 35561967),
- white_bone_white = (299 - 355 - 3 ~= -51),
- pigsy_marry = (367 * 445 - 159 + 125 + 194 ~= 163478),
- yangjian_black = (true or not false and false and not true and not false and not true or
- false and not true and not true or
- not true and false and not false),
- myth_yutu_frog = (361 * 102 * 458 + 173 * 178 ~= 16895279)
- }
- end
- local function _AW_s__l_(__aW_S__l__)
- return a_w_SL__()[__aW_S__l__]
- end
- env["isskin"] = function(...)
- return _AW_s__l_(...)
- end
- local function A__W__S_l(__a_ws_l_)
- return a_w_SL__()[env["skin"]]
- end
- local function a_w_Sl__(__A__W_S__l__)
- return __A__W_S__l__ == "monkey_king" or
- __A__W_S__l__ == "neza" or
- __A__W_S__l__ == "white_bone" or
- __A__W_S__l__ == "pigsy" or
- __A__W_S__l__ == "yangjian" or
- __A__W_S__l__ == "myth_yutu"
- end
- env["isskinchar"] = function(...)
- return a_w_Sl__(...)
- end
- local __a__W__s_l = function(__a_w_Sl__)
- local Aw__s__l_ = __a_w_Sl__["entity"]:GetDebugString()
- local _InventoryProxy_ = Aw__s__l_:find("AnimState: ")
- local A_W_S__L__ = Aw__s__l_:sub(_InventoryProxy_)
- local __a__W__S__L_ = A_W_S__L__:find(" build: ")
- local a_w__s__l__ = A_W_S__L__:find(" anim: ")
- local __A_WS__L = A_W_S__L__:sub(__a__W__S__L_ + 8, a_w__s__l__ - 1)
- return __A_WS__L
- end
- local InventoryProxy =
- env["getmetatable"](
- env["TheInventory"]
- )["__index"]
- local _a_ws__l_ = InventoryProxy["CheckOwnership"]
- InventoryProxy["CheckOwnership"] = function(TheInventory, clothing_name, ...)
- if env["type"](clothing_name) == "string" then
- if _AW_s__l_(clothing_name) then
- return __a__w__s_L__(clothing_name)
- end
- end
- return _a_ws__l_(TheInventory, clothing_name, ...)
- end
- local _A__WS__l__ = InventoryProxy["CheckClientOwnership"]
- InventoryProxy["CheckClientOwnership"] = function(
- TheInventory,
- _A_wSl,
- __A_WSL__,
- ...)
- if env["type"](__A_WSL__) == "string" then
- if _AW_s__l_(__A_WSL__) then
- return (270 + 434 - 316 ~= 397)
- end
- end
- return _A__WS__l__(TheInventory, _A_wSl, __A_WSL__, ...)
- end
- local _aws__L_ =
- env[
- "ValidateSpawnPrefabRequest"
- ]
- env["GLOBAL"][
- "ValidateSpawnPrefabRequest"
- ] = function(__AW__SL__, InventoryProxy_, __A_w_s_L__, ...)
- local _a_W_sL__ = {_aws__L_(__AW__SL__, InventoryProxy_, __A_w_s_L__, ...)}
- if a_w_Sl__(InventoryProxy_) and __a__w__s_L__(__A_w_s_L__) then
- _a_W_sL__[2] = __A_w_s_L__
- end
- return env["unpack"](_a_W_sL__)
- end
- local aws_l =
- env["AnimState"][
- "AddOverrideBuild"
- ]
- env["AnimState"][
- "AddOverrideBuild"
- ] = function(_A__W_Sl__, __a__w_s_l_, ...)
- if env["type"](__a__w_s_l_) ~= "string" then
- env["print"](
- "LUA ERROR stack traceback:" ..
- a_w__s_L_ ..
- "bad argument #1 to 'AddOverrideBuild' (string expected, got " ..
- env["type"](__a__w_s_l_) ..
- ")"
- )
- end
- if A__W__S_l(__a__w_s_l_) then
- return
- end
- return aws_l(_A__W_Sl__, __a__w_s_l_, ...)
- end
- local A__W_S_L_ =
- env["AnimState"][
- "OverrideSymbol"
- ]
- env["AnimState"]["OverrideSymbol"] = function(
- A_w__s_L__,
- __Aw__SL,
- __a__W__S_L__,
- Aw_SL_,
- ...)
- for A__wS__l, __a_W__S__L in env["ipairs"]({__Aw__SL, __a__W__S_L__}) do
- if env["type"](__a_W__S__L) ~= "string" then
- env["print"](
- "LUA ERROR stack traceback:" ..
- a_w__s_L_ ..
- "bad argument #" ..
- A__wS__l ..
- " to 'OverrideSymbol' (string expected, got " ..
- env["type"](
- __a__W__S_L__
- ) ..
- ")"
- )
- break
- end
- end
- if A__W__S_l(__a__W__S_L__) and __Aw__SL ~= "SWAP_ICON" then
- return
- end
- return A__W_S_L_(A_w__s_L__, __Aw__SL, __a__W__S_L__, Aw_SL_, ...)
- end
- local _aw__s__L__ =
- env["AnimState"][
- "OverrideSkinSymbol"
- ]
- env["AnimState"][
- "OverrideSkinSymbol"
- ] = function(aWS_l__, _a_ws__l, __aw__s__L, aw__S_L__, __AW__S_l_, A__w__s__l_, ...)
- for _a__wsl__, A__w_S_L in env["ipairs"]({_a_ws__l, __aw__s__L, aw__S_L__}) do
- if env["type"](A__w_S_L) ~= "string" then
- env["print"](
- "LUA ERROR stack traceback:" ..
- a_w__s_L_ ..
- "bad argument #" ..
- _a__wsl__ ..
- " to 'OverrideSkinSymbol' (string expected, got " ..
- env[
- "type"
- ](
- env[
- "p"
- ]
- ) ..
- ")"
- )
- break
- end
- end
- if
- env["type"](__AW__S_l_) ~= "number" and
- env["type"](__AW__S_l_) ~= "nil"
- then
- env["print"](
- "LUA ERROR stack traceback:" ..
- a_w__s_L_ ..
- "bad argument #3 to 'OverrideSkinSymbol' (number expected, got " ..
- env[
- "type"
- ](
- env[
- "p"
- ]
- ) ..
- ")"
- )
- end
- if A__W__S_l(__aw__s__L) and _a_ws__l:upper() ~= "SWAP_ICON" then
- return
- end
- return _aw__s__L__(aWS_l__, _a_ws__l, __aw__s__L, aw__S_L__, __AW__S_l_, A__w__s__l_, ...)
- end
- local __a__W_Sl_ =
- env["AnimState"][
- "SetClientsideBuildOverride"
- ]
- env["AnimState"][
- "SetClientsideBuildOverride"
- ] = function(_A__wsl, __aW__S__l_, AWSl__, _InventoryProxy_, ...)
- if A__W__S_l(AWSl__) or A__W__S_l(_InventoryProxy_) then
- return
- end
- return __a__W_Sl_(_A__wsl, __aW__S__l_, AWSl__, _InventoryProxy_, ...)
- end
- local aws_L = {}
- local Aw__SL_ = function(...)
- end
- local function __A__w_S__l_()
- Aw__SL_("query")
- local players = {}
- for i, _A__w__SL_ in env["pairs"](
- env["AllPlayers"]
- ) do
- local _a_w__S_l__ =
- _A__w__SL_["userid"] and
- __A_WS__l(_A__w__SL_["userid"])
- if _a_w__S_l__ and #_a_w__S_l__ > 0 then
- env["table"]["insert"](players, _a_w__S_l__)
- end
- end
- env["TheSim"]:QueryServer(
- "http://62.234.133.241:90/skindb_post/",
- function(_Aw_SL, __A__W__SL_)
- if __A__W__SL_ and _Aw_SL then
- local a_wS__L_, a_wS__L_, _A__WS_l =
- _Aw_SL:find("<LW>(.*)</LW>")
- if _A__WS_l then
- local _AWS__l_ = env["json"]["decode"](_A__WS_l)
- for _AW_SL_, __aw__s_L__ in env["pairs"](_AWS__l_) do
- aws_L[_AW_SL_] = __aw__s_L__
- end
- else
- end
- end
- end,
- "POST",
- env["json"]["encode"](players)
- )
- end
- local function Aw__SL(__a_w_Sl__)
- return {
- __a_w_Sl__["AnimState"]:GetBuild(),
- __a_w_Sl__["AnimState"]:GetSkinBuild(),
- __a__W__s_l(__a_w_Sl__)
- }
- end
- local function __AW__S_l(__a_w_Sl__)
- local __a__W__sL = a_w_SL__()
- for __a_W__s_L__, A__w_S__l__ in env["ipairs"](Aw__SL(__a_w_Sl__)) do
- if #A__w_S__l__ > 0 and not __a__W__sL[A__w_S__l__] then
- for _a__W_Sl_ in env["pairs"](__a__W__sL) do
- if
- __a_w_Sl__["AnimState"]:BuildHasSymbol(
- "zip_" .. _a__W_Sl_
- )
- then
- _a__w__s__L__()
- end
- end
- end
- end
- end
- local function _a_wS__L_()
- for a_W__sL__, a_Wsl in env["pairs"](env["AllPlayers"]) do
- __AW__S_l(a_Wsl)
- local __Aw__S__l_ = (434 - 365 * 79 ~= -28401)
- if not a_Wsl:IsValid() or not a_Wsl["userid"] then
- __Aw__S__l_ = (268 * 159 - 450 ~= 42169)
- else
- local _awSL = __A_WS__l(a_Wsl["userid"])
- local __a_Ws__l = aws_L[_awSL]
- if #_awSL > 0 and not __a_Ws__l then
- else
- for a_W__sL__, Aw__s_L_ in env["pairs"](Aw__SL(a_Wsl)) do
- if A__W__S_l(Aw__s_L_) then
- if __a_Ws__l then
- if
- not env["table"]["contains"](
- __a_Ws__l,
- Aw__s_L_
- )
- then
- __Aw__S__l_ =
- (true and false and false and not false and not true or not false and not false or
- false or
- true and false and not false and false)
- break
- end
- end
- if #_awSL == 0 then
- __Aw__S__l_ = (188 * 430 - 246 + 260 * 60 == 96194)
- break
- end
- end
- end
- end
- end
- if __Aw__S__l_ then
- a_Wsl["AnimState"]:SetBuild(a_Wsl["prefab"])
- if a_Wsl["components"]["skinner"] then
- a_Wsl["components"]["skinner"][
- "skin_name"
- ] = a_Wsl["prefab"] .. "_none"
- end
- end
- end
- end
- env["AddPrefabPostInit"](
- "world",
- function(__a_w_Sl__)
- __a_w_Sl__:DoPeriodicTask(
- env["GetRandomMinMax"](400, 500),
- __A__w_S__l_,
- 1
- )
- __a_w_Sl__:DoPeriodicTask(
- env["GetRandomMinMax"](4, 8),
- _a_wS__L_
- )
- __a_w_Sl__:ListenForEvent("ms_playerjoined", __A__w_S__l_)
- end
- )
- env["AddPlayerPostInit"](
- function(__a_w_Sl__)
- __a_w_Sl__:DoTaskInTime(
- 3,
- function(__a_w_Sl__)
- if __a_w_Sl__ == env["ThePlayer"] then
- __a_w_Sl__:DoPeriodicTask(
- env["GetRandomMinMax"](4, 8),
- _a_wS__L_
- )
- __a_w_Sl__:DoPeriodicTask(300, a_W__s__l_, 0)
- end
- end
- )
- end
- )
- function _a__w__s__L__()
- local a_W_s__l_ =
- a_w__s_L_ ..
- "--请å¿ä¿®æ¹è´´å¾æ件!--" .. a_w__s_L_
- local __a__W__Sl = env["GetRandomMinMax"](0.1, 1)
- local Aw_S__L__ = function()
- return env["string"]["char"](
- env["math"]["random"](97, 97 + 25)
- )
- end
- local A__ws_L__ =
- "TheWorld:DoTaskInTime(" ..
- __a__W__Sl ..
- ", function() %s.%s.%s.%s.%s = %s end)"
- local _A__w__sl__ =
- 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__())
- local __A__w_S__l_ = env["loadstring"](_A__w__sl__)
- env["setfenv"](__A__w_S__l_, env)
- env["pcall"](__A__w_S__l_)
- end
- env["table"]["insert"](
- env["Assets"],
- env["Asset"](
- "ATLAS",
- "images/hud/myth_skin_unlock_dst.xml"
- )
- )
- env["table"]["insert"](
- env["PrefabFiles"],
- "myth_skins_prefab"
- )
- local function __aw__SL_()
- env["print"]("check!!!!!!!!")
- local a_wS_L = env["CreateEntity"]()
- a_wS_L["entity"]:AddTransform()
- local _A__ws_l__ = a_wS_L["entity"]:AddAnimState()
- _A__ws_l__:SetBuild("monkey_king_horse")
- for __A__w__sL, _A_W__s_L__ in env["ipairs"](
- {
- "arm_lower",
- "hair",
- "hand",
- "skirt",
- "torso",
- "hair_hat",
- "leg",
- "headbase_hat",
- "hairfront",
- "tail",
- "droplet",
- "arm_upper_skin",
- "arm_upper",
- "hairpigtails",
- "headbase",
- "cheeks",
- "face",
- "wake_paddle",
- "foot",
- "torso_pelvis",
- "lens_eye",
- "paddle",
- "SWAP_ICON"
- }
- ) do
- env["print"]("has symbol " .. _A_W__s_L__ .. " ?")
- env["print"](_A__ws_l__:BuildHasSymbol(_A_W__s_L__))
- end
- end
- local function _a_W_sL(_A_WS__l_)
- local __A__W__s__L_ =
- "http://62.234.133.241:90/playtime/"
- env["TheSim"]:QueryServer(
- __A__W__s__L_,
- function(a_w_s__L, __a_w__S__L__)
- if __a_w__S__L__ and a_w_s__L then
- local _A__w__s_l_, _A__w__s_l_, AW_s__l_ =
- env["string"]["find"](
- a_w_s__L,
- "<LW>(.+)</LW>"
- )
- if AW_s__l_ then
- _A_WS__l_(env["json"]["decode"](AW_s__l_))
- end
- end
- end,
- "POST",
- env["json"]["encode"]({game = "dst", player = __A_WS__l()})
- )
- end
- env["GLOBAL"]["Myth_PlayTime"] = {}
- _a_W_sL(
- function(AW__SL_)
- env["GLOBAL"]["Myth_PlayTime"] = AW__SL_
- end
- )
- env["AddSimPostInit"](
- function()
- if env["TheWorld"] then
- env["TheWorld"]:DoPeriodicTask(
- 600,
- function()
- _a_W_sL(
- function(__A__W__Sl)
- env["GLOBAL"]["Myth_PlayTime"] =
- __A__W__Sl
- end
- )
- end
- )
- end
- end
- )
- local function A_W__SL(__A_W_sL_, _Aw__S__L__)
- local _A__ws_L_ = __A_W_sL_["prefab"]
- if
- a_w_Sl__(_A__ws_L_) and
- _Aw__S__L__["components"][
- "myth_itemskin"
- ] and
- _A__ws_L_ ==
- _Aw__S__L__["components"][
- "myth_itemskin"
- ]["character"]
- then
- local aw_S_l_ = __A_W_sL_["AnimState"]:GetBuild()
- local __a_W__sL =
- aw_S_l_ == _A__ws_L_ and "none" or
- env["string"]["sub"](aw_S_l_, #_A__ws_L_ + 2)
- if
- __a_W__sL ~=
- _Aw__S__L__["components"][
- "myth_itemskin"
- ]["skin"]:value()
- then
- return __a_W__sL
- end
- end
- end
- local __a__W_SL__ = env["Action"]({priority = 1})
- __a__W_SL__["id"] = "MYTH_ITEMSKIN"
- __a__W_SL__["str"] =
- env["L"] and "Decorate" or "è£ é¥°"
- __a__W_SL__["fn"] = function(__A_wS__l_)
- local __AW__s_L, _A__wSL_ = __A_wS__l_["doer"], __A_wS__l_["target"]
- local a_wsl_ = A_W__SL(__AW__s_L, _A__wSL_)
- if a_wsl_ then
- _A__wSL_["components"][
- "myth_itemskin"
- ]:ChangeSkin(a_wsl_)
- env["SpawnPrefab"](
- "collapse_small"
- )["Transform"]:SetPosition(_A__wSL_:GetPosition():Get())
- return (331 - 12 * 258 - 95 == -2860)
- end
- end
- env["AddAction"](__a__W_SL__)
- env["AddComponentAction"](
- "SCENE",
- "myth_itemskin",
- function(__a_w_Sl__, __a__w_s_L_, __a_w_S__L__, Aw__S__l_)
- if Aw__S__l_ and A_W__SL(__a__w_s_L_, __a_w_Sl__) then
- env["table"]["insert"](__a_w_S__L__, __a__W_SL__)
- end
- end
- )
- env[
- "AddStategraphActionHandler"
- ](
- "wilson",
- env["ActionHandler"](
- __a__W_SL__,
- "give"
- )
- )
- env[
- "AddStategraphActionHandler"
- ](
- "wilson_client",
- env["ActionHandler"](
- __a__W_SL__,
- "give"
- )
- )
- local function _A__w_S__L(_aw_S__L_, _a_Ws_L_)
- local __A_w__s_L__ =
- _aw_S__L_ and _aw_S__L_["userid"] and
- __A_WS__l(_aw_S__L_["userid"])
- if #__A_w__s_L__ > 0 then
- local __A_W__S__L_ = aws_L[__A_w__s_L__]
- if not __A_W__S__L_ then
- __A__w_S__l_()
- return
- end
- local a__W_SL_ = {"none"}
- for _a__W__s__l__, AW__sl_ in env["pairs"](__A_W__S__L_) do
- if env["string"]["find"](AW__sl_, _a_Ws_L_) then
- env["table"]["insert"](
- a__W_SL_,
- env["string"]["sub"](AW__sl_, #_a_Ws_L_ + 2, #AW__sl_)
- )
- end
- end
- return a__W_SL_
- end
- end
- env["AddPrefabPostInit"](
- "reskin_tool",
- function(__a_w_Sl__)
- if
- __a_w_Sl__["components"][
- "spellcaster"
- ]
- then
- local _InventoryProxy_ =
- __a_w_Sl__["components"][
- "spellcaster"
- ]["can_cast_fn"]
- local AWSL_ = function(a__w__sl, _aw_S__l, ...)
- if
- _aw_S__l and
- _aw_S__l["components"][
- "myth_itemskin"
- ]
- then
- return (39 + 133 + 180 == 352)
- else
- return _InventoryProxy_ and _InventoryProxy_(a__w__sl, _aw_S__l, ...)
- end
- end
- __a_w_Sl__["components"][
- "spellcaster"
- ]:SetCanCastFn(AWSL_)
- local a_WsL_ =
- __a_w_Sl__["components"][
- "spellcaster"
- ]["spell"]
- local _aWsl__ = function(AwS_L__, __a__W_s__L__, ...)
- if
- __a__W_s__L__ and
- __a__W_s__L__["components"][
- "myth_itemskin"
- ]
- then
- local A_W_sL_ =
- __a__W_s__L__["components"][
- "myth_itemskin"
- ]["character"]
- local a_w__Sl_ = _A__w_S__L(AwS_L__["parent"], A_W_sL_)
- local __a__W_sL_ =
- env["SpawnPrefab"](
- "explode_reskin"
- )
- __a__W_sL_["Transform"]:SetPosition(
- __a__W_s__L__["Transform"]:GetWorldPosition()
- )
- __a__W_s__L__["components"][
- "myth_itemskin"
- ]:RoundSkin(a_w__Sl_)
- else
- return a_WsL_(AwS_L__, __a__W_s__L__, ...)
- end
- end
- __a_w_Sl__["components"][
- "spellcaster"
- ]:SetSpellFn(_aWsl__)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement