[Req]Monster Drop Tutorial...
in game.ccp
write in find Slime.
Search untill you find something like this :
case 1: // Slime, Giant-Ant, Amphis, Rabbit, Cat
switch (iDice(1,3)) {
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
}
break;
and there you go.
and if you add there more cases then your dices will change.
example if you want to add 2 more cases then you're dice will be (iDice(1,5))
write in find Slime.
Search untill you find something like this :
case 1: // Slime, Giant-Ant, Amphis, Rabbit, Cat
switch (iDice(1,3)) {
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
}
break;
and there you go.
and if you add there more cases then your dices will change.
example if you want to add 2 more cases then you're dice will be (iDice(1,5))
-
- <3 bd long time
- Posts: 967
- Joined: Tue Jul 12, 2005 8:07 pm
- Location: Washington, USA
- Contact:
Thanks for your quickness, I was getting impatient. I want to get my server setup right...
case 1: // Slime, Giant-Ant, Amphis, Rabbit, Cat
switch (iDice(1,3)) {
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
}
break;
So, if I added say 6 more it'd look like this...
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
case 4: iItemID = (#); break; // (Item)
case 5: iItemID = (#); break; // (Item)
case 6: iItemID = (#); break; // (Item)
case 7: iItemID = (#); break; // (Item)
case 8: iItemID = (#); break; // (Item)
case 9: iItemID = (#); break; // (Item)
case 1: // Slime, Giant-Ant, Amphis, Rabbit, Cat
switch (iDice(1,3)) {
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
}
break;
So, if I added say 6 more it'd look like this...
case 1: iItemID = 1; break; // Dagger
case 2: iItemID = 8; break; // ShortSword
case 3: iItemID = 59; break; // LightAxe
case 4: iItemID = (#); break; // (Item)
case 5: iItemID = (#); break; // (Item)
case 6: iItemID = (#); break; // (Item)
case 7: iItemID = (#); break; // (Item)
case 8: iItemID = (#); break; // (Item)
case 9: iItemID = (#); break; // (Item)
It's actually very simple, but If you still don't understand I suggest using Drajwar's XML based Drop List
Its very useful when you don't got access to sources
Getting link for it one sec
<a href='index.php?showtopic=6660' target='_blank'>index.php?showtopic=6660</a>
Its very useful when you don't got access to sources
Getting link for it one sec
<a href='index.php?showtopic=6660' target='_blank'>index.php?showtopic=6660</a>