Jump to content
  • 0

How to make desperado skill can be used when using 1 hand gun?


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Also, when using 1 hand gun the damage will decrease by 40% where can I find it? TY!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You would need to head to your /db/(pre)re/skill_require_db.txt

// Structure of Database:

// SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,SPRateCost,ZenyCost,RequiredWeapons,RequiredAmmoTypes,RequiredAmmoAmount,RequiredState,SpiritSphereCost,RequiredItemID1,

RequiredItemAmount1,RequiredItemID2,RequiredItemAmount2,RequiredItemID3,RequiredItemAmount3,RequiredItemID4,RequiredItemAmount4,RequiredItemID5,

RequiredItemAmount5,RequiredItemID6,RequiredItemAmount6,RequiredItemID7,RequiredItemAmount7,RequiredItemID8,RequiredItemAmount8,RequiredItemID9,

RequiredItemAmount9,RequiredItemID10,RequiredItemAmount10

Change it accordingly.


516,0,0,32:34:36:38:40:42:44:46:48:50,0,0,0,17,3,10,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0	//GS_DESPERADO

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

You would need to head to your /db/(pre)re/skill_require_db.txt

// Structure of Database:

// SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,SPRateCost,ZenyCost,RequiredWeapons,RequiredAmmoTypes,RequiredAmmoAmount,RequiredState,SpiritSphereCost,RequiredItemID1,

RequiredItemAmount1,RequiredItemID2,RequiredItemAmount2,RequiredItemID3,RequiredItemAmount3,RequiredItemID4,RequiredItemAmount4,RequiredItemID5,

RequiredItemAmount5,RequiredItemID6,RequiredItemAmount6,RequiredItemID7,RequiredItemAmount7,RequiredItemID8,RequiredItemAmount8,RequiredItemID9,

RequiredItemAmount9,RequiredItemID10,RequiredItemAmount10

Change it accordingly.


516,0,0,32:34:36:38:40:42:44:46:48:50,0,0,0,17,3,10,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0	//GS_DESPERADO

Is this by bit? how come its 17? there's no guide in the skill_require.. Is there a way to reduce the damage of desperado skill when using 1 hand just by editing this line?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Required shall able be change in skill_require db and for damage reduction you need a add a check right hand flag and damage reduce in battle.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Required shall able be change in skill_require db and for damage reduction you need a add a check right hand flag and damage reduce in battle.c

What's the bit for the desperado skill to be able to use with 1 hand gun and as well as 2 hand gun? Thanks! 17+? or 13?

Edited by emong
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

17 is Revolvers.

For weapons, the types are:

0: bare fist

1: Daggers

2: One-handed swords

3: Two-handed swords

4: One-handed spears

5: Two-handed spears

6: One-handed axes

7: Two-handed axes

8: Maces

9: Unused

10: Staves

11: Bows

12: Knuckles

13: Musical Instruments

14: Whips

15: Books

16: Katars

17: Revolvers

18: Rifles

19: Gatling guns

20: Shotguns

21: Grenade launchers

22: Fuuma Shurikens

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/item_db.txt

You would need to head to your /db/(pre)re/skill_require_db.txt

// Structure of Database:

// SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,SPRateCost,ZenyCost,RequiredWeapons,RequiredAmmoTypes,RequiredAmmoAmount,RequiredState,SpiritSphereCost,RequiredItemID1,

RequiredItemAmount1,RequiredItemID2,RequiredItemAmount2,RequiredItemID3,RequiredItemAmount3,RequiredItemID4,RequiredItemAmount4,RequiredItemID5,

RequiredItemAmount5,RequiredItemID6,RequiredItemAmount6,RequiredItemID7,RequiredItemAmount7,RequiredItemID8,RequiredItemAmount8,RequiredItemID9,

RequiredItemAmount9,RequiredItemID10,RequiredItemAmount10

Change it accordingly.


516,0,0,32:34:36:38:40:42:44:46:48:50,0,0,0,17,3,10,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0	//GS_DESPERADO

Is this by bit? how come its 17? there's no guide in the skill_require.. Is there a way to reduce the damage of desperado skill when using 1 hand just by editing this line?

No. As mentioned above, you need to adjust the battle source for that part. skill_require_db.txt is just a file that holds all skills and their requirements such as you need to be standing on water for waterball to work, etc. Damage output is elsewhere.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

For damage reduction, you can try this in battle.c:

case GS_DESPERADO:
struct item *it = &sd->status.inventory[sd->equip_index[EQI_HAND_L]];
if ( !it ) { // Left Hand Empty
 skillratio += 40*(skill_lv-1);
 break;
}
skillratio += 50*(skill_lv-1);
break;

Edited by darristan
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

17 is Revolvers.

For weapons, the types are:

0: bare fist

1: Daggers

2: One-handed swords

3: Two-handed swords

4: One-handed spears

5: Two-handed spears

6: One-handed axes

7: Two-handed axes

8: Maces

9: Unused

10: Staves

11: Bows

12: Knuckles

13: Musical Instruments

14: Whips

15: Books

16: Katars

17: Revolvers

18: Rifles

19: Gatling guns

20: Shotguns

21: Grenade launchers

22: Fuuma Shurikens

https://rathena.svn....doc/item_db.txt

You would need to head to your /db/(pre)re/skill_require_db.txt

// Structure of Database:

// SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,SPRateCost,ZenyCost,RequiredWeapons,RequiredAmmoTypes,RequiredAmmoAmount,RequiredState,SpiritSphereCost,RequiredItemID1,

RequiredItemAmount1,RequiredItemID2,RequiredItemAmount2,RequiredItemID3,RequiredItemAmount3,RequiredItemID4,RequiredItemAmount4,RequiredItemID5,

RequiredItemAmount5,RequiredItemID6,RequiredItemAmount6,RequiredItemID7,RequiredItemAmount7,RequiredItemID8,RequiredItemAmount8,RequiredItemID9,

RequiredItemAmount9,RequiredItemID10,RequiredItemAmount10

Change it accordingly.


516,0,0,32:34:36:38:40:42:44:46:48:50,0,0,0,17,3,10,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0	//GS_DESPERADO

Is this by bit? how come its 17? there's no guide in the skill_require.. Is there a way to reduce the damage of desperado skill when using 1 hand just by editing this line?

No. As mentioned above, you need to adjust the battle source for that part. skill_require_db.txt is just a file that holds all skills and their requirements such as you need to be standing on water for waterball to work, etc. Damage output is elsewhere.

For damage reduction, you can try this in battle.c:

case GS_DESPERADO:
struct item *it = &sd->status.inventory[sd->equip_index[EQI_HAND_L]];
if ( !it ) { // Left Hand Empty
 skillratio += 40*(skill_lv-1);
 break;
}
skillratio += 50*(skill_lv-1);
break;

Thanks for the help guys!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

The damage snippet only check if Left Hand Empty, maybe when I get home I shall add another check for shield.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

The damage snippet only check if Left Hand Empty, maybe when I get home I shall add another check for shield.

any progress?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

this is cool. thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...