No such 'eve' method error

alsdk

Well-Known Member
Im trying to figuring out how to use core/obj_Market.iss for helping me with keeping market things ok.

I have two files, one with core/obj_Market.iss (the one who comes with evebot) and another with this:

#include "EVEbot/core/obj_Market.iss"

function main()
{
variable obj_Market Market
call Market.GetMarketOrders 3347
}

when running this code i get this:

Error:No Such 'eve' method UpdateMarketOrders_A' @EVE:UpdateMarketOrders_A[${typeID}]
Error parsing data sequence ''


What am i doing wrong ? Can someone point me in the right direction ?
 

Noob536

Member
Code:
December 3, 2009
[ISXEVE-20091201.0274]
* Added new MEMBER to the 'login' datatype:
  1. ServerMOTD                   (string type)
* Removed the following METHODS from the 'eve' datatype:
  1. UpdateMarketOrders_A
  2. UpdateMarketOrders_B
* Added new METHOD to the 'eve' datatype:
  1. FetchMarketOrders[#]         (# is the TypeID of the item for which you are searching)
***
*** The "FetchMarketOrders" method will either fetch an initial set of orders or update the orders you may have already fetched.  In both
*** cases, it does take a few moments to update the orders, so your script will have to handle this.  The example below works well for getting
*** an initial set of orders; however, if one were UPDATING orders, one would need to 'hard code' a long wait time to make sure they were
*** updated (since "DoGetMarketOrders" retrieves whatever is saved in the cache.)   I may be adding something soon that will be more efficient
*** than this system; however, for now, this solution should make it fairly easy to adjust scripts written before the Dominion expansion.
********
******** Example (getting orders for "Amarr Titan" skillbooks):
******** 	variable int i = 1
******** 	variable index:marketorder Orders
********
******** 	echo "Updating/Fetching Market Orders..."
******** 	; 3347 = Amarr Titan (skill book)
******** 	EVE:FetchMarketOrders[3347]
******** 	wait 20
********
******** 	EVE:DoGetMarketOrders[Orders]
******** 	if (${Orders.Used} == 0)
******** 	{
******** 		 do
******** 		 {
******** 			 echo "..."
******** 			 TimeOut:Inc
******** 			 EVE:FetchMarketOrders[3347]
******** 			 wait 20
********
******** 			 EVE:DoGetMarketOrders[Orders]
******** 			 if (${Orders.Used} != 0)
******** 			    break
********
******** 			 if (${TimeOut} > 3)
******** 			 {
******** 			 		echo "Error: Timeout while attempting to get market orders."
******** 			 		return
******** 			 }
******** 		 }
******** 		 while (${Orders.Used} == 0)
******** 	}
******** 	;;;
******** 	;;; Then you would iterate through your your "Orders" index...
********    ;;;
 
Top Bottom