wouter2004 11 Report post Posted October 22, 2021 When compiling the Corsair client code, I noticed that the fairy level in the form top left corner is incorrect. (see screenshot below) I noticed that the UIStartForm.ccp file, in void CStartMgr::RefreshPet the "int nLevel" is incorrectly calculated. When I change the value into "int nLevel = 100" it changes the value, but the following code does not work. CItemRecord* pInfo = GetItemRecordInfo( ID ); if(pInfo){ int nLevel = pGrid.GetAttr(ITEMATTR_VAL_STR) + pGrid.GetAttr(ITEMATTR_VAL_AGI) + pGrid.GetAttr(ITEMATTR_VAL_DEX) + pGrid.GetAttr(ITEMATTR_VAL_CON) + pGrid.GetAttr(ITEMATTR_VAL_STA); Does anyone know how to fix this? Thanks in advance! Quote Share this post Link to post Share on other sites
JaR 7 Report post Posted October 23, 2021 nothing has been changed there, maybe your fairy.lua or pet.lua file, try adding SynLook somewhere Quote Share this post Link to post Share on other sites
wouter2004 11 Report post Posted October 23, 2021 The strange thing is, when I downloaded the precompiled co client files, the glitch was fixed and I didn’t change the lua files on the server. I think it’s iteminfo related perhaps the pInfo is NULL. but I will look at the files you mentioned, perhaps I have an old version. Quote Share this post Link to post Share on other sites
wouter2004 11 Report post Posted October 23, 2021 (edited) 5 hours ago, JaR said: nothing has been changed there, maybe your fairy.lua or pet.lua file, try adding SynLook somewhere SynLook is already there in almost all faiy.lua functions, but nothing was changed on server side. When I compile the clean CO client from this forum, the fairy level is incorrect (becomes 0). When I use the precompiled CO executables, the fairy level is correctly shown. The only thing which I changed was the client executable in the system folder. Update I found the fix, the sourcecode was wrong after all: //nLevel= pGrid.GetAttr(ITEMATTR_VAL_STR) + pGrid.GetAttr(ITEMATTR_VAL_AGI) + pGrid.GetAttr(ITEMATTR_VAL_DEX) + pGrid.GetAttr(ITEMATTR_VAL_CON) + pGrid.GetAttr(ITEMATTR_VAL_STA); int nLevel= pGrid.GetInstAttr(ITEMATTR_VAL_STR) + pGrid.GetInstAttr(ITEMATTR_VAL_AGI) + pGrid.GetInstAttr(ITEMATTR_VAL_DEX) + pGrid.GetInstAttr(ITEMATTR_VAL_CON) + pGrid.GetInstAttr(ITEMATTR_VAL_STA); Edited October 23, 2021 by wouter2004 1 Quote Share this post Link to post Share on other sites