Loading...   


void QuestManager::summonitem(uint32 itemid, int16 charges) {
	QuestManagerCurrentQuestVars();
	if(!initiator)
		return;

	/* Set a timestamp in an entity variable for future plugin use */
	struct timeval read_time;
	char buffer[50]; 
	gettimeofday(&read_time, 0);
	// printf("%i.%i \n", read_time.tv_sec, read_time.tv_usec);
	sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec);
	initiator->SetEntityVariable("Recieved_Item",buffer); 

	initiator->SummonItem(itemid, charges);
}

Raw Paste Data