• 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.

Need Help with Trade System

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
Player chat message

Get the string chatted, see how much of resource x should be given and to who.

Make sure the player has enough to give as much as they want. Then set their resource to old - payment.

Set the resource of the player recieving to old + payment.

However I think if you look in the spell section deathismyfriend has a published system for this type of thing.
 
However I think if you look in the spell section deathismyfriend has a published system for this type of thing.

Yes I do. Thanks.

@TO
Here is the link to my resource. http://www.hiveworkshop.com/forums/...1-4-a-238447/?prev=status=a&u=deathismyfriend

In my trade system above you can invoke a tax on the player doing the trading.
Example Set giveGoldTax = 0.10 sets the gold tax to 10 percent. So lets say player 1 trades 100 gold to player 2. Player 2 will only recieve 90 of that 100 because 10 is taken away due to the tax.

I also have a gold / lumber banking system if you need that also.
 
Status
Not open for further replies.
Top