View Full Version : Open Mailbox
edwinnowak41
05-24-2016, 08:50 PM
Hello!
Sorry for my language :D
I have request, can somone write for me script (this in oneliner ) that my character will open mailbox ? I cant find that on forum.
I just start my adventure with this bot :D
Trykon
05-24-2016, 08:54 PM
Should work... This is part of my script that is working.
Self.OpenLocker()
local cfrom = Container.New('Your Inbox')
while not cfrom:isOpen() do
cfrom = Container.New('Your Inbox')
local dp = Container.New('Locker')
for mailspot, touse in dp:iItems() do
if touse.id == 12902 then
dp:UseItem(mailspot, true)
wait(500, 1700)
end
end
end
edwinnowak41
05-24-2016, 09:05 PM
And i have one more question :D where I should paste the feed of opened me to the mailbox? ( i know that i must change this on lua)and what i must to do in Walker ?
Or u know any guide ?
// POland
Ogarnia ktoś, jak dodać scrypt lua do walkera ? Bo mam juz wszystko ale nie wiem jak to zrobić XD
Trykon
05-24-2016, 09:34 PM
w lua ustawiasz
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
i pozniej w lua:
if(labelName == "nazwa twojego labela") then
tu twoj skrypt
na koniec po prostu juz w kliencie odpalasz ten swoj magiczny lua uzywajac scriptera
polecam: http://forums.xenobot.net/showthread.php?22658-PL-Polski-Tutorial-na-Waypoint-100-AFK&highlight=skinner
edwinnowak41
05-24-2016, 09:35 PM
dziekuje
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.