Meister Posted October 22, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted October 22, 2012 Also, when using 1 hand gun the damage will decrease by 40% where can I find it? TY! Quote Link to comment Share on other sites More sharing options...
Mystery Posted October 22, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted October 22, 2012 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 Quote Link to comment Share on other sites More sharing options...
Meister Posted October 22, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted October 22, 2012 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? Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 22, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 22, 2012 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 Quote Link to comment Share on other sites More sharing options...
Meister Posted October 22, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted October 22, 2012 (edited) 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 October 22, 2012 by emong Quote Link to comment Share on other sites More sharing options...
Mystery Posted October 22, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted October 22, 2012 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. 1 Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 22, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 22, 2012 (edited) 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 October 22, 2012 by darristan 1 Quote Link to comment Share on other sites More sharing options...
Meister Posted October 23, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted October 23, 2012 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! Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 23, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 23, 2012 The damage snippet only check if Left Hand Empty, maybe when I get home I shall add another check for shield. Quote Link to comment Share on other sites More sharing options...
Meister Posted October 25, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted October 25, 2012 The damage snippet only check if Left Hand Empty, maybe when I get home I shall add another check for shield. any progress? Quote Link to comment Share on other sites More sharing options...
Rebel Posted October 25, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share Posted October 25, 2012 this is cool. thanks! Quote Link to comment Share on other sites More sharing options...
Question
Meister
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.