By Cookies on Feb 13, 2011

here is the addon to thank people for doing good things, simple commands, just type

-thanks ammount
-BAD ammount

this will add money to their bank account / remove respectivly.

on *:text:-thanks*:#: {
  if ( $nick isop $chan ) { /writeini -n mnycount.ini $2 money $calc( $readini(mnycount.ini,$2,money) + $3 ) 
    msg $chan %c2 i just gave %c1 $2 %c2 $3 monies!!
on *:text:-bad*:#: {
  if ( $nick isop $chan ) { /writeini -n mnycount.ini $2 money $calc( $readini(mnycount.ini,$2,money)- $3 )
    msg $chan %c2 i just took %c1 $2 %c2 $3 monies for being %red BAD.


Sign in to comment.
Xavia   -  Sep 25, 2011

i mean..

There are some more like thats from you ^^
set it up så it is not ovre many snippets, but only one?.. understand me now ? :P
Sorry my bad english, I just got up from bed

Jethro   -  Sep 25, 2011

Welcome back, Cookies. Perhaps you can shed some light on Xavia's "update," as I have no clue what he means by that.

Cookies   -  Sep 24, 2011

Im alive ;p and the entire snipplet can be found in my profile... U need the -mymoney script to go along with it if u need anything just ask

Jethro   -  Sep 24, 2011

Xavia, the author Cookies may have been eaten for good. I don't think he or she is coming back to Hawkee for an update. What update do you have in mind then?

irchainscriptz   -  Sep 24, 2011

maybe he should have added the whole snippet, that way people would be cleared on what this snippet was entended for!!

Xavia   -  Sep 24, 2011

can you get a update?

Jethro   -  Feb 14, 2011

There are other gray areas you may need to take note for - if $3 isn't specified, your code will trigger upon $1 to $2, and $3 can be messed about with anything. Say someone enter > -thanks Cookies without $3, it will become.> "I just gave Cookies Monies!!Say someone enters> -thanks Cookies Milk, it'll then output > "I just gave Cookies Milk Monies!!"There's also a less significant factor this script is lacking. It will likely be flooded so you may need to implement a flood control just in case. Even an OP can go bad. You can combine these two events into one with the if then elseif condition.

Finally and no offense, IMHO, you can simply use $1-3 for what this script is doing without bothering with INI. The INI in your script operation has no particular meaning. If an INI file is a must, you may consider showing the amount of deducted and earned money and what's left, so you don't waste the INI for nothing.

Jethro   -  Feb 14, 2011

But this one doesn't have those variables set. You've included them for no purpose but byte size.

Cookies   -  Feb 14, 2011

I actually posted the variables and what to put for them in my other snipplet, as THIS snipplet won't work without the first one, and the one that's needed has the variables and what to set them as :)

Sorasyn   -  Feb 14, 2011

Agreed. ^

Jethro   -  Feb 13, 2011

Where are the %c1, %c2 and %red variables?

Avanti   -  Feb 13, 2011


Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.