[Src]->Magic Weapons

Codes already submitted by people of the forums.
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Alright here's my final opinion about it, after thinking on it for a while.

- Limit the max magic % dropeable to be 70% and adding INT requirements as I posted above.
Magic 7% = 67 int
Magic 14% = 67 int
Magic 21% = 80 int
Magic 28% = 80 int
Magic 35% = 93 int
Magic 42% = 93 int
Magic 49% = 100 int
Magic 56% = 100 int
Magic 63% = 112 int
Magic 70% = 112 int

- Setting it to have 50dex/80 mag requirement should be good enough.

At the moment, I have a bmage sword on my server, using Dax's code that when hit it freezes victims by 2-3 seconds not causing any unbalance and having these requirements...
requires: 112+ int, 80+ mag and 50+dex. Str 65~104

So was more likely wanting that sword is the only one dropped with actual stats you know? Like only 1 weapon with these requirements (int will vary on the magic % as above) will be having magic status...I mean is hard to do but...let me explain...

Rapiers...very common...let's say I get a rapier with magic 42% in my calculations will need 93int, Ill set it to 97int for ESW hell you can even get a magic 70% and use 112int...you now have a RAPIER With Extra 70% damage and have AMP (112int)...that's 112int+40str = 152 points... 51 Levels...So at around level 50 you'll be rocking barracks...add few points in Dex...maybe up to 200 or so and a few more points in vit... I mean you're creating pretty good characters to not say godly...and making STR wars useless...cause who will actually get 182+str and 112int/and some mag to get a few extra points...no one...but low str warriors have a lot of points to spread out... :)

I mean...is bit messy...but what the hell I think I explained it xD

Look at what someone suggested me.
This mostly has nothing to do with ideas to help you finish...but capted my atention.
- Lightning/Energy Sword = blue color / does es or ls dmg (whichever is cooler) the weakest but still more power than the actual bmage sword.

- Earth Sword (ews spell) drains sp and hp - brown color

- bsw sword (bsw spell) blood color - better dmg than 2 previous

- blizz sword (ice effect) freezes but also does way better dmg than bmage sword / mebbe not more than bsw sword

es/ls sword 67 int 104 str
earth sword 97 int 104 str
bsw 112 int 104 str (but really hard to get)
blizz sword 195 int 104 str
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
PiotrekK
noob
Posts: 29
Joined: Fri Jan 13, 2006 2:39 am
Location: Poland/Warsaw
Contact:

Post by PiotrekK »

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)
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

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)
Hum... did you follow exactly what was written in the install guide ?

Loco used it and he had it working... but i don't know if he had to debug it :unsure:
<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 !
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

diuuude 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)
Hum... did you follow exactly what was written in the install guide ?

Loco used it and he had it working... but i don't know if he had to debug it :unsure:
It worked great for me...
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

Maybe add something like if u attack u got x% to use some spell like:
u got flameberge of earthy shock wave and its give u 20% of chance to cast esw. this will be nice feature coz u dont hit it all time but random and make it hard. Think about that :)
PiotrekK
noob
Posts: 29
Joined: Fri Jan 13, 2006 2:39 am
Location: Poland/Warsaw
Contact:

Post by PiotrekK »

plz help

<a href='http://www.megaupload.com/?d=W58YNOI7' target='_blank'>http://www.megaupload.com/?d=W58YNOI7</a>

My game.cpp.
Please install magic weapons on my game.cpp plz :(
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

PiotrekK wrote: plz help

<a href='http://www.megaupload.com/?d=W58YNOI7' target='_blank'>http://www.megaupload.com/?d=W58YNOI7</a>

My game.cpp.
Please install magic weapons on my game.cpp plz :(
if you can't do it yourself why even use sources?
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Pollof
noob
Posts: 15
Joined: Sat Jan 14, 2006 5:51 pm

Post by Pollof »

I cant download It... Can some1 host it again ?...
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Pollof wrote: I can download It... Can some1 host it again ?...
If you can download it then whats the problem of uploading it many times?
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Pollof wrote: I cant download It... Can some1 host it again ?...
here is the link to the download page :

<a href='http://www.technohell.net/modules.php?n ... load&cid=8' target='_blank'>http://www.technohell.net/modules.php?n ... d&cid=8</a>
<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 »

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);
  }
	}
}
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

that's it, you're right!
<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 !
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

lol virus in the files :D

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>
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Sry about double post but, this looks kinda 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>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Yup... my comp was infected by W32:Tenga when i uploaded this fuckin' file...

I hope everyone atleast have a spyware remover, anti-virus and firewall !
<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 !
Post Reply