meepen / meepen/pluto-inv

Ticket Redemption

Open
#74 0 comments 0 reactions 2 assignees View on GitHub

@itsmeaddof123 is already working on this.

Since Jul 1, 2021.

enhancement
Dominant language
Lua
Stars
3
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Refer here when doing the ticket redemption menu if you want
pluto.rounds.infobyname (found in events/sh_init) contains each event, with the name as the key and a table of information as the entry.
If you iterate for name, event in pairs(pluto.rounds.infobyname) you're be able to do:

  • event.PrintName to get the name that can be used in the menu choices
  • event.Type to get the type of even to put it in the right category,
  • event.MinPlayers and event.MaxPlayers to tell the player the requirements,
  • event.NoBuy to see if the event should be kept off the menu entirely

Also, use (found in events/sv_init):

  • pluto.rounds.goodplayercount(name) to check in the transaction if there is the right amount of players
  • pluto.rounds.prepare(name) to try preparing a round immediately
  • pluto.rounds.queue(name) to try adding the round to the queue

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.