Changeset 61bd008b75da6d334497f748e9aaafe0206ca058

Show
Ignore:
Timestamp:
01/13/07 11:12:16 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1168683136 +0100
git-parent:

[9c451fafdcaf77d305e526a2575fdbaf281f79d2]

git-author:
Christopher Jung <bktheg@web.de> 1168683136 +0100
Message:

setNpcPunkte eingebaut

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/framework/User.java

    r7903403 r61bd008  
    11041104                return data.getInt("npcpunkte"); 
    11051105        } 
     1106         
     1107        /** 
     1108         * Setzt die Anzahl der NPC-Punkte des Benutzers 
     1109         * @param punkte Die neue Anzahl der NPC-Punkte 
     1110         */ 
     1111        public void setNpcPunkte(int punkte) { 
     1112                checkAndLoad("npcpunkte"); 
     1113                context.getDatabase().tUpdate(1, "UPDATE users SET npcpunkte='",punkte,"' WHERE id='",id,"' AND npcpunkte='",data.getInt("npcpunkte"),"'"); 
     1114                if( !context.getDatabase().isTransaction() || context.getDatabase().tStatus() ) { 
     1115                        data.put("npcpunkte", punkte); 
     1116                } 
     1117        } 
    11061118 
    11071119        /**