Limits some items from not dropping

All Helbreath Server Source Discussion here.
Post Reply
hkepc
noob
Posts: 13
Joined: Wed Oct 11, 2006 12:08 pm

Post by hkepc »

help
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

hkepc wrote: help
if you mean when you die, just bind them. if you mean from monster, change the drops or ids
hkepc
noob
Posts: 13
Joined: Wed Oct 11, 2006 12:08 pm

Post by hkepc »

from monster, change the drops or ids ?

Item = 908 AngelicPandent(STR) 1 11 14 16 0 0 0 0 0 300 0 22 11 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 909 AngelicPandent(DEX) 1 11 14 17 0 0 0 0 0 300 0 22 10 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 910 AngelicPandent(INT) 1 11 14 18 0 0 0 0 0 300 0 22 12 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 911 AngelicPandent(MAG) 1 11 14 19 0 0 0 0 0 300 0 22 13 -3000 200 -1 0 0 0 60 -10 -1 46 6
change:
Item = 2908 AngelicPandent(STR) 1 11 14 16 0 0 0 0 0 300 0 22 11 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 2909 AngelicPandent(DEX) 1 11 14 17 0 0 0 0 0 300 0 22 10 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 2910 AngelicPandent(INT) 1 11 14 18 0 0 0 0 0 300 0 22 12 -3000 200 -1 0 0 0 60 -10 -1 46 6
Item = 2911 AngelicPandent(MAG) 1 11 14 19 0 0 0 0 0 300 0 22 13 -3000 200 -1 0 0 0 60 -10 -1 46 6

npc drop angel ! why?
hkepc
noob
Posts: 13
Joined: Wed Oct 11, 2006 12:08 pm

Post by hkepc »

Does not change item id

NPC drop angel

change item id NPC drop angel too!
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

ur src is fucked is my ques u porbly wanna look thro where u last change things and look see if it look right
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hkepc
noob
Posts: 13
Joined: Wed Oct 11, 2006 12:08 pm

Post by hkepc »

