Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 21:48

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

Advertisement



Mob.cs coding problem(help)

Discussion on Mob.cs coding problem(help) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
Mob.cs coding problem(help)

hi, so i have co pserver 5165

i'm coding mob.cs, to make a monster droping an item so here is the script and tell me wha'ts wrong, because i made the Id of GoldDew [ID:721514]

PHP Code:
                    else if (MyMath.ChanceSuccess(DropRates.CPBag))
                    {
                        if (
Char != null)
                        if (
Char.VipLevel >= 3)
                        {
                            if (
Char.Inventory.Count <= 39)
                            {
                                
Char.AddItem(721514);
                                return;
                            }
                        }
                        
DI2.Info.ID 150279;
                        
DI2.Info.MaxDur DI2.Info.DBInfo.Durability;
                        
DI2.Info.CurDur DI2.Info.MaxDur;
                    }
                    else if (
MyMath.ChanceSuccess(DropRates.CPBackpack))
                        if (
Loc.Map == 1511)
                        {
                            if (
Name == "GhostBossL159")
                            {
                                if (
MyMath.ChanceSuccess(0.5))
                                {
                                    
DI2.Info.ID 721514;
                                    
DI2.Info.MaxDur DI2.Info.DBInfo.Durability;
                                    
DI2.Info.CurDur DI2.Info.MaxDur;
                                }
                            }
                        }
                        if (
Loc.Map == 4021)
                        {
                            if (
Name == "GhostBoss159")
                            {
                                if (
MyMath.ChanceSuccess(0.5))
                                {
                                    
DI2.Info.ID 721514;
                                    
DI2.Info.MaxDur DI2.Info.DBInfo.Durability;
                                    
DI2.Info.CurDur DI2.Info.MaxDur;
                                }
                            }
                        } 

but it drop CPBackPack, why, and if the code is wrong, give me the right code or p
sohaib is offline  
Thanks
1 User
Old 06/23/2010, 00:22   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
simply no offence but if u could just spend few more mins on it u would figure out wheres the problem look at this
Quote:
else if (MyMath.ChanceSuccess(DropRates.CPBackpack)) <<<<<<<<<< that's why u r getting cpbackpack instead of ur item change it and also add that item GoldDew to droprates as others r
if (Loc.Map == 1511)
{
if (Name == "GhostBossL159")
{
if (MyMath.ChanceSuccess(0.5))
{
DI2.Info.ID = 721514;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
}
Adziunia is offline  
Old 06/23/2010, 05:31   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
" else if (MyMath.ChanceSuccess(DropRates.CPBackpack)) "
Arcо is offline  
Old 06/23/2010, 11:41   #4
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
man, where i put the code,
Quote:
}
else if (MyMath.ChanceSuccess(DropRates.CPBackpack))
Here
{
or


Quote:
}
else if (MyMath.ChanceSuccess(DropRates.CPBackpack))
{
Here


so after the "{" or before?
sohaib is offline  
Thanks
1 User
Old 06/23/2010, 20:34   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Just remove it entirely.
Arcо is offline  
Old 06/23/2010, 20:46   #6
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
how that?
sohaib is offline  
Old 06/23/2010, 20:51   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Highlight....
Backspace.
Arcо is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Problem in Coding, Help please
06/13/2010 - CO2 Private Server - 15 Replies
hello, i have a conquer private server version 5165 so i'm trying to code some npcs please watch the video to know what i want and how you can help me YouTube - SansTitre.flv
Coding-Problem
03/24/2010 - GW Bots - 31 Replies
hey^^ ich hab vor 2 tagen angefangen mit mit AutoIt zu beschäftigen.jezt wollt mich mal mein ersten GW-tool schreiben(programm,dass auf knopfdruck das ganze inventar durch-indentiviziert)und hab dann einfach mal ausprobiert^^(siehe unten) was noch zu sagen ist: -das inventar soll ganz oben rechts in der ecke sein -das indentivizierungs-werkzeug soll auf dem ersten inventar-slot liegen mein code sieht so aus: HotKeySet ("^q", "start")
Problem mit Spammer coding
09/21/2009 - WarRock Hacks, Bots, Cheats & Exploits - 3 Replies
Hey habe ein problem mit dem coding von spammen, und zwar wenn ich in wr bin schreibt der dne text schon in die zeile, schickt ih dann aber nicht ab. Sprich: die "entertaste" wird nicht gedrückt was kann ich machen??? hier der code: Public Class Form1
problem with coding
08/03/2009 - CO2 Private Server - 19 Replies
when my moms die then respawn they are invisible... probably a mistake in coding >< any ideas? lotf



All times are GMT +1. The time now is 21:50.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.