Register for your free account! | Forgot your password?

You last visited: Today at 23:18

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

Advertisement



Help me please

Discussion on Help me please within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 3
Received Thanks: 0
Help me please

Aight guyz i have one favour to ask can someon get me a map where u cannont use lucky time plz

Thanks^^
Jiraiya-san is offline  
Old 03/05/2011, 23:17   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
if(Program.NoLuckyMaps.Contains(GC.MyChar.Map))
return;

then

List<ushort> NoLuckyMaps = new List<ushort>{mapid, mapid2, mapid3);

etc.

Simple enough to do.

Note: first section would go where you are using the luck time skill and is structured i THINK how lotf works. Never used it so wouldn't know.
pro4never is offline  
Old 03/06/2011, 00:52   #3
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Orrr ...

if (User.Map == 1036/whatever){return;}
else {Process this skill }
{ Angelius } is offline  
Old 03/06/2011, 01:10   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by { Angelius } View Post
Orrr ...

if (User.Map == 1036/whatever){return;}
else {Process this skill }


No need for else when using return statements cause they end the method right then and there.

And yes, personall I like a list of maps something isn't allowed on cause it makes adding/removing them easier in the long run.

Alternatively you could give maps a permission flag to allow/disallow actions.
pro4never is offline  
Old 03/06/2011, 01:17   #5
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by pro4never View Post
No need for else when using return statements cause they end the method right then and there.
i agree on that part and i should have done it this way

if (User.Map == 1036)
return;
{ Angelius } is offline  
Reply




All times are GMT +1. The time now is 23:19.


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.