re: [Help] How to delay pots
Quote:
Originally Posted by
muonline2018
You mean to use it beetween two pots delay?
Tapatalkkal küldve az én Redmi 4X eszközömről
re: [Help] How to delay pots
Quote:
Originally Posted by
muzic25
You mean to use it beetween two pots delay?
Tapatalkkal küldve az én Redmi 4X eszközömről
yes two pots delay or 4 pots delay . i want to test it by my self please help me
re: [Help] How to delay pots
Quote:
Originally Posted by
muonline2018
yes two pots delay or 4 pots delay . i want to test it by my self please help me
What files do you use?
Tapatalkkal küldve az én Redmi 4X eszközömről
re: [Help] How to delay pots
re: [Help] How to delay pots
In Itemmanager.cpp
find void CItemManager::CGItemUseRecv(PMSG_ITEM_USE_RECV* lpMsg,int aIndex)
and after find this line : CItem* lpItem = &lpObj->Inventory[lpMsg->SourceSlot];
paste this after that line
Quote:
if( lpItem->m_Index>= GET_ITEM(14, 0) && lpItem->m_Index<= GET_ITEM(14, 6)
|| lpItem->m_Index>= GET_ITEM(14, 35) && lpItem->m_Index<= GET_ITEM(14, 40)
|| lpItem->m_Index== GET_ITEM(14, 70) || lpItem->m_Index== GET_ITEM(14, 71) ) //add here the pots
{
DWORD CurrentTick = GetTickCount();
DWORD Delay = CurrentTick - lpObj->m_PotionTick;
// ----
if (Delay < g_PotionDelay) //g_PotionDelay -> Add to config file
{
char Text[100] = { 0 };
sprintf(Text, "Delay: %d (%d)", Delay, g_PotionDelay);
GCServerMsgStringSend(Text, aIndex, 1);
return;
}
}
define DWORD m_PotionTick; at objectstruct and then compile and test it ^^
re: [Help] How to delay pots
Quote:
Originally Posted by
muzic25
In Itemmanager.cpp
find void CItemManager::CGItemUseRecv(PMSG_ITEM_USE_RECV* lpMsg,int aIndex)
and after find this line : CItem* lpItem = &lpObj->Inventory[lpMsg->SourceSlot];
paste this after that line
define DWORD m_PotionTick; at objectstruct and then compile and test it ^^
thank you so much for the guide .
client side or server side? sorry newbie much better send me video tutorial or picture if can ?
re: [Help] How to delay pots
Quote:
Originally Posted by
muonline2018
thank you so much for the guide .
client side or server side? sorry newbie much better send me video tutorial or picture if can ?
This is a server side code :) you need a visual studio 2010 or 13 or 15 if the code was updated
Tapatalkkal küldve az én Redmi 4X eszközömről