Register for your free account! | Forgot your password?

You last visited: Today at 21:29

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

Advertisement



just confuse

Discussion on just confuse within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
just confuse

what is correct by doing this two option

PHP Code:
 for (int x 0items.Countx++)
            {
                
Interfaces.IConquerItem item = new Network.GamePackets.ConquerItem(true);
                
item.ID items[x].Id;
                
item.UID items[x].Uid;
                
item.Durability items[x].Durability
or this one
PHP Code:
 for (int x 0items.Count 1x++)
            {
                
Interfaces.IConquerItem item = new Network.GamePackets.ConquerItem(true);
                
item.ID items[x].Id;
                
item.UID items[x].Uid;
                
item.Durability items[x].Durability
This is loading items.....
I just have some issue of some missing items of character when they login but I dont get any error message in the console.... btw I am using the Impulse source
marlyandedsel is offline  
Old 05/31/2012, 15:41   #2
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
why not ?
Code:
foreach(var item in items){
//do what u want!
}
Mr_PoP is offline  
Thanks
2 Users
Old 05/31/2012, 20:02   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Thank You Mr.Pop..
can you give me clue on how to check the number og Team Group in a certain map? have use the impulse source.
marlyandedsel is offline  
Old 06/01/2012, 00:56   #4
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
I have no clue how Impulse handling his source, cant help you sorry.
Mr_PoP is offline  
Old 06/01/2012, 03:28   #5
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Number of team group in a certain map ? You mean the number of teams in a map? You'd loop through each team in your team pool, then through the members, and up the count if that member is in the map ID you're checking for. To be more efficient, skip any other members for the team you already added a member from. There's most likely a more efficient way, but I don't know how that source is structured.

I wouldn't condone using too many loops in the long run, though.
Zeroxelli is offline  
Old 06/01/2012, 12:20   #6
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
or I just check all player in the map if they are leader and count it... but condition is if the leader is out in the map hmmm.......
marlyandedsel is offline  
Old 06/01/2012, 12:36   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Code:
//pseudo
static List<Team> teams = new List<Team>();
static int TeamsInMap(ushort map) {
teams.Clear();
foreach (Player p in Kernel.Teams)
{
if (p.MapID == map && !teams.Contains(p.Team))
{
teams.Add(p.Team);
}
}
return teams.Count;
}
Something like that?
I don't have a username is offline  
Thanks
1 User
Old 06/01/2012, 12:47   #8
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
exactly what i am looking for....
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
How to confuse an Idiot
04/26/2011 - Off Topic - 1 Replies
Wirklich Interessant.
how to confuse a idiot
07/28/2008 - Off Topic - 2 Replies
http://666kb.com/i/b0pdjrsr41xgzexoa.png
kind of confuse
07/28/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies
hi, guys i have red most of the important thread ive never use bots in l2 and i wanted to start using it but its really confusing cuz there s no like specific thread that talk about how to use the bots i would like to know if anyone could explain me a lil about the bots cuz i know about the l2walker but dont know wat it actually do and about the l2divine i didn t see nothing that explain wat it is so i was hoping that someone could explain me how to use them properly. thx in advance.
[Makro] Confuse your Friends!
01/02/2008 - WoW Exploits, Hacks, Tools & Macros - 25 Replies
Deutsch: Viele haben eventuell gesehen, wie Leute (z.b. Hexenmeister) zu ihren Pets sagen: manchmal ist es ein Add-On, aber manche machen es auch anders. mache ein Makro mit und klicke auf dein Pet. Dann aktiviere das Makro und statt %t steht dor der Name!
Confuse your enemies in AB
11/15/2007 - WoW Exploits, Hacks, Tools & Macros - 11 Replies
Hunters only ! We hunters got a pretty lame ability called Eagle Eye or do we ? When you cast Eagle Eye on a flag in AB it makes the same animation like when you are capturing something. Just look at the screens. http://img405.imageshack.us/img405/9478/screen1ww 9.jpg http://img80.imageshack.us/img80/2766/screen2bc1. jpg http://img253.imageshack.us/img253/8172/screen3kv 1.jpg Yhea, had alot of fun with it.



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


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.