[Src]->Magic Weapons

Codes already submitted by people of the forums.
Dshaked
<3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Yeah norton security center 2006 is best ; >
But will you do somefthing for this to next version of magic items?
This looks so stupid :D
Image
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

diuuude wrote: that's it, you're right!
im no expert either at coding and i did it. just took me awhile cause i looked carefully at the whole function to figure it out first hand -.-. i like learning by making and fixing my own mistakes

hope that took some relief off of you Diuuude
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Dshaked wrote: Sry about double post but, this looks kinda stupid :D?
Image
My magic weps have this fixed.. Do some chopping to my code.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

Can anyone submit the Magic Weapon Attribute Calculator or at least explain a little bit how it works and how to change it. THankz
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

Thats an great feature but the Mana pooints of your character should be lowered when you attack with the MagicGiant sword.

I will try my first HB Code by doing this. maybe it will be a noobish code but i hope it will work :(
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

would you mind re-uploading w/o the virus in the files?

id really like to check out the magic weapons some.
-><-
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Jensen wrote: would you mind re-uploading w/o the virus in the files?

id really like to check out the magic weapons some.
if you have a good antivirus like me, it will automatically get rid of it on unzipping
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

:D hehe this is new link for it. without virus
<a href='http://upload.technohell.net/uploads/40f3efd721.zip' target='_blank'>Here is it for you</a>
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Firestorm wrote: Thats an great feature but the Mana pooints of your character should be lowered when you attack with the MagicGiant sword.

I will try my first HB Code by doing this. maybe it will be a noobish code but i hope it will work :(
MPs are decreased everytime you use the weapon...

If your MPs are lower than the required MPs, the spell isn't casted and there is no damage bonus when attacking. It's like a normal weapon when you're out of mana.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

BlueChristmas wrote:
PiotrekK wrote:I need help :(

Code: Select all

--------------------Configuration: HGserver - Win32 Release--------------------
Compiling...
Game.cpp
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(2112) : warning C4305: '=' : truncation from 'const int' to 'char'
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(2112) : warning C4309: '=' : truncation of constant value
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(8857) : warning C4305: '=' : truncation from 'const int' to 'short'
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(8857) : warning C4309: '=' : truncation of constant value
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(49710) : error C2065: 'sMagicLevel' : undeclared identifier
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(49731) : error C2181: illegal else without matching if
Error executing cl.exe.

HGserver.exe - 2 error(s), 4 warning(s)
you need to declare sMagicLevel and the other errors is cause you replaced the whole statement when you should just replace the cases on

void CGame::GetItemName(char * cItemName, DWORD dwAttribute, char *pStr1, char *pStr2, char *pStr3)

should look like this if im correct

Code: Select all

void CGame::GetItemName(char * cItemName, DWORD dwAttribute, char *pStr1, char *pStr2, char *pStr3)
{
 int i;
 char cTxt[256], cTxt2[256], cName[51];
 DWORD dwType1, dwType2, dwValue1, dwValue2, dwValue3;

 m_bIsSpecial = FALSE;
	ZeroMemory(cName, sizeof(cName));
	ZeroMemory(pStr1, sizeof(pStr1));
	ZeroMemory(pStr2, sizeof(pStr2));
	ZeroMemory(pStr3, sizeof(pStr3));

	strcpy(cName, cItemName);
	for (i = 0; i < DEF_MAXITEMNAMES; i++)
	if ((m_pItemNameList[i] != NULL) && (strcmp(m_pItemNameList[i]->m_cOriginName, cItemName) == 0)) {
  strcpy(cName, m_pItemNameList[i]->m_cName);
  break;
	}

	strcpy(pStr1, cName);

	if ((dwAttribute & 0x00F0F000) != 0) {
  m_bIsSpecial = TRUE;
  dwType1  = (dwAttribute & 0x00F00000) >> 20;
  dwValue1 = (dwAttribute & 0x000F0000) >> 16;

  dwType2  = (dwAttribute & 0x0000F000) >> 12;
  dwValue2 = (dwAttribute & 0x00000F00) >> 8;

  if (dwType1 != 0) {

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: strcpy(cTxt, GET_ITEM_NAME3);   break;
  	case 2: strcpy(cTxt, GET_ITEM_NAME4);   break;
  	case 3: strcpy(cTxt, GET_ITEM_NAME5);   break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME6);   break;
  	case 6: strcpy(cTxt, GET_ITEM_NAME7);   break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME8);   break;
  	case 8: strcpy(cTxt, GET_ITEM_NAME9);   break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME10);  break;
  	case 10: strcpy(cTxt, GET_ITEM_NAME11); break;
  	case 11: strcpy(cTxt, GET_ITEM_NAME12); break;
  	case 12: strcpy(cTxt, GET_ITEM_NAME13); break;
  	case 15: strcpy(cTxt, GET_ITEM_NAME50); break;
  	}  
  	strcat(cTxt, pStr1);
  	ZeroMemory(pStr1, sizeof(pStr1));
  	strcpy(pStr1, cTxt);

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: wsprintf(cTxt, GET_ITEM_NAME14, dwValue1); break;
  	case 2: wsprintf(cTxt, GET_ITEM_NAME15, dwValue1*5); break;
  	case 3: break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME16); break;
  	case 6: wsprintf(cTxt, GET_ITEM_NAME17, dwValue1*4); break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME18); break;
  	case 8: wsprintf(cTxt, GET_ITEM_NAME19, dwValue1*7); break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME20); break;
  	case 10: wsprintf(cTxt, GET_ITEM_NAME21, dwValue1*3); break;
  	case 11: wsprintf(cTxt, GET_ITEM_NAME22, dwValue1); break;
  	case 12: wsprintf(cTxt, GET_ITEM_NAME23, dwValue1); break;
  	case 15:
    switch(dwValue1){
    case 1:
    	wsprintf(cTxt, GET_ITEM_NAME51, dwValue2*7); break;
    	break;
    case 2:
    	wsprintf(cTxt, GET_ITEM_NAME52, dwValue2*7); break;
    	break;
    case 3:
    	wsprintf(cTxt, GET_ITEM_NAME53, dwValue2*7); break;
    	break;
    case 4:
    	wsprintf(cTxt, GET_ITEM_NAME54, dwValue2*7); break;
    	break;
    case 5:
    	wsprintf(cTxt, GET_ITEM_NAME55, dwValue2*7); break;
    	break;
    case 6:
    	wsprintf(cTxt, GET_ITEM_NAME56, dwValue2*7); break;
    	break;
    case 7:
    	wsprintf(cTxt, GET_ITEM_NAME57, dwValue2*7); break;
    	break;
    case 8:
    	wsprintf(cTxt, GET_ITEM_NAME58, dwValue2*7); break;
    	break;
    case 9:
    	wsprintf(cTxt, GET_ITEM_NAME59, dwValue2*7); break;
    	break;
    case 10:
    	wsprintf(cTxt, GET_ITEM_NAME60, dwValue2*7); break;
    	break;
    case 11:
    	wsprintf(cTxt, GET_ITEM_NAME61, dwValue2*7); break;
    	break;
    case 12:
    	wsprintf(cTxt, GET_ITEM_NAME62, dwValue2*7); break;
    	break;
    case 13:
    	wsprintf(cTxt, GET_ITEM_NAME63, dwValue2*7); break;
    	break;
    case 14:
    	wsprintf(cTxt, GET_ITEM_NAME64, dwValue2*7); break;
    	break;
    case 15:
    	wsprintf(cTxt, GET_ITEM_NAME65, dwValue2*7); break;
    	break;
    case 16:
    	wsprintf(cTxt, GET_ITEM_NAME66, dwValue2*7); break;
    	break;
    }
    break;
  	}

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: wsprintf(cTxt, GET_ITEM_NAME14, dwValue1); break;
  	case 2: wsprintf(cTxt, GET_ITEM_NAME15, dwValue1*5); break;
  	case 3: break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME16); break;
  	case 6: wsprintf(cTxt, GET_ITEM_NAME17, dwValue1*4); break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME18); break;
  	case 8: wsprintf(cTxt, GET_ITEM_NAME19, dwValue1*7); break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME20); break;
  	case 10: wsprintf(cTxt, GET_ITEM_NAME21, dwValue1*3); break;
  	case 11: wsprintf(cTxt, GET_ITEM_NAME22, dwValue1); break;
  	case 12: wsprintf(cTxt, GET_ITEM_NAME23, dwValue1); break;
  	}
  	strcat(pStr2, cTxt);

  	if (dwType2 != 0) {
    ZeroMemory(cTxt, sizeof(cTxt));
    switch (dwType2) {
    case 1:  wsprintf(cTxt, GET_ITEM_NAME24, dwValue2*7);  break;
    case 2:  wsprintf(cTxt, GET_ITEM_NAME25, dwValue2*7);  break;
    case 3:  wsprintf(cTxt, GET_ITEM_NAME26, dwValue2*7);  break;
    case 4:  wsprintf(cTxt, GET_ITEM_NAME27, dwValue2*7);  break;
    case 5:  wsprintf(cTxt, GET_ITEM_NAME28, dwValue2*7);  break;
    case 6:  wsprintf(cTxt, GET_ITEM_NAME29, dwValue2*7);  break;
    case 7:  wsprintf(cTxt, GET_ITEM_NAME30, dwValue2*7);  break;
    case 8:  wsprintf(cTxt, GET_ITEM_NAME31, dwValue2*3);  break;
    case 9:  wsprintf(cTxt, GET_ITEM_NAME32, dwValue2*3);  break;
    case 10: wsprintf(cTxt, GET_ITEM_NAME33, dwValue2);    break;
    case 11: wsprintf(cTxt, GET_ITEM_NAME34, dwValue2*10); break;
    case 12: wsprintf(cTxt, GET_ITEM_NAME35, dwValue2*10); break;
    }
    strcpy(pStr3, cTxt);
  	}
  }
	}

	dwValue3 = (dwAttribute & 0xF0000000) >> 28;
	if (dwValue3 > 0) {
  if (pStr1[strlen(pStr1)-2] == '+') {
  	dwValue3 = atoi((char *)(pStr1 + strlen(pStr1)-1)) + dwValue3;
  	ZeroMemory(cTxt, sizeof(cTxt));
  	memcpy(cTxt, pStr1, strlen(pStr1)-2);
  	ZeroMemory(cTxt2, sizeof(cTxt2));
  	wsprintf(cTxt2, "%s+%d", cTxt, dwValue3);
  	ZeroMemory(pStr1, sizeof(pStr1));
  	strcpy(pStr1, cTxt2);
  }
  else {
  	ZeroMemory(cTxt, sizeof(cTxt));
  	wsprintf(cTxt, "+%d", dwValue3);
  	strcat(pStr1, cTxt);
  }
	}
}
sorry man... but i wanna know, how declare sMagicLevel!!!!!!!!!!?
"Prefiero morir de pie que vivir arrodillado"
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

