Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Przemo240

Rekomendowane odpowiedzi

Opublikowano

Mógłby ktoś mi przerobić wyciąganie kasy w banku , musi wyciągać kasę dla health potow i mana . Tyle kombinacji próbowałem i nie wychodzi , a mózg mi paruje ... 

elseif (labelName == "Bank") then
		local withdrawHealths = math.max(MaxHealth - Self.ItemCount(268), 0)*50
		local totalmoneyneeded = (withdrawHealths - Self.ItemCount(285)*5)
		local MATHCEIL = (totalmoneyneeded)
		Walker.Stop()
		Self.SayToNpc({"hi", "deposit all", "yes", "withdraw 100" , "yes"}, 65)
		if (totalmoneyneeded > 0) then
			Self.SayToNpc({"withdraw " .. MATHCEIL, "yes", "balance"}, 65)   
		end  
		wait(2000)
		Walker.Start()

Kocham mpcforum.pl!!!

18706.png

Pasjonat
Opublikowano
------------------------------------------------Settings----------------------------------------------------------------------------

-- Ammunition --

maxAmmo = 27 -- The number of ammunition the bot will buy.

leaveAmmo = 14 -- The number of ammunition the bot will leave the hunting ground.

ammoId = 7378 -- The ammunition ID you want to use.

ammoPrice = 15 -- Price of that ammunition.



-- Potion --

maxMana = 110 -- The number of mana potion the bot will buy.

leaveMana = 40 -- The number of mana potion the bot will leave the hunting ground.

manaId = 237 -- The mana potion ID you want to use.

manaPrice = 80 --Price of the mana potion.



---------------------------------------------------------------------------------

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)



if (labelName == "withdrawCash") then

setWalkerEnabled(false)

delayWalker(5000)

Self.Say("hi")

sleep(math.random(700, 1400))

Self.WithdrawMoney((manaPrice*(maxMana-Self.ItemCount(manaId))))

sleep(math.random(800, 1500))

Self.SayToNpc("yes")

sleep(math.random(800, 1500))

Self.WithdrawMoney((ammoPrice*(maxAmmo-Self.ItemCount(AmmoId))))

sleep(math.random(800, 1500))

Self.SayToNpc("yes")

setWalkerEnabled(true)

end

end

Coś takiego znalazłem. Ammo price i id możesz sobie zmienić na Health Poty.

:)
Opublikowano

Wrzuciłem tak pozmienialem pod moj lua no i wyskakuje takie cos  

20:23 XenoScript Error:
           Script: Mistrock EK.lua
           Line #: 104
           Chunk: C:\Users\Przemo\Documents\XenoBot\Scripts\Mistrock EK.lua
           Error: '<eof>' expected near 'elseif'
This is an error with user-input and should not be reported as a bug with XenoBot.

tu masz moj lua http://pastebin.com/8EKnixmT

Kocham mpcforum.pl!!!

18706.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...