• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

displaying items in a store locally

Status
Not open for further replies.
Level 12
Joined
Mar 21, 2008
Messages
367
is this possible? i can go as far as showing items for individual players, but upon purchasing players end up disconnecting -- is there any way of getting around this? thanks.

problem solved (see: second post)
go close this thread now
 
Last edited:
Level 7
Joined
Sep 5, 2006
Messages
333
make many verison of the shop, 1 for each player, and when someone select a shop, set his selection to his verison of the shop (12shops at same place, when 1 player select any of the 12 shop, set his selection to the correct one)
 
It's hardly possible. Using GetLocalPlayer() can easy cause desync here.
Although if those players don't hug the shop at once (meaning only of them is checking shop at a time) you can use 'empty shop' (has no items) and make use of:
JASS:
//To add items
native AddItemToStock               takes unit whichUnit, integer itemId, integer currentStock, integer stockMax returns nothing

//To remove items
native RemoveItemFromStock          takes unit whichUnit, integer itemId returns nothing
This way you can clear the shop and add differend items to it any time player gets around the merchant.
 
Status
Not open for further replies.
Top