[SHARE](not that important) SOME SOURCE CODE DOESNT HAVE LOOPING ON GENITEM
HOWTO: Instead of Items.genitem you can do items.genitem;weapons.genitem
Function: You can put as many as you want .genitem on MOBS.
Purpose: Why? cause genitem has only maximum 10 (BUT ofc you can change that to source code) but this one is allowing your client to read multiple input of genitem. in my case I organize genitem for Weapons,Armos and Crafting Materials.
and lets go to scripting (Remember were just adding Loop)
Go to GLCrowGenerateReward.cpp
Find:
SGENITEM &sGenItem = m_pCrowData->m_sGenItem;
Replace :
for(int i=0; i<10; i++)
{
SGENITEM &sGenItem = m_pCrowData->m_sGenItem[i];
Add: }
Before :
//Note : Question ¾ÆÀÌÅÛ ¹ß»ý by °æ´ë
//
SQTGENITEM & sQtGenItem = m_pCrowData->m_sQtGenItem;
SNATIVEID nidQITEM = sQtGenItem.SELECTITEM();
THEYRE 3 LINES FOR THAT
NEXT
GO TO:GLMATERIAL.CPP
FIND : SGENITEM &sGenItem = m_pCrowData->m_sGenItem;
REPLACE:
for(int i=0; i<10; i++)
{
ADD: }
BEFORE:
return TRUE;
}
LASTLY GO TO :GLCROWDATA.CPP
FIND: m_sGenItem = Data.m_sGenItem;
REPLACE: for ( int i=0; i<10; i++ )
{
m_sGenItem[i] = Data.m_sGenItem[i];
}
AND YOUR DONE I DID MY BEST TO EXPLAIN IT SPECIFICALLY. HOPE YOU UNDERSTAND IT.
HOWTO: Instead of Items.genitem you can do items.genitem;weapons.genitem
Function: You can put as many as you want .genitem on MOBS.
Purpose: Why? cause genitem has only maximum 10 (BUT ofc you can change that to source code) but this one is allowing your client to read multiple input of genitem. in my case I organize genitem for Weapons,Armos and Crafting Materials.
and lets go to scripting (Remember were just adding Loop)
Go to GLCrowGenerateReward.cpp
Find:
SGENITEM &sGenItem = m_pCrowData->m_sGenItem;
Replace :
for(int i=0; i<10; i++)
{
SGENITEM &sGenItem = m_pCrowData->m_sGenItem[i];
Add: }
Before :
//Note : Question ¾ÆÀÌÅÛ ¹ß»ý by °æ´ë
//
SQTGENITEM & sQtGenItem = m_pCrowData->m_sQtGenItem;
SNATIVEID nidQITEM = sQtGenItem.SELECTITEM();
THEYRE 3 LINES FOR THAT
NEXT
GO TO:GLMATERIAL.CPP
FIND : SGENITEM &sGenItem = m_pCrowData->m_sGenItem;
REPLACE:
for(int i=0; i<10; i++)
{
ADD: }
BEFORE:
return TRUE;
}
LASTLY GO TO :GLCROWDATA.CPP
FIND: m_sGenItem = Data.m_sGenItem;
REPLACE: for ( int i=0; i<10; i++ )
{
m_sGenItem[i] = Data.m_sGenItem[i];
}
AND YOUR DONE I DID MY BEST TO EXPLAIN IT SPECIFICALLY. HOPE YOU UNDERSTAND IT.