Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 20-06-2006, 02:27 PM   #1
include
WorldofWar.Net Member
 
include's Avatar
 
Join Date: Mar 2006
Posts: 62
initiating trades

ok - i try to get a possibility to find the person who had INITIATED the trade.

the event "TRADE_SHOW" is fired whenever a tradeframe openes. (but does not save, WHO had started the trade)

so i hooked the functions: InitiateTrade(UnitId) and BeginTrade().
within this functions, i saved a boolean var. if its TRUE, i know the PLAYER is going to start the trade. (and not the opposite client).


but there is still something i cannot get: if you drop an item on a char, the tradeframe's opening too... but this won't be done by initiatetrade, begintrade or DropItemOnUnit.

so: HOW could i get the initiator of a trade, if an item is dropped on a char? is there an event or a function?
include is offline   Reply With Quote
Old 20-06-2006, 02:32 PM   #2
Redmumba
WorldofWar.Net Member
 
Join Date: Oct 2005
Location: Brooklyn
Posts: 407
That's actully a pickle... I was under the impression that TRADE_SHOW works for both; afterall, it should fire every time the Trade Window is _opened_, not just through the Trade command, but also by dragging items. Maybe its a bug on Blizzard's part?
Redmumba is offline   Reply With Quote
Old 21-06-2006, 08:32 AM   #3
include
WorldofWar.Net Member
 
include's Avatar
 
Join Date: Mar 2006
Posts: 62
yes, that IS my problem: its fired EVERYTIME. its not a bug, its a feature ^^

and there was an event "trade_request" (or similar). but this event is broken since patch idunno. so: how can i get WHO had dropped an item over another player? may its a default function i can hook.
include is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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

Forum Jump


All times are GMT +1. The time now is 12:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden