Method Global:AddVendorItem [-] [+]

Adds an Item to a vendor and updates the world database.

Synopsis

AddVendorItem( entry, item, maxcount, incrtime, extendedcost )

Arguments

number entry

Creature entry Id.

Valid numbers: integers from 0 to 4,294,967,295.

number item

Item entry Id.

Valid numbers: integers from 0 to 4,294,967,295.

number maxcount

Max Item stack count.

Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

number incrtime

Combined with maxcount, incrtime tells how often (in seconds) the vendor list is refreshed and the limited Item copies are restocked.

Valid numbers: integers from 0 to 4,294,967,295.

number extendedcost

Unique cost of an Item, such as conquest points for example.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on
©2016 - Eluna Lua Engine