Page 36 of 39

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 8:48 am
by Desmond
1 - both start the game as usual and can the fact that I have a bot running first at Elf Varanas
2 - buy belts going fine but I still I would like to at Kupka stones

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 9:02 am
by rock5
1 - Sorry, still don't understand.
2 - I can't see anything wrong with it. It looks exactly the same except for different waypoints and different id. If they are correct then it should work like the belt one does.

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 9:15 am
by Desmond
rock5 wrote:1 - Sorry, still don't understand.
2 - I can't see anything wrong with it. It looks exactly the same except for different waypoints and different id. If they are correct then it should work like the belt one does.
but the first is not always comes to the channel that is needed, can write code waypoint switch Canal?

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 10:28 am
by rock5
I believe you can change channel with ChangeParallelID. Eg,

Code: Select all

RoMCode("ChangeParallelID(2)")
You'll have to add a yrest to wait until it's finished. I don't know how long it takes to change channel.

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 5:59 pm
by ZZZZZ
rock5 wrote:I believe you can change channel with ChangeParallelID. Eg,

Code: Select all

RoMCode("ChangeParallelID(2)")
You'll have to add a yrest to wait until it's finished. I don't know how long it takes to change channel.
I used staticpopup to wait for channel to change. You can also use GetCurrentParallelID();

Code: Select all

RoMScript("ChangeParallelID(1)")
		repeat
			yrest(1000)
		until not RoMScript("StaticPopup1:IsVisible()")

Code: Select all

RoMScript("ChangeParallelID(1)")
		repeat
			yrest(1000)
		until RoMScript("GetCurrentParallelID()") == 1

Re: Rock5's Mail Mods

Posted: Wed Oct 08, 2014 6:48 am
by Desmond
I have a serious problem, the problem is to solve it spoils all my work I work on it every day.
The problem here is what I have every character under the bot operates on the Island of the Elves to Varanasi, but when the bot to get to the NPC Sidklo that porting to Varanasi that happens, says the area is not open, then everything disappears NPC, you get to do a background check when he says that the area is not open then relog ago on the choice of character will return to nature and to continue working, this is the most serious problem that I can't solve for me it spoils the robot ((

Re: Rock5's Mail Mods

Posted: Wed Oct 08, 2014 1:08 pm
by Desmond
check if there was a message now on the screen area is not open then choice of character to enter and back and continue

Re: Rock5's Mail Mods

Posted: Wed Oct 08, 2014 1:10 pm
by Desmond
yes I can insert - ReloadUI () but I need check if the area is not open then ReloadUI ()

Re: Rock5's Mail Mods

Posted: Thu Oct 09, 2014 3:12 am
by Desmond
I can not do a background check on the message area is not open

Re: Rock5's Mail Mods

Posted: Thu Oct 16, 2014 1:12 pm
by Desmond
Can I do a background check I need verification when my bot sent letters to then download the next waypoint.
for example, this code should check sent if the last two characters of the bot emails if sent then loadPaths("Stones_Buy_Send")
The example

Code: Select all

local check sent messages names ={"Stork", "Herau"}; then
loadPaths("Stones_Buy_Send")

Re: Rock5's Mail Mods

Posted: Thu Oct 16, 2014 11:04 pm
by rock5
Are you saying you want to know when you receive mail? If you are logged on when you receive mail then you get an new mail indicator so there might be a variable somewhere we can check. But if you received your mail before you log into your character then the only way to know if you received any mail is to go and check the mailbox. Even if you are logged on when you receive the email, I don't know if we can tell who sent the mail. Maybe you could use the event monitor functions to monitor the receive-mail event.

Re: Rock5's Mail Mods

Posted: Fri Oct 17, 2014 3:47 am
by Desmond
rock5 wrote:Are you saying you want to know when you receive mail? If you are logged on when you receive mail then you get an new mail indicator so there might be a variable somewhere we can check. But if you received your mail before you log into your character then the only way to know if you received any mail is to go and check the mailbox. Even if you are logged on when you receive the email, I don't know if we can tell who sent the mail. Maybe you could use the event monitor functions to monitor the receive-mail event.
no you I don't quite understand, I need the bot to check when he sent the characters belt

Re: Rock5's Mail Mods

Posted: Fri Oct 17, 2014 2:33 pm
by Desmond
Rock5, check for me if I correctly wrote the code.
here's a code, he should check if the bot already sent belt to the last two characters then go to the next waypoint

Code: Select all

local CheckSentMessages by name ={"Stork", "Herau"}; then
loadPaths("Stones_Buy_Send")

Re: Rock5's Mail Mods

Posted: Fri Oct 17, 2014 8:39 pm
by noobbotter
oh, so after the bot sends the emails, you just want it to verify that it sent them before moving on to the next waypoint.

Re: Rock5's Mail Mods

Posted: Sat Oct 18, 2014 4:20 am
by Desmond
noobbotter wrote:oh, so after the bot sends the emails, you just want it to verify that it sent them before moving on to the next waypoint.
yes

Re: Rock5's Mail Mods

Posted: Sat Nov 01, 2014 11:53 am
by Desmond
How can I make the bot to send by mail Rental

Re: Rock5's Mail Mods

Posted: Sat Nov 01, 2014 12:03 pm
by rock5
If you have a rental mail box the functions should still work. If there is no nearby mailbox it will check to see if you have a rental or convenient mailbox and use it.

Re: Rock5's Mail Mods

Posted: Sat Nov 01, 2014 12:06 pm
by Desmond
rock5 wrote:If you have a rental mail box the functions should still work. If there is no nearby mailbox it will check to see if you have a rental or convenient mailbox and use it.
well thank you!

Re: Rock5's Mail Mods

Posted: Sat Nov 08, 2014 3:36 am
by Edz
Hallo

I'll try to explain my problem, i hope you will understand be because my english got bad in the last years.

I'm using yout mail function but now i want my bot the send some things, for example 5 manastones tier 5 to the next char in the name list.

Example:
nameTable =
{"a","b","c".......
}

when 'a' has finished he should send the things to be and when 'b' has finished the same thing only to 'c'

I hope you can help me

Thanks

Re: Rock5's Mail Mods

Posted: Sat Nov 08, 2014 9:51 am
by rock5
Try

Code: Select all

_, i = table.contains(nameTable, player.Name)
recipient = nameTable[i + 1]
'recipient' will be the next name in the list. Of course you should probably check to see if you aren't already at the end of the list.