mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2016
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jul 2016
Posts: 4
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.

Joined: Sep 2015
Posts: 33
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 33
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 }
}

Joined: Jul 2016
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jul 2016
Posts: 4
Yea like that, but that doesn't work with my coins system.

Joined: Jul 2016
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jul 2016
Posts: 4
Nevermind I found a working script, thanks for the help though.


Link Copied to Clipboard