mathlister Posted November 8, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 2 Joined: 06/10/16 Last Seen: February 27, 2024 Share Posted November 8, 2019 As title says. i wanna Ask u guys how can i make This Arrow >>> Link << And This Bullet >>> Link <<< To be Unlimited... And just for this Arrow/Bullet Only.. but All the Other Arrow/Bullet still be like normal consume... 1750,Arrow,Arrow,10,1,,1,25,,,,0x000A1848,7,2,32768,,1,,1,{},{},{} 13200,Bullet,Bullet,10,1,,2,10,,,,0x41000000,7,2,32768,,1,,3,{},{},{} Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted November 8, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 7 hours ago Share Posted November 8, 2019 https://github.com/rathena/rathena/blob/34e5f537b73440589ba50532357b3bb7c9977cc5/conf/battle/battle.conf#L137-L143 Quote Link to comment Share on other sites More sharing options...
0 mathlister Posted November 8, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 2 Joined: 06/10/16 Last Seen: February 27, 2024 Author Share Posted November 8, 2019 // Are arrows/ammo consumed when used on a bow/gun? // 0 = No // 1 = Yes // 2 = Yes even for skills that do not specify arrow consumption when said // skill is weapon-based and used with ranged weapons (auto-guesses which // skills should consume ammo when it's acquired via a card or plagiarize) arrow_decrement: 1 yeah i know this type.. but i just wanna make those arrow and bullet Only... so other Arrow still need to be come like normal.. 1705 = Unlimite for silver,fire,wind,cursed arrow will be cosume.. if the user/player not carry enoghf of it .. its will be dead end for them.. so need to head back to town to buy more.. im searching for that kinda stuff Quote Link to comment Share on other sites More sharing options...
0 mathlister Posted November 8, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 2 Joined: 06/10/16 Last Seen: February 27, 2024 Author Share Posted November 8, 2019 Sorry for the Bump.. Need Help so much..... Quote Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted November 8, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted November 8, 2019 You will not get what you are asking for. This is a source configuration change and the configuration there is not DB query to see which item should be consumed or not. Verification is dad by TYPE of consumer ammunition. What you can try to do is something simple like. If the ammo has ID x, y, z ... getitem <x, y, z>, amount used; 1 Quote Link to comment Share on other sites More sharing options...
0 mathlister Posted November 9, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 2 Joined: 06/10/16 Last Seen: February 27, 2024 Author Share Posted November 9, 2019 Yeah i know.. but i want to make if that Arrow has been use and its keep in iventory so its will be unlimited.. is there any callfunc can do that? If the ammo has ID x, y, z ... getitem <x, y, z>, amount used; <<<< like that u said earlier.. Quote Link to comment Share on other sites More sharing options...
0 3TAJIOH Posted April 10, 2020 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 73 Reputation: 1 Joined: 11/27/18 Last Seen: August 4, 2024 Share Posted April 10, 2020 Hello. Solved this problem? @mathlister Quote Link to comment Share on other sites More sharing options...
0 Akkarin Posted April 10, 2020 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share Posted April 10, 2020 You can go into /src/ and find the function where arrows are reduced and just add an if-statement to check for the used arrow/bullet item IDs - if the ID is not one of those then continue to remove item, if it is, don't remove the item. 1 Quote Link to comment Share on other sites More sharing options...
0 laowang231 Posted August 27, 2022 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 3 Reputation: 0 Joined: 07/28/22 Last Seen: April 3 Share Posted August 27, 2022 you can go to src/map/battle.cpp and find "if (sd->equip_index[EQI_AMMO] >= 0" which is about at line 2470. just add a judge with pc_isequipped function. it could be: if (sd->equip_index[EQI_AMMO] >= 0 && !pc_isequipped(sd,<your specified itemid>)) //Qty check should have been done in skill_check_condition pc_delitem(sd,sd->equip_index[EQI_AMMO],qty,0,1,LOG_TYPE_CONSUME); recompile and done. I tried, it's working. Quote Link to comment Share on other sites More sharing options...
Question
mathlister
As title says.
i wanna Ask u guys how can i make This Arrow >>> Link << And This Bullet >>> Link <<<
To be Unlimited... And just for this Arrow/Bullet Only.. but All the Other Arrow/Bullet still be like normal consume...
1750,Arrow,Arrow,10,1,,1,25,,,,0x000A1848,7,2,32768,,1,,1,{},{},{}
13200,Bullet,Bullet,10,1,,2,10,,,,0x41000000,7,2,32768,,1,,3,{},{},{}
Link to comment
Share on other sites
8 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.