[req]code To Make Item Listen Skill.

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

Well I have a little problem I copid hoe sprite ,but all other things made myself at item3.cfg.

But then I noticed problem that Item ID = 900 won't listen short sword ,listens only axe : / what's very disturbing coz I have class system.

So I need ya guys help to make code for this problem.

I couln't do it -.-
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

You have to edit some parts of the item cfg file like this for the sprite and the item look when equiped:
Item  = 492 BloodRapier      1    8    19    2 5 2  2 5 2  5000    5      <span style='color:red'>1    6</span>  -25000    1100    <span style='color:red'>7</span>    3      0      0      0  0    9  1 9
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

No I made weapon with Hoe sprite All works exept that it listens wrong skill.
In iten cfg i put 7(short sword) ,but it still listen axe(11 i think)
.
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

If i remember well, that bug is client side only...

I know that's handled by these funcs : _iGetAttackType() and _iGetWeaponSkillType() in the Game.cpp in client source. Snoopy had to change it after we added StormBlade, Kloness Esterk, Lightning Blade and Dark Shadow Sword.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

Ok i've got so far that when i hit whit this weapon my Short Sword increases :S
But to use criticals I have to make my axe 100% : /
alastor
just visiting
Posts: 1
Joined: Sun Dec 28, 2003 1:40 pm

Post by alastor »

laizkloom wrote: Ok i've got so far that when i hit whit this weapon my Short Sword increases :S
But to use criticals I have to make my axe 100% : /
The skill SSN is coded server side, so when you set the skill type to 7 (short sword), the server will use the short sword skill. That's the same for the 3 cases ranged attack when you press ALT (crits).


But client side, the paks that are read like axes need axe skill 100% to enable crits and dash attacks. Hoe is read as an axe, that's your problem.
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

So I have to edit in game.ccp?:S
Bah so much trouble with one thing -.-
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

laizkloom wrote: So I have to edit in game.ccp?:S
Bah so much trouble with one thing -.-
yup, but the game.cpp from client source... so you need 3.51 client source or up to date coded 2.20 client and i don't know anyone released it.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

Ok close the topic pointless i'm not going to touch client source anyways -.-.
Post Reply