Advertisement
Peerapat_PKY

ApiCheckitemWeb

Nov 11th, 2024 (edited)
8,396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.81 KB | None | 0 0
  1. repeat task.wait() until game:GetService("Players").LocalPlayer
  2. repeat task.wait() until game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui")
  3. repeat task.wait() until game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("Main")
  4. repeat task.wait() until (game.Players.LocalPlayer.Neutral == false) == true
  5.  
  6. local pbag = ({...})[1]
  7. local __script__host = pbag[1]
  8. local __script__token = pbag[2]
  9. local __script__machine = pbag[3]
  10. local HttpService = game:GetService("HttpService")
  11. local Players = game:GetService("Players")
  12. local LocalPlayer = Players.LocalPlayer
  13. local MeleeRequestList = {
  14. ["Death Step"] = "BuyDeathStep",
  15. ["Sharkman Karate"] = "BuySharkmanKarate",
  16. ["Electric Claw"] = "BuyElectricClaw",
  17. ["Dragon Talon"] = "BuyDragonTalon",
  18. ["Godhuman"] = "BuyGodhuman",
  19. ["Super human"] = "BuySuperhuman",
  20. ["Sanguine Art"] = "BuySanguineArt"
  21. }
  22. function getLevel()
  23. return LocalPlayer.Data.Level.Value
  24. end
  25. function getWorld()
  26. local placeId = game.PlaceId
  27. if placeId == 2753915549 then
  28. return 1
  29. elseif placeId == 4442272183 then
  30. return 2
  31. elseif placeId == 7449423635 then
  32. return 3
  33. end
  34. end
  35. function getItem(itemName)
  36. for i,v in pairs(game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("getInventory")) do
  37. if type(v) == "table" then
  38. if v.Type == "Material" then
  39. if v.Name == itemName then
  40. return true
  41. end
  42. end
  43. end
  44. end
  45. return false
  46. end
  47. function getFruitMastery()
  48. if game:GetService("Players").LocalPlayer.Data.DevilFruit.Value == '' then return 0 end
  49. if LocalPlayer:FindFirstChild("Backpack") then
  50. for i,v in pairs(LocalPlayer:FindFirstChild("Backpack"):GetChildren()) do
  51. if v.ToolTip == "Blox Fruit" then
  52. if v:FindFirstChild("Level") then
  53. return v.Level.Value
  54. end
  55. end
  56. end
  57. end
  58. repeat wait() until LocalPlayer.Character
  59. if LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  60. local Tool = LocalPlayer.Character:FindFirstChildOfClass("Tool")
  61. if Tool.ToolTip == "Blox Fruit" then
  62. if Tool:FindFirstChild("Level") then
  63. return Tool.Level.Value
  64. end
  65. end
  66. end
  67. return 0
  68. end
  69.  
  70. function getFruitName()
  71. return string.split(game:GetService("Players").LocalPlayer.Data.DevilFruit.Value,"-")[2] or "None"
  72. end
  73.  
  74. function getAwakend()
  75. local SkillAWakenedList = {}
  76. local getAwakenedAbilitiesRequests = game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("getAwakenedAbilities")
  77. if getAwakenedAbilitiesRequests then
  78. for i, v in pairs(getAwakenedAbilitiesRequests) do
  79. if v["Awakened"] then
  80. table.insert(SkillAWakenedList, i)
  81. end
  82. end
  83. end
  84. return SkillAWakenedList;
  85. end
  86.  
  87. function getMeele()
  88. local MeleeName = {}
  89. local MeleeRequestList = {
  90. ["Death Step"] = "BuyDeathStep",
  91. ["Sharkman Karate"] = "BuySharkmanKarate",
  92. ["Electric Claw"] = "BuyElectricClaw",
  93. ["Dragon Talon"] = "BuyDragonTalon",
  94. ["Godhuman"] = "BuyGodhuman",
  95. ["Super human"] = "BuySuperhuman",
  96. ["Sanguine Art"] = "BuySanguineArt"
  97. }
  98.  
  99. for meleeName, requestName in pairs(MeleeRequestList) do
  100. -- ตรวจสอบว่าผู้เล่นมี Melee นี้หรือไม่
  101. local hasMelee = game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer(requestName, true)
  102. if tonumber(hasMelee) == 1 then
  103. -- ค้นหา Melee ใน Backpack เพื่อดึง Mastery Level
  104. local tool = game.Players.LocalPlayer.Backpack:FindFirstChild(meleeName)
  105. if tool and tool:FindFirstChild("Level") then
  106. local masteryLevel = tool.Level.Value -- ดึงค่า Mastery Level
  107. table.insert(MeleeName, meleeName .. ":" .. masteryLevel)
  108. else
  109. -- ถ้าไม่มี Mastery Level ให้แสดงเฉพาะชื่อ
  110. table.insert(MeleeName, meleeName)
  111. end
  112. end
  113. end
  114.  
  115. return MeleeName
  116. end
  117.  
  118. function getSword()
  119. local SwordList, RequestGetInventory = {}, nil
  120. RequestGetInventory = game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("getInventory")
  121.  
  122. for _, v in pairs(RequestGetInventory) do
  123. if v['Type'] == "Sword" and v['Rarity'] >= 3 then
  124. local swordEntry = v['Name'] .. ":" .. tostring(v['Mastery']) -- รูปแบบ Sword : Mastery
  125. table.insert(SwordList, swordEntry)
  126. end
  127. end
  128.  
  129. return SwordList
  130. end
  131.  
  132.  
  133. function GetFruitInU()
  134. local ReturnText = {}
  135. for i,v in pairs(game:GetService("ReplicatedStorage").Remotes["CommF_"]:InvokeServer("getInventoryFruits")) do
  136. if type(v) == "table" then
  137. if v ~= nil then
  138. if v.Price >= 100000 then
  139. table.insert(ReturnText,string.split(v.Name,"-")[2])
  140. end
  141. end
  142. end
  143. end
  144. return ReturnText
  145. end
  146. function len(x)
  147. local q = 0
  148. for i, v in pairs(x) do
  149. q = q + 1
  150. end
  151. return q
  152. end
  153. function findItem(item)
  154. local RequestgetInventory;
  155. RequestgetInventory = game:GetService("ReplicatedStorage").Remotes["CommF_"]:InvokeServer("getInventory")
  156. for i, __ in pairs(RequestgetInventory) do
  157. if __["Name"] == item then
  158. return true
  159. end
  160. end
  161. return false
  162. end
  163. function getType()
  164. local ReturnText = {}
  165.  
  166. if findItem("Cursed Dual Katana") then
  167. table.insert(ReturnText, "CDK")
  168. end
  169. if findItem("Shark Anchor") then
  170. table.insert(ReturnText, "SA")
  171. end
  172. if findItem("Soul Guitar") then
  173. table.insert(ReturnText, "SG")
  174. end
  175. if findItem("Leviathan Heart") then
  176. table.insert(ReturnText, "Heart")
  177. end
  178.  
  179. local GodHuman = tonumber(game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("BuyGodhuman",true))
  180. if GodHuman then
  181. if GodHuman == 1 then
  182. table.insert(ReturnText, "GOD")
  183. end
  184. end
  185. if len(ReturnText) == 0 then
  186. table.insert(ReturnText, "NOOB")
  187. end
  188. return table.concat(ReturnText, " ")
  189. end
  190.  
  191. function getVK()
  192. for i,v in pairs(game:GetService("ReplicatedStorage").Remotes["CommF_"]:InvokeServer("getInventoryWeapons")) do -- เช็คในกระเป๋า
  193. for i1,v1 in pairs(v) do
  194. if v1 == 'Valkyrie Helm' then
  195. return true
  196. end
  197. end
  198. end
  199. if game:GetService("Players").LocalPlayer.Backpack:FindFirstChild('Valkyrie Helm') or game:GetService("Players").LocalPlayer.Character:FindFirstChild('Valkyrie Helm') then
  200. return true
  201. end
  202. return false
  203. end
  204.  
  205. function getEvoTier()
  206. local CheckAlchemist = game.ReplicatedStorage.Remotes.CommF_:InvokeServer("Alchemist", "1")
  207. if CheckAlchemist == -2 then
  208. local CheckWenlocktoad = game.ReplicatedStorage.Remotes.CommF_:InvokeServer("Wenlocktoad", "1")
  209. if CheckWenlocktoad == -2 then
  210. if game.Players.LocalPlayer.Character:FindFirstChild("RaceTransformed") then
  211. return 4
  212. end
  213. return 3
  214. end
  215. return 2
  216. end
  217. return 1
  218. end
  219.  
  220.  
  221. function getAwakendTier()
  222. local q, _ = pcall(function()
  223. return tonumber(game:GetService("Players").LocalPlayer.Data.Race.C.Value)
  224. end)
  225. if q then return _ end
  226. return 0
  227. end
  228.  
  229. function checkDoor()
  230. return game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("CommF_"):InvokeServer("CheckTempleDoor")
  231. end
  232.  
  233.  
  234. --[[ function FormatNumber(value)
  235. if value >= 1000000 then
  236. return string.format("%.1fM", value / 1000000)
  237. elseif value >= 100000 then
  238. return string.format("%.0fK", value / 1000)
  239. else
  240. return tostring(value)
  241. end
  242. end
  243.  
  244. function CheckFragment()
  245. local fragments = game:GetService("Players").LocalPlayer.Data.Fragments.Value
  246. return FormatNumber(fragments)
  247. end
  248.  
  249. function CheckBeli()
  250. local beli = game:GetService("Players").LocalPlayer.Data.Beli.Value
  251. return FormatNumber(beli)
  252. end ]]
  253.  
  254. function sendRequest()
  255. local res = request({
  256. Url = __script__host,
  257. Method = "POST",
  258. Headers = {
  259. ["Content-Type"] = "application/json",
  260. ["Authorization"] = __script__token,
  261. },
  262. Body = HttpService:JSONEncode({
  263. ["account"] = LocalPlayer.DisplayName,
  264. ["type"] = getType(),
  265. ["level"] = getLevel(),
  266. ["world"] = getWorld(),
  267. ["mirror"] = getItem("Mirror Fractal"),
  268. ["valk"] = getVK(),
  269. ["fruitMas"] = getFruitMastery(),
  270. ["fruit"] = getFruitName() or "None",
  271. ["awaken"] = getAwakend(),
  272. ["melee"] = getMeele(),
  273. ["beli"] = LocalPlayer.Data.Beli.Value,
  274. ["fragment"] = LocalPlayer.Data.Fragments.Value,
  275. ["machine"] = __script__machine,
  276. ["inventory"] = getSword(),
  277. ["fruitInv"] = GetFruitInU(),
  278. ["race"] = game:GetService("Players").LocalPlayer.Data.Race.Value,
  279. ["raceV"] = getEvoTier(),
  280. ["tier"] = getAwakendTier(),
  281. ["unlockDoor"] = checkDoor()
  282. })
  283. })
  284. warn(res.Body)
  285. end
  286.  
  287. task.spawn(function()
  288. while true do
  289. local x, p = pcall(function()
  290. sendRequest()
  291. end)
  292. if not x then warn(p) end
  293. task.wait(10)
  294. end
  295. end)
  296.  
  297.  
  298. local fragments = LocalPlayer.Data.Fragments.Value
  299. print(type(fragments))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement