Regarding ALL my /sellitem POSTS

A forum for macro code snippets to be used in writing other macros. Post routines or .inc files here only, completed macros go to the Macro Depot.

Moderator: MacroQuest Developers

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Regarding ALL my /sellitem POSTS

Post by Draekz » Mon Mar 01, 2004 11:22 am

OK I decided toput this here since its the general forum and most people read this forum.

Now onto the important thing. I've managed to completely nerf the /sellitem.inc im using so that it does something lol. Not sure why everyone elses sellitem macs and incs dont work with me but whatever the cause after hours of tool'ing around with my mac i've managed to get it to work with this one I edited!

Make sure none of your bags cover your inventory slots! Other than that, they can stack up on each other or anything..just so long as every inv slot is always on top!

Here's the sellitem code I use that works with my macro's:

Code: Select all

| -- Sellitems.inc
| -- Edited by Draekz

Sub SELLITEM(ITEMTOSELL) 
    

   /click left auto 
   /autoinv 

   :Finding 
      
      /finditem similar "@ITEMTOSELL" 
      /if "$find()"=="FALSE" /goto :Done 
      /finditem similar "@ITEMTOSELL"
      
   :Selling 

      /sellitem $selecteditem(count)
    
/delay 1s 
      
      /goto :Finding 

   :Done    

/return 


Thats it..none of this fancy shmansy coding stuff to bork up my macro! Dont recall who made this "macro" originally, but they didnt put their credits in their post so thats why there's none in there.

Anyway..if you seem to have a lot of trouble or any trouble with sellitem then here's your solution!

Thanks for the patience and help all who lent me a hand, my macro is now a masterpiece! Next step: To implement a $rand function so that my character can run random paths to and from the places. I can make the paths easily enough but I dont know how I would get it to $rand their walking paths..will have to research that one too i guess ;)

Later!

Draekz

User avatar
vzmule
Contributing Member
Contributing Member
Posts: 378
Joined: Thu Mar 13, 2003 11:56 pm

Post by vzmule » Tue Mar 02, 2004 11:06 am

This should be in the macro snippets section.
[size=100][url]http://forever-hacking.com[/url][/size]