graywolf336 / CasinoSlots

Animated, customizable, block-based slot machines, including audio, inside of Minecraft!
http://dev.bukkit.org/server-mods/casino-slots/
GNU General Public License v2.0
23 stars 22 forks source link

Multiple Actions, Item Based Cost, Lose Money #34

Closed Ansune closed 11 years ago

Ansune commented 12 years ago

Awesome plugin, easy to spend hours on! I just have a couple suggestions.

1.) Ability to add multiple actions to the same winnings. (Such as someone being blinded and receive items.)

2.) Specify the cost to operate a slot machine to be item based as well. (Such as inserting gold nuggets.)

3.) Option for slots to cause players to LOSE money. Use of -5 doesn't actually remove 5 currency from their account, it just affects the total currency lost stat.

graywolf336 commented 12 years ago

@Ansune What do you mean about number two? Not sure I fully understand...

graywolf336 commented 12 years ago

@Ansune Please clarify for me number two in the list, I also (haven't tested yet) believe that you can have multiple actions for winning as it is a list...but then again I haven't tested it. I will test this when I get home.

Ansune commented 12 years ago

@graywolf336 My apology, GitHub didn't notify a response until now. By item cost, I mean in addition/instead of using currency, enable the option to charge items. For example, I click on a slot machine and it consumes a diamond from my inventory to spin the slots.

Maybe something like:

default: cost: 0.25, 264

(0.25 currency, and a diamond)

As for the multiple actions, perhaps I'm adding them incorrectly, but it only applies one effect. Example:

rewards:
  '42':
    message: Winner! A couple chunks of iron fly off hitting you in the face! Ow! You quickly shove them in your pocket. ß5 rolls out of the machine.
    money: 5.0
    action: give 265 2
    action: blind
    action: give 57 1
graywolf336 commented 12 years ago

@Ansune No problem, I had taken a break from coding this and so I'm just trying to get back into the hang of things.

Got ya, so that way it requires a diamond AND it also takes away money from the player's account. Will see about this.

Ah yeah, check out this example. I haven't tested it, but in "theory" it should work just fine. Let me know if it doesn't:

action:
- blind
- command give [player] 265 2
- command give [player] 57 1
Ansune commented 12 years ago

@graywolf336 Using the following,

rewards:
  '42':
    message: Winner! A couple chunks of iron fly off hitting you in the face! Ow! You quickly shove them in your pocket. ß5 rolls out of the machine.
    money: 5.0
    action:
    - blind
    - command give [player] 265 2
    - command give [player] 57 1

The rewards received were,

5.0 currency 2 iron ingots

Unfortunately, there was no blindness or block of diamond received. If the above is correct, then it doesn't seem to work.

graywolf336 commented 12 years ago

Okay thanks, will look into this as that should in theory work. Thanks

Ansune commented 12 years ago

For clarification, I'm using version 2.5.2

graywolf336 commented 12 years ago

Yeah that's the latest one that is published to Bukkit dev, the developer versions can be found at: http://graywolfsolutions.com:8080/job/CasinoSlots/

graywolf336 commented 11 years ago

Closing as all the issues and feature suggestions in this have been taken care of and added, look for them in the next published build on Bukkit Dev!