Is there a place where I can learn how to code Archebuddy by myself? like a wiki or something explaining everything?
CollectItemsAtFarm("Fruited Olive Tree", "Logging: Spend up to 10 Labor to chop down a tree.", "Gandalf");
GetLastError()What is the error? And how do I know the text of the second parameter (skillDesc)?
He will collect all trees on this farm\scarecrowAnd: will the toon farm ALL trees or just one single, so I have to double, triple, etc. that code?
CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf");
No, this is not joke.So your "GetLastError()" was a joke?
Move mouse over doodad (tree) - and you will see this descriptionhow do I know the text of the second parameter (skillDesc)
What do I do with GetLastError()?No, this is not joke.
public void PluginRun()
{
Log("Harvesting...");
CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf");
Log("Harvesting ended");
...
Well, that's quite cool - I have not seen that. Thank you!Move mouse over doodad (tree) - and you will see this description
if (! CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf"))What do I do with GetLastError()?
Всем привет!
Получаю массив всех находящихся ...
I do not speak English.?????
Всем привет!
Получаю массив всех находящихся рядом существ, тип элемента массива creature.
Затем в цикле обхожу массив.
Подскажите,пожалуйста, как узнать что экземпляр типа creature не является маунтом и мобом,
foreach (var c in getCreatures())
{
if (c.type != BotTypes.Mount && c.type != BotTypes.Npc)
{
}
}
проще говоря, что данный экземпляр является игроком ?
foreach (var c in getCreatures())
{
if (c.type == BotTypes.Player)
{
}
}
Code:foreach (var c in getCreatures()) { if (c.type != BotTypes.Mount && c.type != BotTypes.Npc) { } }
Code:foreach (var c in getCreatures()) { if (c.type == BotTypes.Player) { } }
getCreatures() Возвращает массив Creature, который могут быть:
Housing - дома, пугала, постройки
Mount - маунты
Npc - Нпц (мобы и нпц в городах)
Player - игроки
Self - ты сам
Shipyard - верфи для постройки кораблей
Slave - трактора, корабли и т.п.
Transfer - повозки, дирижабли