mIRC Homepage
Posted By: JellySalto [Twitch] Coins System Gifting - 09/07/16 08:09 PM
Hi I am looking for a script for my coins system that allows users to gift coins to other users in the stream.

For Example:

!coins send <username> <amount>

or

!coins gift <username> <amount>

Basically the command would subtract coins from the user sending the coins and add that amount to the recipient.

I haven't found anything yet so if anyone could make that script or has one plz reply.
Posted By: Deerayn Re: [Twitch] Coins System Gifting - 09/07/16 10:58 PM
Something like this?

Code:
on $*:text:/!coins (give)/Si:#: {
  if ((%floodgive) || ($($+(%,floodgive.,$nick),2))) { return }
  set -u5 %floodgive On
  set -u30 %floodgive. $+ $nick On
  if ($4 < 10) { PRIVMSG $nick Min is 10 Coins :) | return }
  if ($0 < 4) { PRIVMSG $nick Error: Type !coins <give> <nick> [amount] | return }
  var %coins = $get.pts(#,$nick)
  if (%coins < $4) { PRIVMSG $nick You only have %Coins coins. | return }
  else {
    add.pts # $3 $4
    add.pts # $nick $calc( - $4)
  PRIVMSG $nick You gave $3 $4 coins }
  { PRIVMSG $3 You got $4 Coins from $nick }
}
Posted By: JellySalto Re: [Twitch] Coins System Gifting - 10/07/16 03:32 AM
Yea like that, but that doesn't work with my coins system.
Posted By: JellySalto Re: [Twitch] Coins System Gifting - 10/07/16 03:48 AM
Nevermind I found a working script, thanks for the help though.
© mIRC Discussion Forums