BOOL CGame::bGetItemNameWhenDeleteNpc(int & iItemID, short sNpcType)
{
int iResult;

switch (sNpcType) {
case 49: // Hellclaw
iResult = iDice(1,40100);
if ((iResult >= 1) && (iResult <= 12000)) iItemID = 280; //Pandora's Box
else if ((iResult > 12001) && (iResult <= 12998)) iItemID = 259; // MagicWand(M.Shield)
else if ((iResult > 12999) && (iResult <= 13000)) iItemID = 337; // RubyRing
else if ((iResult > 13000) && (iResult <= 15000)) iItemID = 335; // EmeraldRing
else if ((iResult > 15000) && (iResult <= 17500)) iItemID = 300; // MagicNecklace(RM10)
else if ((iResult > 17500) && (iResult <= 18750)) iItemID = 311; // MagicNecklace(DF+10)
else if ((iResult > 18750) && (iResult <= 19000)) iItemID = 305; // MagicNecklace(DM+1)
else if ((iResult > 19000) && (iResult <= 19700)) iItemID = 308; // MagicNecklace(MS10)
else if ((iResult > 19700) && (iResult <= 19844)) iItemID = 635; // RingofMage
else if ((iResult > 19844) && (iResult <= 19922)) iItemID = 643; // KnecklaceOfIceEle
else if ((iResult > 19922) && (iResult <= 19961)) iItemID = 640; // KnecklaceOfSufferent
else if ((iResult > 19961) && (iResult <= 19981)) iItemID = 637; // KnecklaceOfLightPro
else if ((iResult > 19981) && (iResult <= 19991)) iItemID = 620; // MerienShield
else if ((iResult > 19991) && (iResult <= 19996)) iItemID = 644; // KnecklaceOfAirEle
else if ((iResult > 19996) && (iResult <= 29999)) iItemID = 634; // RingofWizard
else if ((iResult > 29999) && (iResult <= 30000)) iItemID = 636; // RingofGrandMage
else if ((iResult > 30001) && (iResult <= 40100)) iItemID = 614; // SwordofIceElemental
return TRUE;

case 50: // Tigerworm
iResult = iDice(1,30050);
if ((iResult >= 1) && (iResult <= 4999)) {
if (iDice(1,2) == 1)
iItemID = 311; // MagicNecklace(DF+10)
else iItemID = 305; // MagicNecklace(DM+1)
}
else if ((iResult > 5000) && (iResult <= 7499)) iItemID = 280; // Pandora's Box
else if ((iResult > 7500) && (iResult <= 8749)) iItemID = 290; // Flameberge+3(LLF)
else if ((iResult > 8750) && (iResult <= 9374)) iItemID = 633; // RingofDemonpower
else if ((iResult > 9375) && (iResult <= 9687)) iItemID = 492; // BloodRapier
else if ((iResult > 9688) && (iResult <= 9843)) iItemID = 490; // BloodSword
else if ((iResult > 9844) && (iResult <= 19921)) iItemID = 491; // BloodAxe
else if ((iResult > 19922) && (iResult <= 19960)) iItemID = 291; // MagicWand(MS30-LLF)
else if ((iResult > 19961) && (iResult <= 19980)) iItemID = 630; // RingoftheXelima
else if ((iResult > 19981) && (iResult <= 19990)) iItemID = 614; // SwordofIceElemental
else if ((iResult > 19991) && (iResult <= 19996)) iItemID = 610; // XelimaBlade
else if ((iResult > 19996) && (iResult <= 19998)) iItemID = 611; // XelimaAxe
else if ((iResult > 19999) && (iResult <= 20000)) iItemID = 631; // RingoftheAbaddon
else if ((iResult > 20001) && (iResult <= 30050)) iItemID = 612; // XelimaRapier
return TRUE;

default:
break;
}

if (iDice(1,45) == 13) {
switch (sNpcType) {
case 11: if (iDice(1,550) != 11) return FALSE; break; // Skeleton 2 * 100
case 12: if (iDice(1,400) != 11) return FALSE; break; // Stone-Golem 2 * 100
case 13: if (iDice(1,100) != 11) return FALSE; break; // Cyclops 6 * 100
case 14: if (iDice(1,700) != 11) return FALSE; break; // Orc 4 * 100
case 17: if (iDice(1,600) != 11) return FALSE; break; // Scorpoin 5 * 100
case 18: if (iDice(1,850) != 11) return FALSE; break; // Zombie 1 * 100
case 22: if (iDice(1,600) != 11) return FALSE; break; // Amphis 5 * 100
case 23: if (iDice(1,400) != 11) return FALSE; break; // Clay-Golem 2 * 100
case 27: if (iDice(1,100) != 11) return FALSE; break; // Hellhound 7 * 100
case 28: if (iDice(1,100) != 11) return FALSE; break; // Troll 5 * 100
case 29: if (iDice(1,150) != 11) return FALSE; break; // Orge 7 * 100
case 30: if (iDice(1,120) != 11) return FALSE; break; // Liche 1 * 100
case 31: break; // Demon 5 * 100
case 32: if (iDice(1,200) != 11) return FALSE; break; // Unicorn 5 * 100
case 33: if (iDice(1,300) != 11) return FALSE; break; // WereWolf 7 * 100
case 48: if (iDice(1,100) != 11) return FALSE; break; // Stalker
case 52: if (iDice(1,300) != 11) return FALSE; break; // Gagoyle
case 53: if (iDice(1,500) != 11) return FALSE; break; // Beholder
case 54: if (iDice(1,200) != 11) return FALSE; break; // Dark-Elf
case 57: if (iDice(1,400) != 11) return FALSE; break; // Giant-Frog
case 63: if (iDice(1,300) != 11) return FALSE; break; // Frost
case 79: if (iDice(1,200) != 11) return FALSE; break; // Nizie
case 70: if (iDice(1,200) != 11) return FALSE; break; // Barlog
case 71: if (iDice(1,200) != 11) return FALSE; break; // Centaurus
default: return FALSE;
}
}
else return FALSE;

//http://www.helbreath.com/down/d_patch_v2.htm

switch (sNpcType) {
case 11: // Skeleton
case 17: // Scorpoin
case 14: // Orc
case 28: // Troll
case 57: // Giant-Frog
switch (iDice(1,15)) {
case 1: iItemID = 334; break; // LuckyGoldRing
case 2: iItemID = 336; break; // SapphireRing
case 3: if (iDice(1,25) == 3) iItemID = 335; break; // EmeraldRing
case 4: iItemID = 337; break; // RubyRing
case 5: iItemID = 333; break; // PlatinumRing
case 6: if (iDice(1,35) == 3) iItemID = 634; break; // RingofWizard
case 7: if (iDice(1,40) == 3) iItemID = 635; break; // RingofMage
}
break;

case 13: // Cyclops
case 27: // Hellhound
case 29: // Orge
switch (iDice(1,18)) {
case 1: iItemID = 311; break; // MagicNecklace(DF+10)
case 2: if (iDice(1,30) == 13) iItemID = 308; break; // MagicNecklace(MS10)
case 3: if (iDice(1,20) == 13) iItemID = 305; break; // MagicNecklace(DM+1)
case 4: iItemID = 300; break; // MagicNecklace(RM10)
case 5: if (iDice(1,40) == 13) iItemID = 632; break; // RingofOgrepower
case 6: if (iDice(1,40) == 13) iItemID = 637; break; // KnecklaceOfLightPro
case 7: if (iDice(1,40) == 13) iItemID = 638; break; // KnecklaceOfFirePro
case 8: iItemID = 280; break; // Pandora's Box
}
break;

case 18: // Zombie
case 22: // Amphis
switch (iDice(1,4)) {
case 1: if (iDice(1,95) == 13) iItemID = 613; break; // SwordofMedusa
case 2: if (iDice(1,20) == 13) iItemID = 639; break; // KnecklaceOfPoisonPro
case 3: if (iDice(1,90) == 13) iItemID = 641; break; // KnecklaceOfMedusa
case 4: if (iDice(1,30) == 13) iItemID = 640; break; // KnecklaceOfSufferent
}
break;

case 12: // Stone-Golem
switch (iDice(1,5)) {
case 1: if (iDice(1,90) == 13) iItemID = 620; break; // MerienShield
case 2: if (iDice(1,90) == 13) iItemID = 621; break; // MerienPlateMail(M)
case 3: if (iDice(1,90) == 13) iItemID = 622; break; // MerienPlateMail(W)
case 4: if (iDice(1,80) == 11) iItemID = 644; break; // KnecklaceOfAirEle
case 5: if (iDice(1,20) == 11) iItemID = 647; break; // KnecklaceOfStoneGolem
}
break;

case 23: // Clay-Golem
switch (iDice(1,4)) {
case 1: if (iDice(1,90) == 13) iItemID = 620; break; // MerienShield
case 2: if (iDice(1,90) == 13) iItemID = 621; break; // MerienPlateMail(M)
case 3: if (iDice(1,90) == 13) iItemID = 622; break; // MerienPlateMail(W)
case 4: if (iDice(1,70) == 11) iItemID = 644; break; // KnecklaceOfAirEle
}
break;

case 32: // Unicorn
switch (iDice(1,6)) {
case 1: if (iDice(1,90) == 13) iItemID = 620; break; // MerienShield
case 2: if (iDice(1,90) == 13) iItemID = 621; break; // MerienPlateMail(M)
case 3: if (iDice(1,90) == 13) iItemID = 622; break; // MerienPlateMail(W)
case 4: if (iDice(1,50) == 11) iItemID = 644; break; // KnecklaceOfAirEle
case 5: if (iDice(1,80) == 11) iItemID = 848; break; // Lighting Blade
case 6: iItemID = 280; break; // Pandora's Box
}
break;

case 33: // WereWolf
case 48: // Stalker
switch (iDice(1,3)) {
case 1: if (iDice(1,30) == 3) iItemID = 290; break; // Flameberge+3(LLF)
case 2: iItemID = 292; break; // GoldenAxe(LLF)
case 3: iItemID = 280; break; // Pandora's Box
}
break;

case 30: // Liche
switch (iDice(1,9)) {
case 1: if (iDice(1,50) == 3) iItemID = 380; break; // IceStormManual
case 2: iItemID = 259; break; // MagicWand(M.Shield)
case 3: if (iDice(1,50) == 3) iItemID = 291; break; // MagicWand(MS30-LLF)
case 4: if (iDice(1,20) == 3) iItemID = 280; break; // Pandora's Box
case 5: if (iDice(1,30) == 3) iItemID = 642; break; // KnecklaceOfIcePro
case 6: if (iDice(1,45) == 3) iItemID = 643; break; // KnecklaceOfIceEle
case 7: if (iDice(1,45) == 3) iItemID = 636; break; // RingofGrandMage
case 8: if (iDice(1,80) == 3) iItemID = 734; break; // RingOfArcmage
case 9: iItemID = 280; break; // Pandora's Box
}
break;

case 31: // Demon
switch (iDice(1,9)) {
case 1: if (iDice(1,50) == 3) iItemID = 382; break; // BloodyShockW.Manual
case 2: iItemID = 491; break; // BloodAxe
case 3: if (iDice(1,40) == 3) iItemID = 490; break; // BloodSword
case 4: iItemID = 492; break; // BloodRapier
case 5: if (iDice(1,40) == 3) iItemID = 381; break; // MassFireStrikeManual
case 6: if (iDice(1,40) == 3) iItemID = 633; break; // RingofDemonpower
case 7: if (iDice(1,10) == 3) iItemID = 645; break; // KnecklaceOfEfreet
case 8: if (iDice(1,80) == 3) iItemID = 616; break; // DemonSlayer
case 9: iItemID = 280; break; // Pandora's Box
}
break;

case 52: // Gagoyle
switch (iDice(1,13)) {
case 1: if (iDice(1,50) == 3) iItemID = 382; break; // BloodyShockW.Manual
case 2: if (iDice(1,90) == 3) iItemID = 610; break; // XelimaBlade
case 3: if (iDice(1,90) == 3) iItemID = 611; break; // XelimaAxe
case 4: if (iDice(1,90) == 3) iItemID = 612; break; // XelimaRapier
case 5: if (iDice(1,50) == 3) iItemID = 381; break; // MassFireStrikeManual
case 6: if (iDice(1,30) == 3) iItemID = 633; break; // RingofDemonpower
case 7: if (iDice(1,10) == 3) iItemID = 645; break; // KnecklaceOfEfreet
case 8: if (iDice(1,40) == 3) iItemID = 630; break; // RingoftheXelima
case 9: if (iDice(1,80) == 3) iItemID = 631; break; // RingoftheAbaddon
case 10: if (iDice(1,50) == 3) iItemID = 735; break; // RingOfDragonpower
case 11: if (iDice(1,50) == 3) iItemID = 20; break; // Excalibur
case 12: if (iDice(1,70) == 3) iItemID = 846; break; // The_Devastator
case 13: iItemID = 280; break; // Pandora's Box
}
break;

case 53: // Beholder
if (iDice(1,80) == 11) iItemID = 646; // KnecklaceOfBeholder
else iItemID = 280; break; // Pandora's Box
break;

case 54: // Dark-Elf
if (iDice(1,80) == 11) iItemID = 618; // DarkElfBow
else iItemID = 280; break; // Pandora's Box
break;

case 63: // Frost
if (iDice(1,80) == 11) iItemID = 845; // StormBringer
else iItemID = 280; break; // Pandora's Box
break;

case 79: // Nizie
if (iDice(1,80) == 11) iItemID = 845; // StormBringer
else iItemID = 280; break; // Pandora's Box
break;

case 70: // Barlog
if (iDice(1,80) == 11) iItemID = 846; // The_Devastator
else iItemID = 280; break; // Pandora's Box
break;

case 71: // Centaurus
if (iDice(1,80) == 11) iItemID = 848; // Lighting Blade
else iItemID = 280; break; // Pandora's Box
break;

}

if (iItemID == 0)
return FALSE;
else return TRUE;
}


