Register for your free account! | Forgot your password?

You last visited: Today at 22:45

  • Please register to post and access all features, it's quick, easy and FREE!


how to code the drop on monsters

Reply
 
Old   #1
 
elite*gold: 66
Join Date: Feb 2008
Posts: 912
Received Thanks: 480
how to code the drop on monsters

hello, can anyone say me how to code the drop on monsters?

i use the DeathCo Source right now and i learned to code npcs and lottery, if anyone can tell me how to code the drop rate, i will be very happy ( sry for my english )



_MaryJuana is offline  
Old 02/04/2009, 15:39   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
drop rates are in entities.cs

for regular droprates

Code:
   if (Other.ChanceSuccess(20))//CPBag
                    {
                        string Item = "729911-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
for monster droprates

Code:
    if (Name == "HillMonster")//Emerald
                    {
                        if (Other.ChanceSuccess(1.7))
                        {
                            string Item = "1080001-0-0-0-0-0";
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
for multiple monsters

Code:
   if (Name == "Slinger" || Name == "BlueBird" || Name == "FiendBat" || Name == "Talon" || Name == "Bladeling" || Name == "AgileRat" || Name == "Naga" || Name == "GoldGhost")//CloudDiamond
                    {
                        if (Other.ChanceSuccess(1.7))
                        {
                            string Item = "721536-0-0-0-0-0";
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }

press thanks if this helped...


( sick again....my mommy brought me home


PeTe Ninja is offline  
Thanks
1 User
Old 02/04/2009, 17:21   #3
 
elite*gold: 66
Join Date: Feb 2008
Posts: 912
Received Thanks: 480
thats for the LOFT source or not? o.O
_MaryJuana is offline  
Old 02/04/2009, 18:04   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
it is for lotf


press thanks if THAT helped you.. lol i want a thanks


PeTe Ninja is offline  
Thanks
2 Users
Old 02/04/2009, 19:53   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 164
Received Thanks: 43
Double post !
N6gesemees is offline  
Old 02/04/2009, 20:23   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
Quote:
Originally Posted by N6gesemees View Post
Double post !
not really its a bug and it happens if you click the sumbit reply twice which i did on accident because i didnt think it was loading
PeTe Ninja is offline  
Thanks
1 User
Old 02/04/2009, 23:04   #7
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 995
How it is a bug if you hit the Submit Reply button twice? It's working just as it is supposed to. :P
tanelipe is offline  
Old 02/04/2009, 23:11   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
bug for my computer , because it slow
PeTe Ninja is offline  
Thanks
1 User
Old 02/05/2009, 00:10   #9
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Patience is the key....


kinshi88 is offline  
Reply



« someone help me with this plz | Source of ninja or Tower i Need »

Similar Threads
can anyone help me on making monsters drop cps?
06/21/2010 - CO2 PServer - Discussions / Questions - 10 Replies
sorry guys i know there is alot of threads for this but am having truble finding Mob.cs lol ahaha i know am a ture noob but im learning :) if u can help me that would be amazying thank again sorry for being too big of a noob
Boss monsters only drop 1 items
01/16/2010 - Dekaron Private Server - 2 Replies
If I make more set index inside monster.csv the monster won't drop any items. But if i make 1 set index the monster will drop the item. Why it won't allow to drop more than 1 items in each kill.
[HELP] How to make monsters drop Emeralds/moonbox?
05/12/2009 - CO2 PServer - Discussions / Questions - 6 Replies
tq binaries. how to make monsters drop emeralds and moonbox?
[HELP]how to remore the drop items from the monsters?
11/06/2008 - EO PServer Hosting - 9 Replies
hi, in my server allmost all of the monsters drop 2.7k eps cards, and when i use them they are value of 500keps, how can i remove them from the data base and make them from 500k eps to 2.7k eps?



All times are GMT +1. The time now is 22:45.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.