ScarrFace Posted November 9, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Share Posted November 9, 2019 (edited) I'm looking for item trader/exchanger with success/failed rate and multiple item list ex: poring card 10 pcs trade to poporing card 1 pc with 50% success rate poporing card 5 pcs trade to marin card 1 pc with 25% success rate and so on. Edited November 9, 2019 by ScarrFace Quote Link to comment Share on other sites More sharing options...
0 Mabuhay Posted November 10, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted November 10, 2019 (edited) item_trader.txt NOTE : Fixed some issues on 2nd item options being null item_trader.txt NOTE : Re-Fixed some issues on 2nd item options being null 22 hours ago, ScarrFace said: I'm looking for item trader/exchanger with success/failed rate and multiple item list ex: poring card 10 pcs trade to poporing card 1 pc with 50% success rate poporing card 5 pcs trade to marin card 1 pc with 25% success rate and so on. Enjoy. I will be posting this soon. I really hope mods are active. I still have 2 pending free scripts to be approved. Edited November 10, 2019 by Mabuhay Quote Link to comment Share on other sites More sharing options...
0 Gouki Posted January 19, 2021 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Share Posted January 19, 2021 On 11/10/2019 at 9:16 PM, Mabuhay said: item_trader.txt 1.19 kB · 8 downloads NOTE : Fixed some issues on 2nd item options being null item_trader.txt 1.19 kB · 41 downloads NOTE : Re-Fixed some issues on 2nd item options being null Enjoy. I will be posting this soon. I really hope mods are active. I still have 2 pending free scripts to be approved. can we add zeny as a requirement? Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted August 15, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 21 hours ago Share Posted August 15, 2023 On 11/10/2019 at 9:16 PM, Mabuhay said: item_trader.txt 1.19 kB · 34 downloads NOTE : Fixed some issues on 2nd item options being null item_trader.txt 1.19 kB · 93 downloads NOTE : Re-Fixed some issues on 2nd item options being null Enjoy. I will be posting this soon. I really hope mods are active. I still have 2 pending free scripts to be approved. is it possible to add zeny requirements in this script? Quote Link to comment Share on other sites More sharing options...
-1 ScarrFace Posted November 10, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Author Share Posted November 10, 2019 (edited) 2 hours ago, Mabuhay said: Enjoy. item_trader.txt 1.19 kB · 2 downloads I will be posting this soon. I really hope mods are active. I still have 2 pending free scripts to be approved. hello thank you this is what im looking for. but there's a problem in the script its null item when choosing the 2nd option and the 3rd one. Edited November 10, 2019 by ScarrFace Quote Link to comment Share on other sites More sharing options...
-1 Mabuhay Posted November 10, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted November 10, 2019 5 minutes ago, ScarrFace said: its null item when choosing the 2nd option and the 3rd one. my bad.. here is the update : find .@s = select(.@menu$)-1; change to .@s = select(.@menu$)-1*5; or redownload my previous post. Quote Link to comment Share on other sites More sharing options...
-1 ScarrFace Posted November 10, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Author Share Posted November 10, 2019 37 minutes ago, Mabuhay said: my bad.. here is the update : find .@s = select(.@menu$)-1; change to .@s = select(.@menu$)-1*5; or redownload my previous post. got an error [Warning]: script:getelementofarray: index out of range (-3) [Debug]: Data: variable name='.@trade' index=0 after i click the menu nothing happen and got stuck. Quote Link to comment Share on other sites More sharing options...
-1 Mabuhay Posted November 10, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted November 10, 2019 2 hours ago, ScarrFace said: got an error [Warning]: script:getelementofarray: index out of range (-3) [Debug]: Data: variable name='.@trade' index=0 after i click the menu nothing happen and got stuck. err here is how.. find .@s = select(.@menu$)-1*5; replace .@sel = select(.@menu$)-1; .@s = .@sel * 5; Quote Link to comment Share on other sites More sharing options...
-1 ScarrFace Posted November 10, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Author Share Posted November 10, 2019 5 hours ago, Mabuhay said: err here is how.. find .@s = select(.@menu$)-1*5; replace .@sel = select(.@menu$)-1; .@s = .@sel * 5; thank you so much. Quote Link to comment Share on other sites More sharing options...
-2 Gladius Posted November 9, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: April 16 Share Posted November 9, 2019 (edited) I made a simple and practical version. If you search there are better ways to do this. //================================================== // _____ _ _ _ // / ____| | | (_) // | | __| | __ _ __| |_ _ _ ___ // | | |_ | |/ _` |/ _` | | | | / __| // | |__| | | (_| | (_| | | |_| \__ \ // \_____|_|\__,_|\__,_|_|\__,_|___/ // //===== rAthena Script =============================== //= Exchange Poring Card for Faber Card //===== Créditos: ==================================== //= Gladius //===== NPC Version: ================================= //== 1.0 //==================================================== prontera,155,178,5 script Item Changer 61,{ set .ns$,"^00B2EE[Item Changer]^000000"; // Nome do NPC set .@poring, 4001; // Poring Card mes .ns$; mes "Do you want to exchange a poring card for a faber card? Has 25% success."; switch(select("^3CB371[»]^000000 Exchange Poring Card","^ff0000[»]^000000 No")){ case 1: next; if(countitem(.@poring) < 1){ mes .ns$; mes "You don't have "+getitemname(.@poring)+" for exchange."; close; } delitem .@poring,1; switch( rand(1,4) ){ case 1: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 2: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 3: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 4: mes .ns$; mes "I'm sorry but I failed to exchange conversion."; close; } } } I hope it helped you. Edited November 9, 2019 by Gladius Quote Link to comment Share on other sites More sharing options...
-2 ScarrFace Posted November 10, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Author Share Posted November 10, 2019 4 hours ago, Gladius said: I made a simple and practical version. If you search there are better ways to do this. //================================================== // _____ _ _ _ // / ____| | | (_) // | | __| | __ _ __| |_ _ _ ___ // | | |_ | |/ _` |/ _` | | | | / __| // | |__| | | (_| | (_| | | |_| \__ \ // \_____|_|\__,_|\__,_|_|\__,_|___/ // //===== rAthena Script =============================== //= Exchange Poring Card for Faber Card //===== Créditos: ==================================== //= Gladius //===== NPC Version: ================================= //== 1.0 //==================================================== prontera,155,178,5 script Item Changer 61,{ set .ns$,"^00B2EE[Item Changer]^000000"; // Nome do NPC set .@poring, 4001; // Poring Card mes .ns$; mes "Do you want to exchange a poring card for a faber card? Has 25% success."; switch(select("^3CB371[»]^000000 Exchange Poring Card","^ff0000[»]^000000 No")){ case 1: next; if(countitem(.@poring) < 1){ mes .ns$; mes "You don't have "+getitemname(.@poring)+" for exchange."; close; } delitem .@poring,1; switch( rand(1,4) ){ case 1: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 2: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 3: getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; case 4: mes .ns$; mes "I'm sorry but I failed to exchange conversion."; close; } } } I hope it helped you. success rate not working. Quote Link to comment Share on other sites More sharing options...
-2 Gladius Posted November 10, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: April 16 Share Posted November 10, 2019 12 minutes ago, ScarrFace said: success rate not working. Whats the problem? Quote Link to comment Share on other sites More sharing options...
-2 ScarrFace Posted November 10, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Author Share Posted November 10, 2019 On 11/10/2019 at 12:31 PM, Gladius said: Whats the problem? Always 100% success in trading Also theres no rate config in the script. You just declare rand function for case Quote Link to comment Share on other sites More sharing options...
-2 Gladius Posted November 10, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: April 16 Share Posted November 10, 2019 (edited) Fix //====================================== // _____ _ _ _ // / ____| | | (_) // | | __| | __ _ __| |_ _ _ ___ // | | |_ | |/ _` |/ _` | | | | / __| // | |__| | | (_| | (_| | | |_| \__ \ // \_____|_|\__,_|\__,_|_|\__,_|___/ // //===== rAthena Script ===================== //= Exchange Poring Card for Faber Card //===== Créditos: ========================= //= Gladius //===== NPC Version: ======================= //== 1.0 //====================================== prontera,155,178,5 script Item Changer 61,{ set .ns$,"^00B2EE[Item Changer]^000000"; set .@poring, 4001; set .@chance, 30; mes .ns$; mes "Do you want to exchange a poring card for a faber card? Has 25% success."; switch(select("^3CB371[»]^000000 Exchange Poring Card","^ff0000[»]^000000 No")){ case 1: next; if(countitem(.@poring) < 1){ mes .ns$; mes "You don't have "+getitemname(.@poring)+" for exchange."; close; } delitem .@poring,1; if(.@chance >= rand(100)){ getitem 4002,1; mes .ns$; mes "The exchange conversion was a success!"; close; } mes .ns$; mes "I'm sorry but I failed to exchange conversion."; close; case 2: close; } } enjoy Edited November 10, 2019 by Gladius Quote Link to comment Share on other sites More sharing options...
Question
ScarrFace
I'm looking for item trader/exchanger with success/failed rate and multiple item list
ex:
poring card 10 pcs trade to poporing card 1 pc with 50% success rate
poporing card 5 pcs trade to marin card 1 pc with 25% success rate
and so on.
Edited by ScarrFaceLink to comment
Share on other sites
13 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.