Paste #9006: Edit of P#9004 - Edit of P#9002 - Edit of P#9001 - Untitled Paste

Date: 2014/08/30 18:16:36 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5


else if <def[action].is[==].to[vote]> {
      - define statement "UPDATE %tableName% SET pointsearned = pointsearned + %pointValue%, totalvotes = totalvotes + 1, pointsbalance = pointsbalance + %pointValue% WHERE playeruuid='%uuid%';"
      - yaml set OfflineCache.%db%:->:%statement% 'id:SQLManager_OfflineCache'
      - sql id:%db% update:%statement%
      }