Author Topic: [Resolved] Event paying function  (Read 1402 times)

Offline Gonzalo

  • Honorable
  • *****
  • Posts: 127
  • Lua, C#, PHP, HTML & CSS Developer
  • Registered: 07/10/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • Group: BNA
  • Ingame: Gonzalo|BNA
  • Squad: SO -Special Ops
[Resolved] Event paying function
« on: 11 05, 2012, 06:21:45 am »
I came up with this idea, and went to Steve to get help on scripting it, since my scripting skills are... well... seriously bad... It consists in a way of paying the event winners, without having to use own cash, then reporting and waiting for refund.

This script, in my opinion, will make event paying much easier.

Script: http://pastebin.com/K7yjzw4G

The script was made by Steve and it includes the giving cash function + the possibility of paying in easier way by instead of writing the complete nick, just writing a part of it thanks to findPlayer function

This MUST be pasted in the file CITevents_warp.slua or else it wont work.

Usage: /gcash playername amount reason

Restrictions:

- It can only be used by Event Managers
- The Event Manager must be in /staff
- The Event Manager cant pay more than 100k each time with it
- A reason must be included to make the payment
- It can only be used in event dimension (336)
- The player that is getting paid, MUST have used /eventwarp, or else a chatbox will appear saying "This player is not in the event"
- The Event Manager can NOT use the function on himself

About the possible abuse of this function:

As all the EM powers, this can also be abused. It simply requires trusting in the current EMs not abusing it. Also, it goes to logs, so if someone abuses it, it can be easily discovered, same as any other EM power abuse.


« Last Edit: 14 05, 2012, 03:20:05 pm by Arran »
Quote
Innovation fuels success

Lavigne

  • Guest
Re: Event paying function
« Reply #1 on: 11 05, 2012, 07:25:26 am »
+1‘d. What I don't like about events sometime is having to take SS and post it on forums, so this will be useful. However, what if events like Guessing Musics are made? They do not have to be in an event dimension.

Offline Gonzalo

  • Honorable
  • *****
  • Posts: 127
  • Lua, C#, PHP, HTML & CSS Developer
  • Registered: 07/10/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • Group: BNA
  • Ingame: Gonzalo|BNA
  • Squad: SO -Special Ops
Re: Event paying function
« Reply #2 on: 11 05, 2012, 07:31:23 am »
what if events like Guessing Musics are made? They do not have to be in an event dimension.

Well, 80% of the events that we make, are in event dimension, so maybe we can keep the reports for those kind of events, and for all the things made in Event Dimension use this. The script would affect FFA DM, TDM, Races, DD, Dogfights, Royal RUmble, Boxing. Only event out of it would be trivia (though we also have quiz now, and that gets auto-paid)
Quote
Innovation fuels success

Offline Arran

  • Administrator
  • ******
  • Posts: 5642
  • Registered: 20/11/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • Ingame: [CIT]Arran
Re: Event paying function
« Reply #3 on: 14 05, 2012, 03:19:47 pm »
Steve has made this.
Proof You Are so Much More Than What You Realise
Authority is not truth. Truth is authority.