diuuude  Posted on May 18 2006, 11:11 PM
 
QUOTE (Firestorm @ May 18 2006, 08:57 PM)
Thats an great feature but the Mana pooints of your character should be lowered when you attack with the MagicGiant sword.

I will try my first HB Code by doing this. maybe it will be a noobish code but i hope it will work sad.gif

MPs are decreased everytime you use the weapon...

If your MPs are lower than the required MPs, the spell isn't casted and there is no damage bonus when attacking. It's like a normal weapon when you're out of mana.
Mmh than i bugged something i will overview the code again ^^ . Thanks for this info diuuuude
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

ogeid wrote:
BlueChristmas wrote:
PiotrekK wrote:I need help :(

Code: Select all

--------------------Configuration: HGserver - Win32 Release--------------------
Compiling...
Game.cpp
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(2112) : warning C4305: '=' : truncation from 'const int' to 'char'
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(2112) : warning C4309: '=' : truncation of constant value
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(8857) : warning C4305: '=' : truncation from 'const int' to 'short'
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(8857) : warning C4309: '=' : truncation of constant value
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(49710) : error C2065: 'sMagicLevel' : undeclared identifier
C:\Documents and Settings\PiotrekK\Pulpit\2.24c\Game.cpp(49731) : error C2181: illegal else without matching if
Error executing cl.exe.

HGserver.exe - 2 error(s), 4 warning(s)
you need to declare sMagicLevel and the other errors is cause you replaced the whole statement when you should just replace the cases on

void CGame::GetItemName(char * cItemName, DWORD dwAttribute, char *pStr1, char *pStr2, char *pStr3)

should look like this if im correct

Code: Select all

void CGame::GetItemName(char * cItemName, DWORD dwAttribute, char *pStr1, char *pStr2, char *pStr3)
{
 int i;
 char cTxt[256], cTxt2[256], cName[51];
 DWORD dwType1, dwType2, dwValue1, dwValue2, dwValue3;

 m_bIsSpecial = FALSE;
	ZeroMemory(cName, sizeof(cName));
	ZeroMemory(pStr1, sizeof(pStr1));
	ZeroMemory(pStr2, sizeof(pStr2));
	ZeroMemory(pStr3, sizeof(pStr3));

	strcpy(cName, cItemName);
	for (i = 0; i < DEF_MAXITEMNAMES; i++)
	if ((m_pItemNameList[i] != NULL) && (strcmp(m_pItemNameList[i]->m_cOriginName, cItemName) == 0)) {
  strcpy(cName, m_pItemNameList[i]->m_cName);
  break;
	}

	strcpy(pStr1, cName);

	if ((dwAttribute & 0x00F0F000) != 0) {
  m_bIsSpecial = TRUE;
  dwType1  = (dwAttribute & 0x00F00000) >> 20;
  dwValue1 = (dwAttribute & 0x000F0000) >> 16;

  dwType2  = (dwAttribute & 0x0000F000) >> 12;
  dwValue2 = (dwAttribute & 0x00000F00) >> 8;

  if (dwType1 != 0) {

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: strcpy(cTxt, GET_ITEM_NAME3);   break;
  	case 2: strcpy(cTxt, GET_ITEM_NAME4);   break;
  	case 3: strcpy(cTxt, GET_ITEM_NAME5);   break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME6);   break;
  	case 6: strcpy(cTxt, GET_ITEM_NAME7);   break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME8);   break;
  	case 8: strcpy(cTxt, GET_ITEM_NAME9);   break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME10);  break;
  	case 10: strcpy(cTxt, GET_ITEM_NAME11); break;
  	case 11: strcpy(cTxt, GET_ITEM_NAME12); break;
  	case 12: strcpy(cTxt, GET_ITEM_NAME13); break;
  	case 15: strcpy(cTxt, GET_ITEM_NAME50); break;
  	}  
  	strcat(cTxt, pStr1);
  	ZeroMemory(pStr1, sizeof(pStr1));
  	strcpy(pStr1, cTxt);

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: wsprintf(cTxt, GET_ITEM_NAME14, dwValue1); break;
  	case 2: wsprintf(cTxt, GET_ITEM_NAME15, dwValue1*5); break;
  	case 3: break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME16); break;
  	case 6: wsprintf(cTxt, GET_ITEM_NAME17, dwValue1*4); break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME18); break;
  	case 8: wsprintf(cTxt, GET_ITEM_NAME19, dwValue1*7); break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME20); break;
  	case 10: wsprintf(cTxt, GET_ITEM_NAME21, dwValue1*3); break;
  	case 11: wsprintf(cTxt, GET_ITEM_NAME22, dwValue1); break;
  	case 12: wsprintf(cTxt, GET_ITEM_NAME23, dwValue1); break;
  	case 15:
    switch(dwValue1){
    case 1:
    	wsprintf(cTxt, GET_ITEM_NAME51, dwValue2*7); break;
    	break;
    case 2:
    	wsprintf(cTxt, GET_ITEM_NAME52, dwValue2*7); break;
    	break;
    case 3:
    	wsprintf(cTxt, GET_ITEM_NAME53, dwValue2*7); break;
    	break;
    case 4:
    	wsprintf(cTxt, GET_ITEM_NAME54, dwValue2*7); break;
    	break;
    case 5:
    	wsprintf(cTxt, GET_ITEM_NAME55, dwValue2*7); break;
    	break;
    case 6:
    	wsprintf(cTxt, GET_ITEM_NAME56, dwValue2*7); break;
    	break;
    case 7:
    	wsprintf(cTxt, GET_ITEM_NAME57, dwValue2*7); break;
    	break;
    case 8:
    	wsprintf(cTxt, GET_ITEM_NAME58, dwValue2*7); break;
    	break;
    case 9:
    	wsprintf(cTxt, GET_ITEM_NAME59, dwValue2*7); break;
    	break;
    case 10:
    	wsprintf(cTxt, GET_ITEM_NAME60, dwValue2*7); break;
    	break;
    case 11:
    	wsprintf(cTxt, GET_ITEM_NAME61, dwValue2*7); break;
    	break;
    case 12:
    	wsprintf(cTxt, GET_ITEM_NAME62, dwValue2*7); break;
    	break;
    case 13:
    	wsprintf(cTxt, GET_ITEM_NAME63, dwValue2*7); break;
    	break;
    case 14:
    	wsprintf(cTxt, GET_ITEM_NAME64, dwValue2*7); break;
    	break;
    case 15:
    	wsprintf(cTxt, GET_ITEM_NAME65, dwValue2*7); break;
    	break;
    case 16:
    	wsprintf(cTxt, GET_ITEM_NAME66, dwValue2*7); break;
    	break;
    }
    break;
  	}

  	ZeroMemory(cTxt, sizeof(cTxt));
  	switch (dwType1) {
  	case 1: wsprintf(cTxt, GET_ITEM_NAME14, dwValue1); break;
  	case 2: wsprintf(cTxt, GET_ITEM_NAME15, dwValue1*5); break;
  	case 3: break;
  	case 4: break;
  	case 5: strcpy(cTxt, GET_ITEM_NAME16); break;
  	case 6: wsprintf(cTxt, GET_ITEM_NAME17, dwValue1*4); break;
  	case 7: strcpy(cTxt, GET_ITEM_NAME18); break;
  	case 8: wsprintf(cTxt, GET_ITEM_NAME19, dwValue1*7); break;
  	case 9: strcpy(cTxt, GET_ITEM_NAME20); break;
  	case 10: wsprintf(cTxt, GET_ITEM_NAME21, dwValue1*3); break;
  	case 11: wsprintf(cTxt, GET_ITEM_NAME22, dwValue1); break;
  	case 12: wsprintf(cTxt, GET_ITEM_NAME23, dwValue1); break;
  	}
  	strcat(pStr2, cTxt);

  	if (dwType2 != 0) {
    ZeroMemory(cTxt, sizeof(cTxt));
    switch (dwType2) {
    case 1:  wsprintf(cTxt, GET_ITEM_NAME24, dwValue2*7);  break;
    case 2:  wsprintf(cTxt, GET_ITEM_NAME25, dwValue2*7);  break;
    case 3:  wsprintf(cTxt, GET_ITEM_NAME26, dwValue2*7);  break;
    case 4:  wsprintf(cTxt, GET_ITEM_NAME27, dwValue2*7);  break;
    case 5:  wsprintf(cTxt, GET_ITEM_NAME28, dwValue2*7);  break;
    case 6:  wsprintf(cTxt, GET_ITEM_NAME29, dwValue2*7);  break;
    case 7:  wsprintf(cTxt, GET_ITEM_NAME30, dwValue2*7);  break;
    case 8:  wsprintf(cTxt, GET_ITEM_NAME31, dwValue2*3);  break;
    case 9:  wsprintf(cTxt, GET_ITEM_NAME32, dwValue2*3);  break;
    case 10: wsprintf(cTxt, GET_ITEM_NAME33, dwValue2);    break;
    case 11: wsprintf(cTxt, GET_ITEM_NAME34, dwValue2*10); break;
    case 12: wsprintf(cTxt, GET_ITEM_NAME35, dwValue2*10); break;
    }
    strcpy(pStr3, cTxt);
  	}
  }
	}

	dwValue3 = (dwAttribute & 0xF0000000) >> 28;
	if (dwValue3 > 0) {
  if (pStr1[strlen(pStr1)-2] == '+') {
  	dwValue3 = atoi((char *)(pStr1 + strlen(pStr1)-1)) + dwValue3;
  	ZeroMemory(cTxt, sizeof(cTxt));
  	memcpy(cTxt, pStr1, strlen(pStr1)-2);
  	ZeroMemory(cTxt2, sizeof(cTxt2));
  	wsprintf(cTxt2, "%s+%d", cTxt, dwValue3);
  	ZeroMemory(pStr1, sizeof(pStr1));
  	strcpy(pStr1, cTxt2);
  }
  else {
  	ZeroMemory(cTxt, sizeof(cTxt));
  	wsprintf(cTxt, "+%d", dwValue3);
  	strcat(pStr1, cTxt);
  }
	}
}
sorry man... but i wanna know, how declare sMagicLevel!!!!!!!!!!?
just like you declare everything else
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

