Thread Tools Display Modes
10-19-08, 03:18 PM   #1
Justin687
A Defias Bandit
Join Date: Oct 2008
Posts: 1
Psudo Code for Addon,Just want it cleared with more epxerienced people

Alright this is the basis of this addon,and its sketchy. I have done java before and just starting to get into LUA, so I wrote a fossil outline code to make ti clearer, some java resemblance can be seen. The purpose of this addon is to have it loaded on your bank.auction toon, What it will do is that when you open the AH,If will check the items in your bags,scan for the item on the AH,find the lowest UNIT price of that item, then reduce the price by z%(user input) and post it.

int y = (user input percentage)
int x = 0 (bag)
int z = 1(bag slot)

if (player is at AH)
then
(for x<6, z++)
if(nil is not return)
then
query the item at (x,z) on AH,scan for lowest buyout unit price
then post item on AH at (lowest unit price + (lowest unit price*y)) *stacksize
else(aka nil IS returned)
x++
if(player is not at AH)
make x and z reset to default values(x=0 z=1)


if anyone has any questions or find this hard to understand please tell me through here, or email at [email protected]

I also play on Justinian on the Cenarion Circle server on WoW if you play on thier too and want to discuss it.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Psudo Code for Addon,Just want it cleared with more epxerienced people


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off