Does the code have problems?
hkepc
noob
Posts: 13
Joined: Wed Oct 11, 2006 12:08 pm

Post by hkepc »

Scorpoin drop angel! why?
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Because you post blocks of code without using the code tag..
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

Code: Select all

switch (sNpcType) {
case 11: // Skeleton
case 17: // Scorpoin
case 14: // Orc
case 28: // Troll
case 57: // Giant-Frog
switch (iDice(1,15)) {
 // hahahah there is not 15 cases  iDice(1,7)
case 1: iItemID = 334; break; // LuckyGoldRing
case 2: iItemID = 336; break; // SapphireRing
case 3: if (iDice(1,25) == 3) iItemID = 335; break; // EmeraldRing
case 4: iItemID = 337; break; // RubyRing
case 5: iItemID = 333; break; // PlatinumRing
case 6: if (iDice(1,35) == 3) iItemID = 634; break; // RingofWizard
case 7: if (iDice(1,40) == 3) iItemID = 635; break; // RingofMage
}
break;

case 13: // Cyclops
case 27: // Hellhound
case 29: // Orge
switch (iDice(1,18)) {// same shit iDice(1,8) 
case 1: iItemID = 311; break; // MagicNecklace(DF+10)
case 2: if (iDice(1,30) == 13) iItemID = 308; break; // MagicNecklace(MS10)
case 3: if (iDice(1,20) == 13) iItemID = 305; break; // MagicNecklace(DM+1)
case 4: iItemID = 300; break; // MagicNecklace(RM10)
case 5: if (iDice(1,40) == 13) iItemID = 632; break; // RingofOgrepower
case 6: if (iDice(1,40) == 13) iItemID = 637; break; // KnecklaceOfLightPro
case 7: if (iDice(1,40) == 13) iItemID = 638; break; // KnecklaceOfFirePro
case 8: iItemID = 280; break; // Pandora's Box
}
break;
AS I Told You Ur Src Was Fucked Up
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Rofl, this is why nubs shouldn't touch source..
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

Orkl wrote: Rofl, this is why nubs shouldn't touch source..
second dat
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Post Reply