short sMagicLevel; ?
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

yes... that's it !


By the way, i'm working on new defensive magic items, it will be released soon...

Ex :
- Healing Necklace : 3% -> 27% chance casting Heal when attacked
- Defensive Ring : 3% -> 27% chance casting Defense-Shield when attacked
- PFM Cape : 3% -> 27% chance casting Protection-From-Magic when attacked
- Great-Healing Boots : 3% -> 27% chance casting Great-Heal when attacked
- Zerk Leggings : 2% -> 18% chance casting Berserk when attacked
- Paralyze Hauberk : 2% -> 18% chance casting paralyze on ennemy when attacked



Mana / Health / Stamina / Stats increasing Items are comming too, but won't be released to public, you'll have to ask me in order to have it when i'll be done with it :)
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

diuuude wrote: yes... that's it !


By the way, i'm working on new defensive magic items, it will be released soon...

Ex :
- Healing Necklace : 3% -> 27% chance casting Heal when attacked
- Defensive Ring : 3% -> 27% chance casting Defense-Shield when attacked
- PFM Cape : 3% -> 27% chance casting Protection-From-Magic when attacked
- Great-Healing Boots : 3% -> 27% chance casting Great-Heal when attacked
- Zerk Leggings : 2% -> 18% chance casting Berserk when attacked
- Paralyze Hauberk : 2% -> 18% chance casting paralyze on ennemy when attacked



Mana / Health / Stamina / Stats increasing Items are comming too, but won't be released to public, you'll have to ask me in order to have it when i'll be done with it :)
nice, i'd love to see them
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Post Reply