Register for your free account! | Forgot your password?

You last visited: Today at 17:24

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

Advertisement



1 simple request

Discussion on 1 simple request within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Talking 1 simple request

#request delete

i figured it out thx pro4never

i gave u thanks
[GM] is offline  
Old 02/01/2010, 22:23   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 50
Received Thanks: 5
i wish i can help u but i don't know how

when u release ur server i will join it
gahanabobo is offline  
Old 02/01/2010, 22:36   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
I have a release in my siggy for CoEmu. You could convert it quite easily to work with the new lotf (or w/e source you are using) assuming it's not binaries.

Good luck.
pro4never is offline  
Old 02/02/2010, 09:09   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by pro4never View Post
I have a release in my siggy for CoEmu. You could convert it quite easily to work with the new lotf (or w/e source you are using) assuming it's not binaries.

Good luck.
iam useing 5165 source
[GM] is offline  
Old 02/02/2010, 09:26   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Source doesn't matter, just convert it as the principle behind it is exactly the same. All you will have to do is find in your source where monster death is handled and then write something nearly identical to what I just posted.
pro4never is offline  
Old 02/02/2010, 09:40   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by pro4never View Post
Source doesn't matter, just convert it as the principle behind it is exactly the same. All you will have to do is find in your source where monster death is handled and then write something nearly identical to what I just posted.

i did that after following a guide but it works for only 1 mob for me
[GM] is offline  
Old 02/02/2010, 09:55   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
as in 1 monster name? are you sure you didn't indent your code under a specific mob/map check?
pro4never is offline  
Old 02/02/2010, 10:13   #8
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by pro4never View Post
as in 1 monster name? are you sure you didn't indent your code under a specific mob/map check?
no i didn't here is the code check it out

if (MyMath.ChanceSuccess(100))
{
DI2.Silvers = (uint)(Rnd.Next(MinSilvers, MaxSilvers) * DropRates.Silver);
if(Char != null)

if (MyMath.ChanceSuccess(100))
{
if (MobID == 52)

Char.CPs += 1000;
{
Char.Silvers += 1000000;

return;
}
}



that works for birdmen


when i add it for Pheasant

i make it like this

if (MyMath.ChanceSuccess(100))
{
DI2.Silvers = (uint)(Rnd.Next(MinSilvers, MaxSilvers) * DropRates.Silver);
if(Char != null)

if (MyMath.ChanceSuccess(100))
{
if (MobID == 52)
if (MobID == 1)

Char.CPs += 1000;
{
Char.Silvers += 1000000;

return;
}
}

but this don't work for bird men or Pheasant so what iam doing wrong
[GM] is offline  
Old 02/02/2010, 11:02   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Why put the mob id at all?

Also reason why it's not working properly is you are using 2 if checks. They can't be BOTH therefor it wont work. Try using the or operator (||) in the same if statement.

Eg

if (MOBID == 1 || MobID == 500)

You could also do a range such as

if (MobId >= 1 && MobId < = 500)

That would work for any mob between 1-500

Also make sure you contain any drop code for the if statement in {}. If not it only applies to the line directly beneath the if statement.

Note: You can still add random chance to it by using calculation percent success (rate of cps being awarded) and then random number generator determining how many cp is given out. Adding monster/player level calculations takes a bit more work but still rather simple to do.
pro4never is offline  
Thanks
2 Users
Old 02/02/2010, 11:43   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
thx dude here is the code i made

if (MyMath.ChanceSuccess(100))
{
if (MobID >= 1 && MobID <= 11169)
Char.CPs += 1000;
Char.Silvers += 1000000;

return;

}


and its not working what is wrong in it?
[GM] is offline  
Reply


Similar Threads Similar Threads
Request for a simple bot
02/17/2010 - Perfect World - 3 Replies
Ive been searching for some time now, downloading several bots, but I havent actually found a bot that targets only one client if u multi-client. The only bot that does this is oracle and revobot, which i found quite unreliable because its dependent on the website, and it goes down every now and then. I dont really need a bot that autohunt mobs for u or fight mobs while u go afk. I'm just looking for a bot whereby once u turn it on, the bot automatically attack the monster that u target with...
[REQUEST]2 small simple request please look in here
09/20/2008 - CO2 Private Server - 6 Replies
Hello all no one here knows me i am Rukia Owner Od DarkAngelzCO 2.0 i was wondering if anyone can kindly show me 1 solutions first off can anyone tell me how i can add day/night to work for everyone i have been searching deeply for it can anyone please show me with a guide how to get it on my server?
Simple request
01/14/2008 - World of Warcraft - 4 Replies
ok.. hoping you guys know how to press the reply button this time... I need a mangos database thats ENGLISH and has all the monsters, items, npcs in it etc. I dont care if you have to upload the fucking mangos.sql file itself.. I just need one that ISNT in fucking german -.- because my friends and family dont know how to read it and it annoys the hell outta me that there are no ENGLISH tutorials on how to make a private server and I had to use german rebuilds.. If someone could brighten my day...
a simple request
05/18/2007 - Silkroad Online - 0 Replies
can some one pls give me a link with the ksro client cause when i try to dl it from the main page it sais that i need a pass and loging for network or something like that....any help would be apreciated



All times are GMT +1. The time now is 17:25.


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