Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:12

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

Advertisement



Define some things in Character.cs

Discussion on Define some things in Character.cs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 10/13/2010, 04:19   #16
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,347
I'm going to skip over this debate entirely.


#1: Why are you attempting to do item usage inside the character.cs? This belongs in with your other item usage as it will not be called when you use the item unless you seriously modify your existing codes!

#2: GC refers to game client usually (THIS IS NOT fixed, it's like saying int I = 0; YOu could put anything in place of I... but it holds the value of an int. Likewise GC is generally used to hold the GameClient value.

Game Client in lotf contains an instance of the CHARACTER class which is initialized on login (look in your packet processing and chances are when you load the character from database/files you are doing something like

GC.MyChar = new Character();


So if you are already inside your character class you are not going to have access to things like GC or GC.MyChar, you are already there!


So what do you want this to do exactly? YOu want it to pop up a msg when you login? You want it to pop up a msg when you use the item?... what?


Assuming you want it to happen when you use the item... Simply go to your item usage handling and do a case number for the static id of the item you are using. Then set your client last used npc and send the packet.... shouldn't be too hard.



pro4never is offline  
Thanks
1 User
Old 10/13/2010, 04:56   #17
 
elite*gold: 0
Join Date: Oct 2010
Posts: 21
Received Thanks: 16
Quote:
Originally Posted by pro4never View Post
I'm going to skip over this debate entirely.


#1: Why are you attempting to do item usage inside the character.cs? This belongs in with your other item usage as it will not be called when you use the item unless you seriously modify your existing codes!

#2: GC refers to game client usually (THIS IS NOT fixed, it's like saying int I = 0; YOu could put anything in place of I... but it holds the value of an int. Likewise GC is generally used to hold the GameClient value.

Game Client in lotf contains an instance of the CHARACTER class which is initialized on login (look in your packet processing and chances are when you load the character from database/files you are doing something like

GC.MyChar = new Character();


So if you are already inside your character class you are not going to have access to things like GC or GC.MyChar, you are already there!


So what do you want this to do exactly? YOu want it to pop up a msg when you login? You want it to pop up a msg when you use the item?... what?


Assuming you want it to happen when you use the item... Simply go to your item usage handling and do a case number for the static id of the item you are using. Then set your client last used npc and send the packet.... shouldn't be too hard.
He is kind of wanting to use this item like a NPC. I'm having a hard time understaing this aswell. I've never seen this done before.

What he is trying to do is have a pop-up message and have the item talk, there is options you can choose from. That's where I don't get it.

-Edit-

If I was him I would just make 2 seperate Items.


-diRt is offline  
Old 10/13/2010, 05:03   #18
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,347
Ahh well it looks like he's already been answered but all you do is make a npc like normal with w/e ID you want then on using the item you set the last used npc to it and send the initial npc packet to the client.
pro4never is offline  
Old 10/13/2010, 05:06   #19
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,276
Quote:
Originally Posted by -diRt View Post
I've never seen this done before.
Obviously you have cause you thanked+used my magic gate release


Arcо is offline  
Old 10/13/2010, 05:21   #20
 
elite*gold: 0
Join Date: Oct 2010
Posts: 21
Received Thanks: 16
Quote:
Originally Posted by Аrco View Post
Obviously you have cause you thanked+used my magic gate release
I've never used your magic gate release
-diRt is offline  
Old 10/13/2010, 05:22   #21
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,276
Quote:
Originally Posted by -diRt View Post
I've never used your magic gate release
Alright I'll correct myself, you've seen+thanked it
Arcо is offline  
Old 10/13/2010, 14:45   #22
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
x10 facepalms
†he Knight is offline  
Old 10/13/2010, 15:00   #23
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Solved.


copz1337 is offline  
Reply



« [HELP] PLz Random Disconnection | [5165] StaminaBug »

Similar Threads
Looking for some help on define eud star
09/21/2010 - EO PServer Hosting - 11 Replies
hey all..can some one show where did i can define my eudemon star in cq_eudemon_rbn_rqr ? example for reborn rate.. on my server eudemon below 100* eudemon will require 30* per compose(this is normal on cq_eudemon_rbn_rqr sacrifice_starlev) so what im not understand here.. where the point for 100*? coz i make the new line on it that will require 40* eudemon for compose..but my 100* eudemon change the require star to 40* and not 30* anymore..where should i define this? its really make...
define.item.h items fragen
05/23/2010 - Flyff Private Server - 0 Replies
ich wollte fragen wie die define item von spross Gspross Sspross Level Box
Define Skills
08/17/2009 - CO2 Private Server - 6 Replies
SkillAttributes = new ushort { 2, 0, 0, 505, 0, 0 }; what do each numbers represent ive never really messed with skills beofre and it would be great if someone could help me out on this
how to modify the eud star rank limit define in MSG
03/10/2009 - EO PServer Hosting - 8 Replies
today i will show you how to modify the edu star rank limit in MSG,you can make this via the MSG and the OD tool i had uploaded on another thread click here to read it pic first! http://content.imagesocket.com/images/11111af9.jp g find this address: OO5BF668 3a98 is just the star cllout requie define ,i had modify it to 150 star number as my another thread! but when the edu star over the 85 star ,we still cant see the edu's rank , how to...
[Tutorial] Define your chams
10/27/2008 - WarRock - 4 Replies
Credits to LilCrazed Sorry if it has been posted i searched and didn't find it In d3d8dev.cpp under the includes put #define Player (m_Stride == 44) #define Walls (m_Stride == blah) #define Flags (NumVertices == blah)



All times are GMT +2. The time now is 16:12.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.