- long int waktu2=time(NULL)-131076;
- long int waktu3=time(NULL)-waktu2;
- BEGINPACKET (pak, 0x723);
- for(dword i = 0; i < 5; i++) ADDWORD( pak, quest.EpisodeVar[i]);
- for(dword i = 0; i < 3; i++) ADDWORD( pak, quest.JobVar[i]);
- for(dword i = 0; i < 7; i++) ADDWORD( pak, quest.PlanetVar[i]);
- for(dword i = 0; i < 10; i++) ADDWORD( pak, quest.UnionVar[i]);
- for( unsigned i = 0; i < 10; i++ )
- {
- ADDWORD( pak, quest.quests[i].QuestID );
- long int Time = 0;
- //Log( MSG_DEBUG, "Initialized Time");
- //Log( MSG_DEBUG, "This Quest quest id = %i",quest.quests[i].QuestID);
- //Log( MSG_DEBUG, "This Quest timer = %i",GServer->STB_QUEST.rows[quest.quests[i].QuestID][1]);
- if (quest.quests[i].QuestID > 0 && GServer->STB_QUEST.rows[quest.quests[i].QuestID][1] > 0)
- {
- //Log( MSG_DEBUG, "This Quest timer = %i",GServer->STB_QUEST.rows[quest.quests[i].QuestID][1]);
- Time += quest.quests[i].StartTime; // Start time
- //Log( MSG_DEBUG, "start time = %i",quest.quests[i].StartTime);
- //Time += GServer->STB_QUEST.rows[quest.quests[i].QuestID][1] * 1000; // Time to finish
- Time+= GServer->STB_QUEST.rows[quest.quests[i].QuestID][1]*10;
- //Log( MSG_DEBUG, "time at finish = %i",Time);
- Time -= time(NULL); // Current time
- //Log( MSG_DEBUG, "current time = %i",time(NULL));
- if (Time < 0) Time = 0; // Time is up
- else
- {
- Time /= 10;
- Time += waktu3;
- }
- //Time+= GServer->STB_QUEST.rows[quest.quests[i].QuestID][1];
- //Time /= 10; // Divide to get 10's of seconds
- //1374230282
- //long int timeawal = 1374230282-GServer->Config.hitungan;
- //Time = time(NULL)-timeawal;
- //nol /nol 131086
- //Time = 131086;
- //Time+= GServer->STB_QUEST.rows[quest.quests[i].QuestID][1];
- //Time = ((GServer->STB_QUEST.rows[quest.quests[i].QuestID][1]/60)*GServer->Config.hitungan);
- //Log( MSG_DEBUG, "This Quest time remaining = %i",Time-waktu3);
- }
- ............................................................
online for 3 mounts..
please give me info if there is a bug in my server..
and who need client for dev-rev4, can download at http://rosehero.com/do-mode-client.html