[Question]On Safe Upgrade,Piercing and Element Upgrade

11/28/2014 09:03 jeromerz#1
hello everyone,

i want to know how do i make the safe upgrade,piercing and element upgrade faster than normal rate. I've been searching all over source files and i found this code.
Code:
m_dwEnchantWaitTime		= g_tmCurrent + SEC(4);
or
Code:
		if(m_dwEnchantTimeEnd < g_tmCurrent)
		{
			m_bResultSwitch = false;
			m_dwEnchantTimeStart = 0xffffffff;
			m_dwEnchantTimeEnd = 0xffffffff;
is this code has something to do with the upgrade time?

thanks in advance :)
11/28/2014 15:20 *~Valvatorez~*#2
Quote:
m_dwEnchantWaitTime = g_tmCurrent + SEC(4);
g_tmCurrent + SEC(4)

Change it... 1 = 1 sec. // 0 = instant upgrade/piercing or whatever.
11/28/2014 23:47 Lumi#3
So far as I know this code is for upgrading inside your inventory.
The code for npc upgrade should be in WndField.h(?). Search there for ENCHANT_TIME.