Demonslayer?

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
theblue2
noob
Posts: 28
Joined: Tue Sep 06, 2005 1:42 pm

Post by theblue2 »


monster demon add damage plus item

demonslayer setting code??

Drajwer
<3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

what?
<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 »

Hum... you should explain much what you want to do theblue2...


Do you want to add some damage to the DemonSlayer when you attack a Demon with it ? If Yes i'll post code this afternoon ;)
<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 !
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

He wants a code where Demon Slayer makes more damage to Demon. else it's like normal weapon or smth. so he wants Demon Slayer to make bigger dmg to Demons :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' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

If your Demonslayer's ID isn't 616, you'll have to change it in this code. Demonslayer will now make 5 more Dmg points when attacking a Demon.


in function iCalculateAttackEffect

Find :

Code: Select all

  	if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 847) && 
    (m_cDayOrNight == 2)) {
    	iAP_SM += 4;
    	iAP_L += 4;
  	}
  	if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 848) && 
    (m_cDayOrNight == 1)) {
    	iAP_SM += 4;
    	iAP_L += 4;
  	}
Right after, add :

Code: Select all

  	// Add Damage to DemonSlayer when attacking Demon
  	if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 616) && (m_pNpcList[sTargetH]->m_sType == 31)){
    iAP_L += 5;
  	}
<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 !
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Whats are the 847 and 848 items.. i have change my items ID's... must change in source too now :) so please :)
<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' />
theblue2
noob
Posts: 28
Joined: Tue Sep 06, 2005 1:42 pm

Post by theblue2 »


good code~ thanks~
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Hm nice ideas here all the time :lol:
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 »

Tafka12 wrote: Whats are the 847 and 848 items.. i have change my items ID's... must change in source too now :) so please :)
why did you change items IDs ? now you have to change it in the whole sources... that was a stupid idea. You'd have better time to just add new items instead of changing existing ones.

Now you have to change the item IDs in sources for drops, upgrades, special effects, change the builditems, the potions... good luck !

By the way 847 and 848 are LightBlade and DarkExecutor
<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 !
Aragorn
Regular
Posts: 81
Joined: Fri Mar 03, 2006 12:02 pm

Post by Aragorn »

if you read this

Code: Select all

if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 847) && 
(m_cDayOrNight == 2)) {
and

Code: Select all

if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 848) && 
(m_cDayOrNight == 1)) {
it means that is for the weps that add dmg at night and day?
my guess anyhow
The fear of making permanent commitments can change the mutual love of husband and wife into two loves of self-two loves existing side by side, until they end in separation.
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Aragorn wrote: if you read this

Code: Select all

if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 847) && 
(m_cDayOrNight == 2)) {
and

Code: Select all

if ((m_pClientList[sAttackerH]->m_pItemList[sItemIndex]->m_sIDnum == 848) && 
(m_cDayOrNight == 1)) {
it means that is for the weps that add dmg at night and day?
my guess anyhow
Yes ... i made that long time ago in my HGServer but only with the Dark Executor and with Lighting Blade the Magical Sword :blink:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
bobby^^
Regular
Posts: 47
Joined: Sun Apr 16, 2006 2:38 pm

Post by bobby^^ »

DS hitting better in demons is a good idead,thnx and nice job :)
I don't code,I don't hack,I don't play,I don't do a thing..leave me alone now!
Post Reply