Trust script

By slub77 on Oct 24, 2009

Well it does what it says it trusts people well rates there trust that you should give them:

All op's can add and take away trust the commands to do this are:

!trust
!untrust

Then when ANYONE says !!trust it will notice them that users current trust if that user has no trust it will notice them they have no trust here is an exsample:::::

<@mike>!trust bob

> @mike> I have added 1 on to there trust !!trust bob > simon > Trust level :: 1
on @:TEXT:!trust*&:#:{
  if $+(%,trust,$2) = $null { 
    /set $+(%,trust,$2) 1  
  notice $nick I have added 1 on to there trust }
  else { 
    inc $+(%,trust,$2) 1
  notice $nick I have added 1 on to there trust }
}

on @:TEXT:!untrust*&:#:{
  if $+(%,trust,$2) = $null { 
    /set $+(%,trust,$2) -1  
  notice $nick I have taken 1 of there trust }
  else { 
    dec $+(%,trust,$2) 1
  notice $nick I have taken 1 of there trust }
}

on *:TEXT:!!trust*&:*:{
  if ($($+(%,trust,$2),2)) { 
    notice $nick Trust level $+($2,::) $ifmatch 
  } 
  else { 
  notice $nick They have no trust level }
}

Comments

Sign in to comment.
slub77   -  Jan 12, 2010

haha lol

 Respond  
Jethro   -  Jan 11, 2010

Oh yeah we have a grammar police with the motto,"to serve and correct."

 Respond  
Purplebeard   -  Jan 11, 2010

fix up grammar, Their trust not there trust etc

 Respond  
slub77   -  Jan 09, 2010

Lol looking at this now, i could have just done it an ini and saved alot of space with variables...

And wow now i see with the $ifmatch thing, dam, i use $iif now not because you told me to, but i saw them used in another snippet, though wtf, started using them and aint gone back for a while now...

 Respond  
slub77   -  Oct 30, 2009

thanks ;-;

 Respond  
Jethro   -  Oct 30, 2009

This should be called a rating script instead of a trust script, which is basically what Ghost-Writer has done to rate you a 4.

 Respond  
Ghost-writer   -  Oct 30, 2009

notice $nick I have taken 1 of there trist

GF - You get a 4

 Respond  
Purplebeard   -  Oct 29, 2009

but otherwise pretty good

 Respond  
Purplebeard   -  Oct 29, 2009

line 15 you said trist instead of trust

 Respond  
slub77   -  Oct 25, 2009

well there is probably a chat out there that has sells stuff ect so the Admin o the chat can add trust to people who he knows are good and not spammers.

Cn also be used just for people who need to decide weather to trust someone or not i have a separate script that also uses this

 Respond  
VinX   -  Oct 25, 2009

whats the use ?

 Respond  
slub77   -  Oct 24, 2009

what still no ratings dam

 Respond  
Jethro   -  Oct 24, 2009

It depends on how you use $iif(). It's really handy for comparison when it's utilized properly.

 Respond  
slub77   -  Oct 24, 2009

well that's how i come to write scripts lol

anyways the bigger it is maybe people will think i am actually good at these things XD lol jks

 Respond  
sunslayer   -  Oct 24, 2009

lmfao :| $iif statements, why make everything so complicated btw?$iif's complicate the script more and make it harder to read imo.

 Respond  
Ghost-writer   -  Oct 24, 2009

lmfao :| $iif statements, why make everything so complicated btw?

on *:TEXT:!!trust*&:*:{
  if ($($+(%,trust,$2),2)) { 
    notice $nick Trust level $+($2,::) $ifmatch 
  } 
  else { 
  notice $nick They have no trust level }
}

Could be somthing like this,

on *:TEXT:!!trust*:#: {
notice $nick $iif(%trust [ $+ [ $2 ] ], $2 has a trust level of %trust [ $+ [ $2 ] ],$2 has no trust level) 
}

And there you go :| super shortend.

 Respond  
slub77   -  Oct 24, 2009

Ok changed that

 Respond  
Testor   -  Oct 24, 2009
inc $+(%,trust,$2) -1

can be /Dec

 Respond  
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.