Register for your free account! | Forgot your password?

You last visited: Today at 15:22

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

Advertisement



some problems 5517

Discussion on some problems 5517 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
zoro7070's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 144
Received Thanks: 18
Smile some problems 5517

i want a code to call the monster by its id not the name for trinity source
and when i talk to the npc who put the souls into items the windows open and close immeditly (was working fine)
zoro7070 is offline  
Old 05/01/2012, 19:09   #2
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Look how the name is added, based on that add the part for the id.
turk55 is offline  
Old 05/01/2012, 20:30   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Replace Name with UID its too much simple ..u couldnt even try to work on it

just Implenet it from any other working source
shadowman123 is offline  
Thanks
1 User
Old 05/01/2012, 20:37   #4
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
totally agreed with shadowman123
|xabi| is offline  
Old 05/01/2012, 21:23   #5
 
zoro7070's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 144
Received Thanks: 18
i want only to be sure that is the right way to make it
i mainly make that post for the second problem
thanks shadowman123 and |xabi| u know always Egyption like the easy way.
zoro7070 is offline  
Old 05/01/2012, 21:40   #6
 
×Holo's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 286
Received Thanks: 71
Quote:
Originally Posted by zoro7070
always Egyption like the easy way.
You shouldn't say..
×Holo is offline  
Thanks
2 Users
Old 05/01/2012, 21:55   #7
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by shadowman123 View Post
Replace Name with UID its too much simple ..u couldnt even try to work on it

just Implenet it from any other working source
No, that won't change anything but naming it different.
It won't affect anything else and he will probably end up making a new thread asking for help, instead of reading my reply...
turk55 is offline  
Old 05/02/2012, 00:26   #8
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by turk55 View Post
No, that won't change anything but naming it different.
It won't affect anything else and he will probably end up making a new thread asking for help, instead of reading my reply...
you miss understood what he want to do he said calling Monster using another Variable rather than name so UID or Mesh would be His Choise and i go for UID ...so Through monster UID Would work Efficiently

Quote:
Originally Posted by zoro7070 View Post
i want only to be sure that is the right way to make it
i mainly make that post for the second problem
thanks shadowman123 and |xabi| u know always Egyption like the easy way.
i dont like easy ways btw i like the most efficient way which create what i want
Beisde that No Egyptians only would do that every1 in this world would do the same

Your 2nd Problem ... try to check how it works in other sources and implement it in Your source
shadowman123 is offline  
Old 05/02/2012, 00:44   #9
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by shadowman123 View Post
you miss understood what he want to do he said calling Monster using another Variable rather than name so UID or Mesh would be His Choise and i go for UID ...so Through monster UID Would work Efficiently



i dont like easy ways btw i like the most efficient way which create what i want
Beisde that No Egyptians only would do that every1 in this world would do the same

Your 2nd Problem ... try to check how it works in other sources and implement it in Your source
As far as i understood he wants do to this basically
Code:
if (monster.id == 4152)
{
}
and that wont happen with what you said
turk55 is offline  
Old 05/02/2012, 01:29   #10
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by turk55 View Post
As far as i understood he wants do to this basically
Code:
if (monster.id == 4152)
{
}
and that wont happen with what you said
UID is Already Existed in The Database so he can Call it using UID
shadowman123 is offline  
Old 05/02/2012, 08:51   #11
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
You should never get a monster by its name anyway, unless it was for a cmd that GM's could use to spawn or something, but even then you shouldn't.

Checking up for an integer is much faster than checking up a string.

@OP
Your monster class must have something like Mob.ID instead Mob.Name. It would be weird if you only stored monsters by name in a dictionary.
I don't have a username is offline  
Thanks
2 Users
Old 05/02/2012, 16:04   #12
 
zoro7070's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 144
Received Thanks: 18
i make it by using the id thanks all
but i want the solve for the second problem
zoro7070 is offline  
Old 05/03/2012, 03:04   #13
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by I don't have a username View Post
You should never get a monster by its name anyway, unless it was for a cmd that GM's could use to spawn or something, but even then you shouldn't.

Checking up for an integer is much faster than checking up a string.

@OP
Your monster class must have something like Mob.ID instead Mob.Name. It would be weird if you only stored monsters by name in a dictionary.
y i shouldnt do this .. in the monstertable in impulse source it Checks the monster using its Name
shadowman123 is offline  
Old 05/06/2012, 15:16   #14
 
zoro7070's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 144
Received Thanks: 18
any idea about how to solve my second problem

that window open and close immediately
zoro7070 is offline  
Reply


Similar Threads Similar Threads
help me source 5517 plz :(
10/20/2012 - CO2 Private Server - 11 Replies
http://img5.pimp-my-profile.com/i57/5/9/30/f_a9b54 b44b2ca.jpg hello need help with that mistake a person who knows how repair it if you could tell me how to fix it I will appreciate endlessly only error is that I Please ask him to give me help with that 58 errors and error screen time GameState.cs 842 help me plz :(
SOURCE 5517 SHUTDOWN
12/21/2011 - CO2 Private Server - 5 Replies
----Exception message---- Source array was not long enough. Check srcIndex and length, and the array's lower bounds. ----End of exception message---- ----Stack trace---- at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Collections.Generic.Queue`1.SetCapacity(Int 32 capacity) at System.Collections.Generic.Queue`1.Enqueue(T item) at...



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


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.