Ikael
March 11th, 2009, 08:25
Hi, recently I had an idea of making player-to-player item exhanging easier/automated. What I really though was that players could drag any item from his inventorylist and drop it to other player's portrait, which would add it to chosen player's inventorylist and remove it from player who gave it.
I have already done some changes to charsheet inventorylist where each invenrotylistitem has shortcut link (which points to specific item in my item-module). I had successfully done the part that removes item from player who gives the item away to other player by dragging it from his inventorylist on other player's portrait, but the difficulty is how to add it to other player's inventorylist.
I have tried to use findWindow() to find the other player's inventorylist windowinstance which has the function to add new items, but the findWindow returns a nil value. The operation (remove and add) succeeds only if I have both player's inventorylist window's open, but wonder if there would be any easier way to access a other player's windowinstances?
Anybody done/had similar issues?
I have already done some changes to charsheet inventorylist where each invenrotylistitem has shortcut link (which points to specific item in my item-module). I had successfully done the part that removes item from player who gives the item away to other player by dragging it from his inventorylist on other player's portrait, but the difficulty is how to add it to other player's inventorylist.
I have tried to use findWindow() to find the other player's inventorylist windowinstance which has the function to add new items, but the findWindow returns a nil value. The operation (remove and add) succeeds only if I have both player's inventorylist window's open, but wonder if there would be any easier way to access a other player's windowinstances?
Anybody done/had similar issues?