|
You last visited: Today at 19:02
Advertisement
Arrow proficiency?
Discussion on Arrow proficiency? within the CO2 Private Server forum part of the Conquer Online 2 category.
05/15/2014, 10:18
|
#1
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
Arrow proficiency?
I just noticed, when i attack with bow and arrow, it gives prof on the bow but gives prof too on some unknown proficiency? -Any idea how to see that prof id so i can make it not to give prof on that or any other solution? -Here is pic:
|
|
|
05/15/2014, 10:29
|
#2
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
I would check your method that handles awarding proficiency experience. You're probably doing a check for a left hand weapon, as you would a trojan, then adding prof exp to that weapontype. Just make sure you do a check for trojan only if you are doing lefthand prof exp.
|
|
|
05/15/2014, 11:25
|
#3
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
Oh, good idea. I will try and post what i come up with. Thanks.
|
|
|
05/15/2014, 12:40
|
#4
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
Don't forget warrior's shield.
|
|
|
05/15/2014, 18:16
|
#5
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
I will do a:
Code:
if (Job == 45)
{
// Do nothing.
}
else
{
// Add prof. etc...
}
For the left hand.
|
|
|
05/15/2014, 18:41
|
#6
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Bows have proficiency too, do they not? I would process weapon proficiency by the item group id. The player may be a reborn using a bow, or an archer using another weapon type, so the job check would be invalid.
|
|
|
05/15/2014, 20:29
|
#7
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
I agree with the above, it needs to have a validity check against the item group (static id / 10000?).
|
|
|
05/16/2014, 00:30
|
#8
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
Fak im stuck, i don't know what kind of check to add here:
Code:
public void AddProfExp(ushort Wep, uint Amount)
{
if (Profs.Contains(Wep))
{
Prof P = (Prof)Profs[Wep];
if (P.Lvl < 20)
{
Profs.Remove(Wep);
Amount *= World.ProfExpRate;
P.Exp += Amount;
if (P.Exp >= Database.ProfExp[P.Lvl])
{
P.Lvl++;
P.Exp = 0;
MyClient.LocalMessage(2000, "Your proficiency level has increased.");
}
Profs.Add(Wep, P);
MyClient.AddSend(Packets.Prof(P));
}
}
|
|
|
05/16/2014, 00:37
|
#9
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
Quote:
Originally Posted by Wolfy.
Fak im stuck, i don't know what kind of check to add here:
Code:
public void AddProfExp(ushort Wep, uint Amount)
{
if (Profs.Contains(Wep))
{
Prof P = (Prof)Profs[Wep];
if (P.Lvl < 20)
{
Profs.Remove(Wep);
Amount *= World.ProfExpRate;
P.Exp += Amount;
if (P.Exp >= Database.ProfExp[P.Lvl])
{
P.Lvl++;
P.Exp = 0;
MyClient.LocalMessage(2000, "Your proficiency level has increased.");
}
Profs.Add(Wep, P);
MyClient.AddSend(Packets.Prof(P));
}
}
|
I would add a static list containing all the valid prof's based off their item group (first 3 digits).
I suppose you could also put it into a database table, but I see no need to spend the resources checking that table constantly considering those prof's should never change.
So it would be static id / 1000 (I have access to source now xD)
Then simply check if it is valid, then proceed.
And judging from your code below, it won't add a prof if they don't already have it?
|
|
|
05/16/2014, 00:47
|
#10
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Are you using NCS? In 2014?
|
|
|
05/16/2014, 02:00
|
#11
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,444
Received Thanks: 1,176
|
Quote:
Originally Posted by Aceking
I would add a static list containing all the valid prof's based off their item group (first 3 digits). [...]
|
Read-only dynamic list created when loading items would be better
|
|
|
05/16/2014, 13:45
|
#12
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
@Aceking, CptSky: Thanks gonna try and see what i come up with.
@InsomniacPro: Yeah.
|
|
|
05/16/2014, 22:17
|
#13
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Quote:
Originally Posted by Wolfy.
@InsomniacPro: Yeah.
|
Why? Dear ***, why?
|
|
|
05/17/2014, 00:25
|
#14
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
Don't ask plz, secret project very wow.
|
|
|
05/17/2014, 02:23
|
#15
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Quote:
Originally Posted by Wolfy.
Don't ask plz, secret project very wow. 
|
Don't take this the wrong way, but if you're using NCS, there's no wow involved.
|
|
|
 |
|
Similar Threads
|
[Release]Proficiency God
12/31/2010 - CO2 PServer Guides & Releases - 13 Replies
Here is my Proficiency God. It doesn't work like the real one in Conquer.
It's no matter what level the weapon's proficiency is at, you pay 20 Exp Balls to make it level 20.
Well here it is.
#region Proficiency God
case 7374:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can use the...
|
Arrow New Unrealskill v.19 Cracked Try Now [NO SPAM] Arrow USPSFPremiumCrack with S
11/16/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 2 Replies
Arrow USPSFPremiumCrack with SpeedHack Added 100% Workin Until Now..
1. Download the File below
2. Extract to desktop
3. Click injector and browes USPSFPremiumCrack.dll
4. guns.exe change it to specialforce.exe
5. Log in SF and Start
Menu for the hack!
|
[Help] Proficiency God
03/08/2010 - CO2 Private Server - 9 Replies
Hey guys i started a few hours ago on a code for Prof God. During the early stages .Arco helped me quite a bit but now i need some more help.
I just need someone to fix a line for me because it keeps coming up with errors.
Here is the code
if (Control == 4)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
...
|
PROFICIENCY BUG???
01/29/2010 - Conquer Online 2 - 7 Replies
i was checking my ninja sword proficiency, it was level 6 about 90% then when it leveled, it blew all the way up to level 14! the same thing happened to my club prof, only it leveld to lvl 13!! i dnt have socket in my gears.
|
All times are GMT +1. The time now is 19:02.
|
|