Register for your free account! | Forgot your password?

You last visited: Today at 02:06

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

Advertisement



Little help here

Discussion on Little help here within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Little help here

Ok so i am sorta making like a hell map and i want it to say as a system message when you kill satan or any other bosses

This is how i went about doing this I kinda did it like this

First i made it where it drops a exempt token when he dies

Code:
if (Name == "Satan")
                    {
                            if (Other.ChanceSuccess(100))
                            {
                                string Item = "723701-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);
                            }
                     }
Then i inserted this
Code:
if (Name == "Satan")
                    {
                            if (Other.ChanceSuccess(100))
                            {
                                string Item = "723701-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);
                                [COLOR="Red"]World.SendMsgToAll(MyChar.Name + "Has Killed Satan!", "SYSTEM", 2011);[/COLOR]                                World.ItemDrops(item);
                            }
                    }
And it doesnt happen and i get a error like when i kill satan The error has something to do with attacking not even in the same .cs file so anyone no?
hunterman01 is offline  
Old 08/09/2009, 00:35   #2
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
you probably dont have MyChar declared or something ><
CoAttack is offline  
Old 08/09/2009, 00:36   #3
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Nope i do

Code:
public Character MyChar;
hunterman01 is offline  
Old 08/09/2009, 00:42   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
your not allowed though it wont allow it in there, i tried here same thing ahppened
CoAttack is offline  
Old 08/09/2009, 01:00   #5
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Bah so i cant announce when satan dies : /
hunterman01 is offline  
Old 08/09/2009, 04:30   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
You should be able too. I don't have a clue how to fix your problem. However I receive the same error when I kill a certain monster in game. Something to do with attacking or w.e. So idk your the system msg has anything to do with your error. It's got to be something else.
Good luck bro =p
Jay1029 is offline  
Old 08/09/2009, 05:34   #7
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Your not allowed to use anything with MyChar in Entities.cs i actualyl got it working but then i got error because of me trying to reattack it >< so no! xD .. you could possibly do like when this mob spawns make it spawn once every w.e like if dis starts make it spawn and when it dies close the spawn and whoever has the HORN .. wins like at end of dis check who has the darkhorn when all leaving if they have it they win ...
CoAttack is offline  
Old 08/09/2009, 06:10   #8
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Why would you use MyChar.Name? Wouldn't it just say a different name for each person? Haven't tested or anything just wondering.. Why not use Char.Name or something..

Mind showing the error?
n0mansland is offline  
Reply




All times are GMT +2. The time now is 02:06.


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.