[Source] Change Perin Value
Hello,
Today i have a question and that question is, is it possible to change the perin value (when you click the perin it gives you 100m, i want it to be able to give 500m or 1bill perin when clicked, obviously sold in shops for 1b/500m perin first),
and if possible what files should i look in to make it so
Thanks - NickHough
okay i found this
#if __VER >= 11 // __MA_VER11_02
if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_PERIN )
nCost = PERIN_VALUE;
#endif //__MA_VER11_02
Can i set the PERIN_VALUE in the source or does it need to be done through define.h?
Re: [Source] Change Perin Value
Try to change the perin cost in propitem.txt
Maybe im saying something stupid, but try that.
Quote:
#if __VER >= 11 // __MA_VER11_02
if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_PERIN )
nCost = PERIN_VALUE;
#endif //__MA_VER11_02
Btw, edit your signature please? ;<
Re: [Source] Change Perin Value
Quote:
Originally Posted by
blur
Try to change the perin cost in propitem.txt
Maybe im saying something stupid, but try that.
Btw, edit your signature please? ;<
Would be much more apreciated if you reported it.
Also search for the PERIN_VALUE and see if its value is defined somewhere in the source.
Re: [Source] Change Perin Value
it is actually in the propitem if im not wrong either..
since in the source it is pretty hardcoded and does not really give any value of it :p
Re: [Source] Change Perin Value
Re: [Source] Change Perin Value
PERIN_VALUE is set in Define.h
Change that, then recompile the source and it should work.
Re: [Source] Change Perin Value
or just put instead of PERIN_VALUE a number for example: 5000000000
Re: [Source] Change Perin Value
yeah but remember, you cannot exceed 2147483648
Re: [Source] Change Perin Value
No Jomex, it wouldn't work like that. In the source files, the variable named PERIN_VALUE is used everywhere the game needs to reference Perins. Changing what PERIN_VALUE is equal to will change it everywhere.