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.
#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.