Register for your free account! | Forgot your password?

You last visited: Today at 20:04

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

Advertisement



Weapon Skill Question

Discussion on Weapon Skill Question within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Question Weapon Skill Question

Well, i give up, i tried coding the weapon skills in my server (im using PowerSource).
I found where the skills were but for some reason, i can't get the skill to level.

Below is the code i used. I'm using Speedgun for spear first. I found the skill
type (i'd like to thank the maker of PowerSource for including the skill ids in his/her source)
and i searched my database for the weapon type.



Quote:
if (WepType == 560 && !Use)
{
if (Skills.Contains((short)1260))
{
byte SkillLvl = (byte)Skills[(short)1260];
byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)7020][(int)SkillLvl][5];
if (Other.ChanceSuccess(Chance))
{
UseSkill(1260, 0, 0, 0);
Use = true;
}
}
}
I think i saw a guide on how to get the weapon skills working, but that's no fun
if you don't try, so i decided to try myself.

Thanks in advanced.
Exia13 is offline  
Old 10/21/2008, 14:35   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by Exia13 View Post
Well, i give up, i tried coding the weapon skills in my server (im using PowerSource).
I found where the skills were but for some reason, i can't get the skill to level.

Below is the code i used. I'm using Speedgun for spear first. I found the skill
type (i'd like to thank the maker of PowerSource for including the skill ids in his/her source)
and i searched my database for the weapon type.





I think i saw a guide on how to get the weapon skills working, but that's no fun
if you don't try, so i decided to try myself.

Thanks in advanced.
Its in there byte SkillLvl = whatever,

In LOTF(PowerSource is LOTF) each character has two hashtables for skills, one with skillID and level(which you use), and one with SkillID and exp.
It's just accessing the Skills Hashtable with the Key of the skillID, so it'll output the value, which is the level.
tao4229 is offline  
Old 10/21/2008, 15:01   #3
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Still not too sure. I tried changing some values, but it still doesn't level up. I can see the skill working but it wont get any exp. I even changed the skill types to see if that was the problem because in : [(int)SkillLvl][5]; the 5 stands for a RangeSectorSkilRanged Attack, so i changed it a few times with the same result.
Exia13 is offline  
Old 10/21/2008, 15:10   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by Exia13 View Post
Still not too sure. I tried changing some values, but it still doesn't level up. I can see the skill working but it wont get any exp. I even changed the skill types to see if that was the problem because in : [(int)SkillLvl][5]; the 5 stands for a RangeSectorSkilRanged Attack, so i changed it a few times with the same result.
OH "skill to level.", maybe I do need to wear my glasses when I'm on the computer >_>.

My bad, ignore the other post, mess with Character.AddSkillExp()
tao4229 is offline  
Old 10/21/2008, 15:23   #5
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
>_< For some dumb reason, the i can't search for anything in the source. I think find has a problem. This is gonna take some time.
Exia13 is offline  
Old 10/21/2008, 17:09   #6

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by Exia13 View Post
>_< For some dumb reason, the i can't search for anything in the source. I think find has a problem. This is gonna take some time.
if you want to search just press Ctrl + F and "look in entire solution"
Kiyono is offline  
Old 10/21/2008, 17:12   #7
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Don't worry, i got it. But still can't get it to work, not even the guide is helping.
Exia13 is offline  
Old 10/21/2008, 21:46   #8
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
First things first, SpeedGun is the same skill type as FastBlade and ScentSword (straight line).
If you put type 5 in the SkillAttributes array for SpeedGun, change it to 4 and it should be handled by UseSkill.
nTL3fTy is offline  
Old 10/21/2008, 22:14   #9
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
where you see the "7020" change it to 1260 O.O

and you'll have to add the skill into the externalDatabase if you didn't do so, when your done just build the externaldatabase and debug the whole solution....and you should be good O.O
BlooD-BoY is offline  
Old 10/22/2008, 00:47   #10
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
man yall are so smart...
demonscim is offline  
Old 10/22/2008, 05:27   #11
 
elite*gold: 0
Join Date: Sep 2008
Posts: 7
Received Thanks: 0
it do not working??????????????????
shinichi79 is offline  
Reply


Similar Threads Similar Threads
Weapon Skill Bug, Help me!!
06/21/2009 - CO2 Private Server - 1 Replies
On my binary 5065 server i was changing percent rates of magictype and logged on things worked fine but i noticed that if you buy a skill such as rage u can learn it before u have ur weapon skill to the requirement. Then when you go to attack with the weapon it uses the skill every single time and people cant level tehre weapon prof. What could be the problem. If you know more information please reply back.
All weapon skill up!
12/29/2008 - WoW Exploits, Hacks, Tools & Macros - 14 Replies
Scourge Event, Argent Dawn is everywhere. The Argent Dawn NPCs are level 10. As Level 70 youll get them down very quick. But wait - they wont die! And since theyre doing Level 10 damage you can easily bringt up your weapon skills. Alliance: Look for Lieutenant Orrin. Open your reputation tab, look for Argent Dawn and check "At war".
[Help] Skill+weapon adding
12/24/2008 - CO2 Private Server - 13 Replies
ok can someone help me add new skills and Weapons??? add me on MSN att [email protected] Ver much apreciated
Unlearn weapon skill.
09/08/2008 - World of Warcraft - 3 Replies
On Wowscape my skill on weapon and defence is 95 / 95 max . Is there way to unlearn weapons skills and learn it again . Or something like that ?
Low Lvl EZ Weapon Skill Ups
02/03/2007 - WoW Exploits, Hacks, Tools & Macros - 2 Replies
There is a nice mob in eversong woods (just south of silvermoon city) for when you need to lvl up a new weapon, like when you're lvl 20. Useful for BE paladins especially for when you get your new polearm. Basically, it's a lvl 6 Plaguebone Pillager that has an instant respawn. You just stand in one spot and repeatedly right click until your weapon is at the skill lvl you want. He wanders so you might have to kill a few to figure out which one it is, but his respawn point is 50,57 in the middle...



All times are GMT +1. The time now is 20:05.


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.