Testing needed (updated, ready-to-test!)
#1
Hi there. I need some help with testing things I have.
So, what's the deal?
- Handy: seems to work fine. Any errors you get you post there;
- Coiny: same here, should work fine;
- Trady: big one. I'll write detailed series of tests.



Installation:
  1. Put "Plugins.zip" inside your "Plugins" folder;
  2. "Extract here";
  3. Add following to your settings.ini in "Plugins" section:
    Plugin=Handy
    Plugin=Coiny
    Plugin=Trady
Creating a shop:
  1. Place a chest;
  2. Put items in it which you want to trade;
  3. Place a sign over a chest (just like with bukkit's ChestShop);
  4. Syntaxt is:
    from_chest_price:to_chest_price
    ammount (this is optional; over-stack ammounts, like 70, are allowed)
    ban_fractional_trade (optional, if you want to ban fractional trading write 1 there)
    [empty]
RECreating a shop:
Sorry, but there's no proper way right now.
  1. Restart server;
  2. Break sign;
  3. Place a sign and fill it again.



What I need you to do:
  1. Try commands:
    /m
    /m pay Name Ammount
    /m give Name Ammount
    /m take Name Ammount
    (better try those with admin's permissions)
  2. Create a shop that trade 10 pieces of anything. Console should inform that you created a shop. Now feel free to add items and stress-test buying from shop (right-click on sign).
  3. Test overstack trade (shop sells more than 64 items at once).
  4. Try "fractional operations". Those are like when you sell 10 items, and there are only 5 in chest. Or player have only place for 5 of them in his inventory.
  5. Then you might want to check the case when player don't have enough money. (use /m take, for example)



Now, in case you want more, I have moreBig Grin But it's more complicated.
Now you have to test it all again (regular operation, fractional operation, not-enough-money operation), but ban fractional operations when you create a shop. Remember, this is done via writing "1" in third line on a sign when creating a shop.

And if you're not satisfied yet, you may try another one! Go to "Plugins/Trady" folder, open "trady_main.lua" and change:
FRACTIONAL_TRADE = true
To:
FRACTIONAL_TRADE = false
And then test fractional operations again.



But wait, there's more!
Now it's time to unleash true potential of Trady. BARTER!
What's Barter. Basically, it's when you don't give a fuck about some virtual currency and just use some "real" items you have to trade. This item is strictly set server-wise, and by default it's golden nugget. Why? It's rare, packs well (x9 to ingot, x9 ingots to block, so it's 81 stack = 5184 coins in 1 stack of golden blocks) and don't have much of a practical usage (I used to use gold only for selling it for virtual currency for my whole server life).
So, what are requirements?
You need to change
BARTER = false
To:
BARTER = true
in "trady_main.lua". Then you create a shop as usual, and THEN you create your "cash machine".
Creating a cash machine:
  1. Place a chest;
  2. Place a sign over a chest (just like with bukkit's ChestShop);
  3. Syntaxt is:
    cash
    [empty]
    [empty]
    [empty]
And of course now you need some golden nuggets! Go dig some. Then run all the tests again, because it's so much fun!* ^_^
Also you might want to check fractional operations with nearly full cash machine.



Also, don't worry, Trady don't store any data yet. And don't provide property protection, so, yeah...
Anyway... Yes, that's A LOT. If anyone happened to bother - I'll include your nicknames into Trady's init section, and in webadmin too! (when it's done).

* I'm lying, it is not.
Okay, looks like I had solved all the non-working issues and now it's all down to bug hunt Smile
Known bugs:
- somehow duplication is made with barter trade. Couldn't trace it right now.
- sometimes it just won't right-click. I have no idea why.


Attached Files
.zip   Plugins.zip (Size: 12.74 KB / Downloads: 401)
Reply
Thanks given by:
#2
Duplication solved.
Could be that right-click is tied to 1.4.2 client. I have no issues with 1.3.2.
Will continue to investigate tomorrow.
Reply
Thanks given by:
#3
update plugin! please! pls!
Reply
Thanks given by:
#4
I tried to update it, there was an error with hooks. Now the plugin don't detect chests.
If someone knows how to fix it, please fix it.
There is no error in console and plugin starts well, without any error.


Attached Files
.zip   Trady.zip (Size: 5.04 KB / Downloads: 332)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)