[src] /Angels

Codes already submitted by people of the forums.
Post Reply
Tafka12
<3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

<span style='color:red'>Game.cpp, add</span>

Code: Select all

  	if (memcmp(cp, "/Angels", 6) == 0) {
   GetAngels(iClientH);
   return;
  }
<span style='color:red'>Still Game.cpp, add somewhere</span>

Code: Select all

void CGame::GetAngels(int iClientH) //Made by Tafka 
{ 
class CItem * pItem; 
int iItemID, i, iEraseReq; 
if(m_pClientList[iClientH] == NULL) return; 
if(m_pClientList[iClientH]->m_iLevel < 180) return; 
for (i = 0; i <= 4; i++) 
{ 
 pItem = new class CItem; 
 iItemID=-1; 
  if (m_pClientList[iClientH]->m_iStr > 100)  
  { 
   iItemID = 1108; //Strenght angel
  } 
 
  if (m_pClientList[iClientH]->m_iDex > 100) 
  { 
   iItemID = 1109; //Dexterity angel
  } 
  if (m_pClientList[iClientH]->m_iMag > 100) 
  { 
   iItemID = 1111;  //Magic angel
  } 
  if (m_pClientList[iClientH]->m_iInt > 100) 
  { 
   iItemID = 1110;  //Int angel
} 
 if (i == 4) 
 { 
 if (iItemID != 0) 
 { 
  _bInitItemAttr(pItem, iItemID); 
  pItem->m_sTouchEffectType = DEF_ITET_UNIQUE_OWNER; 
  pItem->m_sTouchEffectValue1 = m_pClientList[iClientH]->m_sCharIDnum1; 
  pItem->m_sTouchEffectValue2 = m_pClientList[iClientH]->m_sCharIDnum2; 
  pItem->m_sTouchEffectValue3 = m_pClientList[iClientH]->m_sCharIDnum3; 
  _bAddClientItemList(iClientH, pItem, &iEraseReq); 
  SendItemNotifyMsg(iClientH, DEF_NOTIFY_ITEMOBTAINED, pItem, NULL); 
 } 
} 
   } 
  }
<span style='color:red'> Game.h add </span>

Code: Select all

	void GetAngels(int iClientH);
Pointless but my first code.. i got some error and Juggalo helped fix some.. Thank you too :P
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

That would be usefull for low lvl server the player need 30 Contri 100 Eks and 10 majesic points to use that command :)



awwww by the way i noticed in your code that you need 100 str/dex/mag/int to revice a angel! but what comes up when i have str and dex 200? i will revice the STR and DEX angel? or only one?
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

You recive both
It checks if you str is higher then 100 then gives that angel..
and if dex higher then that angel

And yeh everyone can put EK requirements and Cont and Majestic themself too i hope :P
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

Thats bad it should be something like lotery you have 50% to revice str and 50% dex (depends on class) 50+50= 100 (or maybe 140???? i dont know exactly :P ) thats would be like a feature you need luck to revice str or dex angel its a nice thing.
Psycho
Member
Posts: 116
Joined: Sat Jan 24, 2004 2:56 pm

Post by Psycho »

thats an bug, you can get if you want 2 millon angels -.-... fix it... when you got 1 angel, cang get it again..:


YoKo
<img src='http://img145.imageshack.us/img145/3999/firma1an0.jpg' border='0' alt='user posted image' />
Post Reply