Register for your free account! | Forgot your password?

You last visited: Today at 09:25

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

Advertisement



[Release]Chances of a drop/something

Discussion on [Release]Chances of a drop/something within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
[Release]Chances of a drop/something

Release for : 5165 tanel's source (but it can be converted easily)

Ok guys idk if this was actually released or know but I'll release this.

With this you can calculate how many mobs/tries you have to kill/try so that you get something (like a DB drop)

ok so in chat.cs search for
Code:
                        if (Cmd[0] == "/item")
under/above that put this
Code:
                        if (Cmd[0] == "/chance")
                        {
                            double chance = double.Parse(Cmd[1]);
                            int i = 0;
                            if (chance != 0)
                            {
                                while (!MyMath.ChanceSuccess(chance))
                                    i++;
                                Program.WriteLine("On chance: " + chance + " it would take " + i + " tries/kills to get something");
                            }
                            else
                                GC.LocalMessage(2000, "Type another chance above 0!");
                        }
now in-game you can type /chance 0.1 , /chance 2 , /chance 0.001 etc...
and you'll see on console how many time you have to try achieve something

+ Thanks if it helped
ryuchetval is offline  
Old 10/06/2010, 20:33   #2
 
Galactic's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 84
Received Thanks: 46
I don't really get the purpose of it. Can you better explain please? What it does.
Maybe it's just me. But I don't really get it.
Galactic is offline  
Old 10/06/2010, 20:35   #3
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
let's say you want to check how many monsters you have to kill to get the item x with the chance 0.02 of the x item to drop...you go in-game and type /chance 0.02 and on the console will tell you the average number of monsters you should kill to get the x item
ryuchetval is offline  
Thanks
1 User
Old 10/08/2010, 06:09   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Does it require a server restart in order to take effect?
copz1337 is offline  
Old 10/08/2010, 07:38   #5
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
umm...everything u add in the sources needs a compile so that it takes effect
ryuchetval is offline  
Old 10/08/2010, 12:50   #6
 
CØĐ£Ř||Mã©hÍñє's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 248
Received Thanks: 36
awwww useful release thanks for sharing .
CØĐ£Ř||Mã©hÍñє is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Event Drop
12/06/2012 - Metin2 PServer Guides & Strategies - 46 Replies
Hallo Leute, da ja bald wieder Halloween ist (*hust* ist noch bisschen hin) habe ich hier mal für euch eine Quest, die euch den Kürbisdrop erleichtert. (Dies gilt nicht nur für Kürbis, kann alles mögliche sein, zum Beispiel Ostereier). Also hier erstmal die Quest, dann die Erklärung: when kill with game.get_event_flag("kuerbis_drop") == 1 and not npc.is_pc() begin local s=number(1, 200) if 5 == s then game.drop_item(50095,1) end
[Release] GM and PM can drop
06/20/2010 - CO2 PServer Guides & Releases - 20 Replies
hello ppl iam go put the code for ppl wanna gm and pm drop like a normal player 1º go to Packethandling 2º go to Itempacket is inside PacketHandling 3º you will see dropitem.cs open and chance for this
[RELEASE] v80 Drop GAme Trainer no a/b
01/15/2010 - MapleStory - 5 Replies
hey guys, this is a v80 drop game trainer, you have to follow these instructions extract folder and dll desktop then run winject in the winject folder. then load dll the dll u downloaded, and then open maplestory target ms for the proccess then click inject and wait 5 seconds
[Release] Drop Command
07/05/2009 - CO2 PServer Guides & Releases - 37 Replies
Here is a simple drop command, it drops either Meteors or Dragonballs. Script Insert it in Client.cs where all the other commands are: if (Splitter == "/drop") { uint MoneyDrops = 0;
What are the chances?
12/26/2008 - SRO Private Server - 10 Replies
I was botting all night to 48 then a "Sweaty" comes out and says ive been reported for botting LOL! So what are my probable chances of being banned SIGH!



All times are GMT +2. The time now is 09:25.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.