Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
I Can't really find a complete guide of the player io API.
Most of the tutorials are about creating your first bot with a connection with EE.
I'd love to create bots for EE.
PS: I've already learned C#.
If you already know C#, it should be fairly self-explanatory. Make the Player.IO connection, weather through Main or your own function, make the onMessage event-handler and listen for messages.
All the messages can be found here: http://capasha.com/notafraud/index.php
Offline
If you already know C#, it should be fairly self-explanatory. Make the Player.IO connection, weather through Main or your own function, make the onMessage event-handler and listen for messages.
All the messages can be found here: http://capasha.com/notafraud/index.php
It's still hard to learn something without help T_T. Detecting an event doesn't seem hard, but how can edit a blocks?
It's still hard to learn something without help T_T. Detecting an event doesn't seem hard, but how can edit a blocks?
Well, if you look on Capasha's website, you can see how you have to do it.
Examples:
------------------------------------------
*Place a block (look here):
Capasha's website says:
# Brick/Background (Blocks) <String> Rot13/Derot/Worldkey <Integer> Layer (Background = 1, Foreground = 0) <Integer> X <Integer> Y <Integer> BrickID
What you have to do is just follow what it says, separated with a comma (,):
connection.Send(worldkey, 1 or 0, X-value, Y-value, block-ID);
where X-value and Y-value are the coordinates where you want to place that block.
------------------------------------------
*Say something (look here):
Capasha's website says:
# Say <String> "say" <String> Message
just like the previous one, you have to seperate everything with a comma (,):
connection.Send("say", "Your message");
------------------------------------------
You can do this to everything that stands below 'Everybody Edits Send / con.Send()' on capasha's website
Look for more examples on the bottom of the page.
------------------------------------------
Well, I hope it helped and that your bot will be great
Also, I hope this is not too complicated for you to understand
912468
Offline
If u want the bot to say something:
connection.Send("autosay", 1); 1 = Hi. 2 = Goodbye. 3 = Help me! 4 = Thank you. 5 = Follow me. 6 = Stop! 7 = Yes. 8 = No. 9 = Right. 0 = Left.
SOUBR wrote:It's still hard to learn something without help T_T. Detecting an event doesn't seem hard, but how can edit a blocks?
Well, if you look on Capasha's website, you can see how you have to do it.
Examples:
------------------------------------------
*Place a block (look here):
Capasha's website says:
# Brick/Background (Blocks) <String> Rot13/Derot/Worldkey <Integer> Layer (Background = 1, Foreground = 0) <Integer> X <Integer> Y <Integer> BrickID
What you have to do is just follow what it says, separated with a comma (,):
connection.Send(worldkey, 1 or 0, X-value, Y-value, block-ID);
where X-value and Y-value are the coordinates where you want to place that block.
------------------------------------------
*Say something (look here):
Capasha's website says:
# Say <String> "say" <String> Message
just like the previous one, you have to seperate everything with a comma (,):
connection.Send("say", "Your message");
------------------------------------------
You can do this to everything that stands below 'Everybody Edits Send / con.Send()' on capasha's website
Look for more examples on the bottom of the page.
------------------------------------------
Well, I hope it helped and that your bot will be great
Also, I hope this is not too complicated for you to understand
912468
This is actually what i am looking for. I know i can get all the information i need in capasha but i don't how can i use this information. You helped me a lot thx.
Offline
SOUBR wrote:This is actually what i am looking for. I know i can get all the information i need in capasha but i don't how can i use this information. You helped me a lot thx.
You're welcome. If you still have any trouble with your bot, feel free to ask me.
912468
I'd like to know how to handle an event and how can i process it (What type will the function return etc...)
912468 wrote:SOUBR wrote:This is actually what i am looking for. I know i can get all the information i need in capasha but i don't how can i use this information. You helped me a lot thx.
You're welcome. If you still have any trouble with your bot, feel free to ask me.
912468I'd like to know how to handle an event and how can i process it (What type will the function return etc...)
Player.IO simply returns an array of objects and the message it belongs to, you have to use the Message.Get* function (ex. myMessage.GetInt or myMessage.GetString), and know what type the object in the array actually is. All of that is listed on the page I gave you for Capasha's site.
Offline
SOUBR wrote:912468 wrote:SOUBR wrote:This is actually what i am looking for. I know i can get all the information i need in capasha but i don't how can i use this information. You helped me a lot thx.
You're welcome. If you still have any trouble with your bot, feel free to ask me.
912468I'd like to know how to handle an event and how can i process it (What type will the function return etc...)
Player.IO simply returns an array of objects and the message it belongs to, you have to use the Message.Get* function (ex. myMessage.GetInt or myMessage.GetString), and know what type the object in the array actually is. All of that is listed on the page I gave you for Capasha's site.
I think that's all need to know. I'll start a bot tomorrow. Thank you guys, you helped me a lot.
Well, can someone send me PlayerIoClient.dll?
Offline
SOUBR wrote:912468 wrote:SOUBR wrote:This is actually what i am looking for. I know i can get all the information i need in capasha but i don't how can i use this information. You helped me a lot thx.
You're welcome. If you still have any trouble with your bot, feel free to ask me.
912468I'd like to know how to handle an event and how can i process it (What type will the function return etc...)
Player.IO simply returns an array of objects and the message it belongs to, you have to use the Message.Get* function (ex. myMessage.GetInt or myMessage.GetString), and know what type the object in the array actually is. All of that is listed on the page I gave you for Capasha's site.
How to create a Message? I can't do : public PlayerIOClient.Message messag =new PlayerIOClient.Message();, and There isn't a : PlayerIOClient.Message.GetInt();
How to create a Message? I can't do : public PlayerIOClient.Message messag =new PlayerIOClient.Message();, and There isn't a : PlayerIOClient.Message.GetInt();
Can you specify what you mean? Do you mean like sending a message (like this post) or receiving a message, like:
if (m.Type == "add") { connection.Send("say", "A player joined"); }
And the m.Getint is used with a parameter (like m.Getint(0))
912468
Offline
SOUBR wrote:How to create a Message? I can't do : public PlayerIOClient.Message messag =new PlayerIOClient.Message();, and There isn't a : PlayerIOClient.Message.GetInt();
Can you specify what you mean? Do you mean like sending a message (like this post) or receiving a message, like:
if (m.Type == "add") { connection.Send("say", "A player joined"); }
And the m.Getint is used with a parameter (like m.Getint(0))
912468
Now i see thx again
Last edited by SOUBR (Dec 11 2014 3:34:39 pm)
Pages: 1
[ Started around 1732704692.0991 - Generated in 0.098 seconds, 12 queries executed - Memory usage: 1.66 MiB (Peak: 1.86 MiB) ]