summaryrefslogtreecommitdiff
path: root/src/char/int_auction.c
diff options
context:
space:
mode:
authorIbrahim Hossam <ibrahem.h.basyone@gmail.com>2014-04-08 20:40:12 +0200
committerIbrahim Hossam <ibrahem.h.basyone@gmail.com>2014-04-18 09:58:42 +0200
commitdd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419 (patch)
tree219025c6ac65f2cf72798a45c926507633f3446f /src/char/int_auction.c
parent47680829048288376aec23102b9660f36f4463ee (diff)
downloadhercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.gz
hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.bz2
hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.xz
hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.zip
Rewritten NSI_UNIQUE_ID system to get rid of the cross-database interreg dependency
- Removes the need for map-server to access the interreg table to store the last used ID. - Login, char and map databases can now be hosted separately. - Note: the unique_id structure has changed, and it now contains the generator character ID in its upper 32 bits. - Now NSI_UNIQUE_ID System is enabled always Special thanks to Haruna.
Diffstat (limited to 'src/char/int_auction.c')
-rw-r--r--src/char/int_auction.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/char/int_auction.c b/src/char/int_auction.c
index 47f3421c3..924930867 100644
--- a/src/char/int_auction.c
+++ b/src/char/int_auction.c
@@ -90,10 +90,6 @@ unsigned int auction_create(struct auction_data *auction)
for( j = 0; j < MAX_SLOTS; j++ )
StrBuf->Printf(&buf, ",'%d'", auction->item.card[j]);
StrBuf->AppendStr(&buf, ")");
-
- //Unique Non Stackable Item ID
- updateLastUid(auction->item.unique_id);
- dbUpdateUid(sql_handle);
stmt = SQL->StmtMalloc(sql_handle);
if( SQL_SUCCESS != SQL->StmtPrepareStr(stmt, StrBuf->Value(&buf))