View Full Version : Trading an item with another player
OneMHz
14-06-2006, 02:18 AM
I'm trying to write a mod or script to drop an item in a trade window. I have everything up to the point where the item actually gets dropped in their trade window. Can anyone point me toward the right function to do that?
BamED
14-06-2006, 07:46 AM
Try looking at the code for tradeDispenser (http://ui.worldofwar.net/ui.php?id=2203).
include
14-06-2006, 09:37 AM
yap. open the slave-frame.lua, and search for tD_Temp.tradeState == "populate"
there's the trade-engine ^^
its all initialized by the event "TRADE_SHOW" in tradeDispenser.lua, and uses some functions - tradeDispenserCompileProfile() - of the file tradeDispenser_Functions.lua.
maybe a bit complicated to extract the full engine ^^
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.