What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Simple plugins example

Can we get an example of one that would complete a quest?
 
Hey Out, I love your script for entering world with character.
Is there a way to launch another plugin after your relogscript? (Besides including your script to my script)
Basically i want to run a plugin after my character is ingame...
 
Is there a place where I can learn how to code Archebuddy by myself? like a wiki or something explaining everything?
 
Hm, this single line of code does not work - my toon Gandalf simply does nothing (standing on my farm or beside):

Code:
CollectItemsAtFarm("Fruited Olive Tree", "Logging: Spend up to 10 Labor to chop down a tree.", "Gandalf");

What is the error? And how do I know the text of the second parameter (skillDesc)?

And: will the toon farm ALL trees or just one single, so I have to double, triple, etc. that code?
 
What is the error? And how do I know the text of the second parameter (skillDesc)?
GetLastError()
And: will the toon farm ALL trees or just one single, so I have to double, triple, etc. that code?
He will collect all trees on this farm\scarecrow
 
P.s. "Logging: Spend up to 15 Labor to chop down a tree."
15 labor instead of 10, as i see in database
 
So your "GetLastError()" was a joke?

And again: how do I know the text of the second parameter (skillDesc)? How do I get the text for another action (e.g. harvesting olives from an olive tree)? Can you / someone post an example where I can look it up in a database? Archeage Database 1.2 e.g.?
 
Last edited:
And this still does not work:
Code:
CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf");
MY toon still does nothing.

What name is the last parameter? My toons name (here: "Gandalf") or the name of the scarecrow (here: "Schreberdreck")?
 
So your "GetLastError()" was a joke?
No, this is not joke.
how do I know the text of the second parameter (skillDesc)
Move mouse over doodad (tree) - and you will see this description
 
No, this is not joke.
What do I do with GetLastError()?

This code still does not work:
Code:
    public void PluginRun()
       {
           Log("Harvesting...");
           CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf");
           Log("Harvesting ended");
...
"Harvesting" and "Harvesting ended" appear in the log, but my toon does nothing. It is standing on my farm, there are 4 trees (Tooltip shows "Olive Tree") and my toon's name is "Gandalf". (Well, it is not. But in this forum it is ;) )
What am I doing wrong?


Move mouse over doodad (tree) - and you will see this description
Well, that's quite cool - I have not seen that. Thank you!
 
What do I do with GetLastError()?
if (! CollectItemsAtFarm("Olive Tree", "Logging: Spend up to 15 Labor to chop down a tree.", "Gandalf"))
Log(GetLastError().ToString());
And write result here.
 
Ah okay.
The output in the log is:
InvalidParam

Either the text is wrong (misspelled) or something else.
I planted something else anf now it worked (in a second try I forgot the "." at the end).

Thank you, OUT!
 
Всем привет!
Получаю массив всех находящихся рядом существ, тип элемента массива creature.
Затем в цикле обхожу массив.
Подскажите,пожалуйста, как узнать что экземпляр типа creature не является маунтом и мобом,
проще говоря, что данный экземпляр является игроком ?

// добавлено
как проверить на маунта вроде бы понял
mountOwner(creature) == null так сработает ?

Как проверить что не моб не знаю, подскажите пожалуйста.
Извините, что на русском, английского не знаю, в машинном переводе все это будет выглядеть смешно для англоговорящих товарищей =)
 
Last edited:
I do not speak English.
Machine translation you may not be entirely clear.
But try to ask a question in English.
How to verify that the object is a player (not a mob and not a mount)?
Please forgive me for my English.
 
Всем привет!
Получаю массив всех находящихся рядом существ, тип элемента массива creature.
Затем в цикле обхожу массив.
Подскажите,пожалуйста, как узнать что экземпляр типа creature не является маунтом и мобом,
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 - повозки, дирижабли
 
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 - повозки, дирижабли

Большое спасибо !!!
 
hi all
im new here and i dont know much about programing
can somebody please tell me in what folder i need to put this plugin??
i try put it in plugins folder but ones i start plugin manager i don't see that plugin for farm
 
Back
Top