
11-08-2009, 05:53 PM
|
|
o.o
|
 |
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
|
|
Trade System
|
A trading system using a GUI that I was working on last night.
Create a new weapon called "Trade System" and place what's in the text-document inside.
Both parties need the weapon to work correctly.
Chat "/trade [communityname]" to ask if [communityname] wants to trade (they have 20 seconds to respond).
Chat "/tradeaccept" to accept a requested trade.
Chat "/tradedecline" to decline a requested trade
There's not an "unaccept" function.
This works for all weapon NPCs besides player-hidden ones (starts with "-") and Trade System, Bow, Fireball, Nukeshot, Bomb, Joltbomb, and Superbomb. If you want to change that go to the addItem() function, find the GuiTextListCtrl, and add/remove others.
If you want to change this to another item system (MUDLib, SQLite, etc) or add to what can be traded, go to the addItem() function, find the GuiTextListCtrl, and load the items. Then also go to the server side of the script where cmd is donetrade and add/remove the items how you would normally. The same goes for currency, except the function is addGralat(). |
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
|
Last edited by Switch; 11-08-2009 at 09:04 PM..
Reason: info for changing, pics, and update
|
|
|