Lighting Bringer

All Helbreath Server Source Discussion here.
naatten
noob
Posts: 27
Joined: Sun Jan 01, 2006 11:17 pm

Post by naatten »

how can i make LB cast lighting when you hit with it?, like HBSecret... can any1 post the code plz! THX
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

search in this forum MagicWeapons( Dax Code ) and edit it ;D
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

i think he want it like a glowing waepon or something like this ^^
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

naatten wrote: how can i make LB cast lighting when you hit with it?, like HBSecret... can any1 post the code plz! THX
If you like so much HBSecrets play it instead of trying to create a new server <_<
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>
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

i wouldnt play :huh: their GMs are corrupt :(
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Firestorm wrote: i wouldnt play :huh: their GMs are corrupt :(
Play another one.
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>
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

my homies tell me that in HBsecret there are many client hackers :(
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

RageIlluminati wrote: my homies tell me that in HBsecret there are many client hackers :(
hahah my homies -.-
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

BlueChristmas wrote:
RageIlluminati wrote: my homies tell me that in HBsecret there are many client hackers  :(
hahah my homies -.-
I mean estonian HB community
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
naatten
noob
Posts: 27
Joined: Sun Jan 01, 2006 11:17 pm

Post by naatten »

i dont wanna play HBSecret... it sux but still i like the effekts that they have lol
naatten
noob
Posts: 27
Joined: Sun Jan 01, 2006 11:17 pm

Post by naatten »

BTW i can't edit any code... i dont know a shit about C++ yet.. just learning so post the code for me plz or ill do something nasty
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Never played Secrets so dont know how it is...
If you want it to glow.. idk add it xelima effect or smth
but if you want it to make Lighting use Dax code and change there number of magic and then your sword's ID
<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' />
..//AleX//..
noob
Posts: 10
Joined: Fri May 26, 2006 3:06 am

Post by ..//AleX//.. »

Tafka12 wrote: Never played Secrets so dont know how it is...
If you want it to glow.. idk add it xelima effect or smth
but if you want it to make Lighting use Dax code and change there number of magic and then your sword's ID
mm..can u be more specific?..
i mean how to use dax and all that things u mentioned

thakn you
<span style='color:red'>..//AleX//..</span>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

heres dax code:

Code: Select all

/***************************************
********** Magic Weapons **********
***************************************/
sItemIndex = m_pClientList[iClientH]->m_sItemEquipmentStatus[ DEF_EQUIPPOS_TWOHAND ];
if (sItemIndex != -1 && m_pClientList[iClientH]->m_pItemList[sItemIndex] != NULL)
{
 if ((m_pClientList[iClientH]->m_sAppr2 & 0xF000) != 0)
 {
  if(m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 293) // Striker
  {
   short sType;

   if(wType >= 20) // (ALT) Critical Attack
   {
    sType = 84; // Mass-Magic-Missile Aura
    SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, sX, sY, (sType+100), m_pClientList[iClientH]->m_sType);

    sType = 10; // Energy-Bolt
    SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, dX, dY, (sType+100), m_pClientList[iClientH]->m_sType);
   }
   else // Dash/Normal Attack
   {
    sType = 0; // Magic-Missile
    SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, dX, dY, (sType+100), m_pClientList[iClientH]->m_sType);
   }
  }
 }
}
/***************************************
***************************************/

Code: Select all

 if(m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 293) // 
this is ID number of you sword. replace 293 with our LB

Code: Select all

   if(wType >= 20) // (ALT) Critical Attack
   {
    sType = 84; // Mass-Magic-Missile Aura
    SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, sX, sY, (sType+100), m_pClientList[iClientH]->m_sType);

    sType = 10; // Energy-Bolt
    SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, dX, dY, (sType+100), m_pClientList[iClientH]->m_sType);
   }
   else // Dash/Normal Attack
   {
    sType = 0; // Magic-Missile
This is what magic does it makes. First one is what happenes on your character(Effect) on making critical hit

sTyoe = 10 is that it makes energy bold on critical hit on enemy(what you damage)

and sType = 0 is eh idk :D

Change the numbers to your numbers(lighting or smth) look numbers under magic.cfg in your server files.



I just thought that another possibility is to remake CGame::StormBringer into CGame::LightingBlade when you edit the code by a little?
<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' />
naatten
noob
Posts: 27
Joined: Sun Jan 01, 2006 11:17 pm

Post by naatten »

Thx man... thats useful i think thats what i wanted :)
Post Reply