- Joined
- Oct 6, 2008
- Messages
- 1,396
- Reaction score
- 198
friend class CMover;
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!You need to declare it as an Public one. Not an Private one.
Show me the entire Part of the CMover::m_nCampusPoint.
Cause if you have done it like above you still havn't done it right.
It works if you do everthing i have added.
There is not more to do.
So either or copie paste it correct. Or look where you messed it up.
man i need rebirth system for l2j server c4 have?
Question : How can i put prizes every rebirth ? for example for the 1st rebirth i will get 50 Red chips 2nd rebirth 100 red chips? and how to make the exp harder every time i rebirth ? thanks
Much Appreciated Sir =) Thanks a lotEven thought you just bumped up a 3 years old thread.. I will look into your question and see if I can make what you want to work
Much Appreciated Sir =) Thanks a lot
CItemElem itemelem;
itemelem.m_nItemNum = 0;
BYTE nID;
if(m_nCampusPoint == 1)
{
itemelem.m_nItemNum = 50; //Amount
itemelem.m_dwItemId = II_CHP_RED; //Item
( ( CUser*)this)->CreateItem( &itemelem, &nID ); //Create the Item with Amount
}else if(m_nCampusPoint == 2)
{
itemelem.m_nItemNum = 100;
itemelem.m_dwItemId = II_CHP_RED;
( ( CUser*)this)->CreateItem( &itemelem, &nID );
}else if (m_nCampusPoint == 3)
{
itemelem.m_nItemNum = 150;
itemelem.m_dwItemId = II_CHP_RED;
( ( CUser*)this)->CreateItem( &itemelem, &nID );
}else if (m_nCampusPoint == 4)
{
itemelem.m_nItemNum = 200;
itemelem.m_dwItemId = II_CHP_RED;
( ( CUser*)this)->CreateItem( &itemelem, &nID );
}else if (m_nCampusPoint == 5)
{
itemelem.m_nItemNum = 250;
itemelem.m_dwItemId = II_CHP_RED;
( ( CUser*)this)->CreateItem( &itemelem, &nID );
}
Oke its done
In Mover.cpp Search for m_nCampusPoint = m_nCampusPoint + 1;
And under it add following:
Code:CItemElem itemelem; itemelem.m_nItemNum = 0; BYTE nID; if(m_nCampusPoint == 1) { itemelem.m_nItemNum = 50; //Amount itemelem.m_dwItemId = II_CHP_RED; //Item ( ( CUser*)this)->CreateItem( &itemelem, &nID ); //Create the Item with Amount }else if(m_nCampusPoint == 2) { itemelem.m_nItemNum = 100; itemelem.m_dwItemId = II_CHP_RED; ( ( CUser*)this)->CreateItem( &itemelem, &nID ); }else if (m_nCampusPoint == 3) { itemelem.m_nItemNum = 150; itemelem.m_dwItemId = II_CHP_RED; ( ( CUser*)this)->CreateItem( &itemelem, &nID ); }else if (m_nCampusPoint == 4) { itemelem.m_nItemNum = 200; itemelem.m_dwItemId = II_CHP_RED; ( ( CUser*)this)->CreateItem( &itemelem, &nID ); }else if (m_nCampusPoint == 5) { itemelem.m_nItemNum = 250; itemelem.m_dwItemId = II_CHP_RED; ( ( CUser*)this)->CreateItem( &itemelem, &nID ); }
Have fun