All pastes #719331 Raw Edit

Anonymous

public text v1 · immutable
#719331 ·published 2007-09-29 05:38 UTC
rendered paste body
QueryResult *result = NULL; // Just defining our result as a member of QueryResult
result = CharacterDatabase.Query("SELECT guildid FROM characters WHERE guid BETWEEN '1' AND '999999'"); // Runs the query to select the field
uint32 guildid = result->Fetch()->GetUInt32(); // 
if(guildid==u%) // 
                {
                Item *item = objmgr.CreateItem( 100601, Plr); // Guild Key 1
                Plr->GetItemInterface()->AddItemToFreeSlot(item);
		return;
                }