Quesooo Posted May 29, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share Posted May 29, 2019 Hi i would like to request a npc that can exchange an item to another item with specific amount, for example - 250 GC = Old Blue Box - 500 GC = Box of 10 Oridecon or Box of 10 Elunium - 750 GC= Old Purple Box and 2,500 GC = Old Card Album hopefully someone can make this thank you in advance. Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 29, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 29, 2019 You can just use Euphy's Quest shop and add those items with required item as GC. Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 29, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 29, 2019 3 hours ago, Hijirikawa said: You can just use Euphy's Quest shop and add those items with required item as GC. thank you for that but i don't need a quest npc just a normal npc that can exchange those items with GC Quote Link to comment Share on other sites More sharing options...
0 llchrisll Posted May 30, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted May 30, 2019 (edited) 1 hour ago, Quesooo said: thank you for that but i don't need a quest npc just a normal npc that can exchange those items with GC 5 Minutes scripting.... Untested tho: prontera,150,180,4 script GC Exchanger 100,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes "( ) = Price per Exchange"; next; for ( set .@m,0; .@m < getarraysize(.item); set .@m,.@m + 1) set .@g_menu$,.@g_menu$ + "- "+getitemname(.item[.@m])+" ("+.cost[.@m]+")" + ( (.item[.@m+1] != 0)?":":""); set .@g,select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s"."; mes "Is that correct?"; if(select("- Yes:- No") - 1) close; next; mes .n$; if(countitem(.exc_id) < .cost[.@g]) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: set .n$,"["+strnpcinfo(0)+"]"; //= Items: Old Blue Box, Oridecon Box (10pcs), Elunium Box (10pcs), Old Purple Box, Old Card Album setarray .item[0],603,13890,13889,618,616; setarray .cost[0],250,500,500,750,2500; set .exc_id,7517; // Gold Coin end; } Edited May 30, 2019 by llchrisll 1 Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 30, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 30, 2019 (edited) - itemshop -1,7517,603:250,13890:500,13889:500,618:750,616:2500 Utilizes the itemshop and does the same thing that you want it to do, exchange gold coins for certain items. Edited May 30, 2019 by Hijirikawa Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 3 hours ago, llchrisll said: 5 Minutes scripting.... Untested tho: prontera,150,180,4 script GC Exchanger 100,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes "( ) = Price per Exchange"; next; for ( set .@m,0; .@m < getarraysize(.item); set .@m,.@m + 1) set .@g_menu$,.@g_menu$ + "- "+getitemname(.item[.@m])+" ("+.cost[.@m]+")" + ( (.item[.@m+1] != 0)?":":""); set .@g,select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s"."; mes "Is that correct?"; if(select("- Yes:- No") - 1) close; next; mes .n$; if(countitem(.exc_id) < .cost[.@g]) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: set .n$,"["+strnpcinfo(0)+"]"; //= Items: Old Blue Box, Oridecon Box (10pcs), Elunium Box (10pcs), Old Purple Box, Old Card Album setarray .item[0],603,13890,13889,618,616; setarray .cost[0],250,500,500,750,2500; set .exc_id,7517; // Gold Coin end; } Thank you so much for this. i got an error Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 30, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 30, 2019 mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s"."; to mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s."; 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 8 minutes ago, Hijirikawa said: mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s"."; to mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s."; Thank you for this. the npc is now showing but i got an error again Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 30, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 30, 2019 Why do you have 0s at the end? 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 10 minutes ago, Hijirikawa said: Why do you have 0s at the end? 0s? i cant see it Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 30, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 30, 2019 (edited) Double check it. Line 12. Edited May 30, 2019 by Hijirikawa 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 15 minutes ago, Hijirikawa said: Double check it. Line 12. Weird, but on notepad++ don't have that 0s on line 12.but on the console that appears Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted May 30, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted May 30, 2019 prontera,150,180,4 script GC Exchanger 100,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes "( ) = Price per Exchange"; next; for ( set .@m,0; .@m < getarraysize(.item); set .@m,.@m + 1) set .@g_menu$,.@g_menu$ + "- "+getitemname(.item[.@m])+" ("+.cost[.@m]+")" + ( (.item[.@m+1] != 0)?":":""); set .@g,select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s."; mes "Is that correct?"; if(select("- Yes:- No") - 1) close; next; mes .n$; if(countitem(.exc_id) < .cost[.@g]) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: set .n$,"["+strnpcinfo(0)+"]"; //= Items: Old Blue Box, Oridecon Box (10pcs), Elunium Box (10pcs), Old Purple Box, Old Card Album setarray .item[0],603,13890,13889,618,616; setarray .cost[0],250,500,500,750,2500; set .exc_id,7517; // Gold Coin end; } 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 18 minutes ago, Hijirikawa said: Double check it. Line 12. i think i fixed it, the error change. Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 4 minutes ago, Hijirikawa said: prontera,150,180,4 script GC Exchanger 100,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes "( ) = Price per Exchange"; next; for ( set .@m,0; .@m < getarraysize(.item); set .@m,.@m + 1) set .@g_menu$,.@g_menu$ + "- "+getitemname(.item[.@m])+" ("+.cost[.@m]+")" + ( (.item[.@m+1] != 0)?":":""); set .@g,select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s."; mes "Is that correct?"; if(select("- Yes:- No") - 1) close; next; mes .n$; if(countitem(.exc_id) < .cost[.@g]) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: set .n$,"["+strnpcinfo(0)+"]"; //= Items: Old Blue Box, Oridecon Box (10pcs), Elunium Box (10pcs), Old Purple Box, Old Card Album setarray .item[0],603,13890,13889,618,616; setarray .cost[0],250,500,500,750,2500; set .exc_id,7517; // Gold Coin end; } Thank you so much its working like a charm awesome Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 last thing when i talk to npc and exchange the GC to 250 old blue box. the npc didn't show how many GC you have on the first menu and how many GC will be exchange for those OBB i have a total of 1000 GC on my bag Quote Link to comment Share on other sites More sharing options...
0 Royr Posted May 30, 2019 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 90 Reputation: 34 Joined: 10/01/18 Last Seen: January 9, 2023 Share Posted May 30, 2019 (edited) 6 minutes ago, Quesooo said: last thing when i talk to npc and exchange the GC to 250 old blue box. the npc didn't show how many GC you have on the first menu and how many GC will be exchange for those OBB i have a total of 1000 GC on my bag Try this: prontera,150,180,4 script Exchanger 4_F_BRZ_WOMAN,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes " "; mes "Currency: "+ getitemname(.exc_id); next; for( .@m = 0; .@m < getarraysize(.item); .@m ++ ) .@g_menu$ = .@g_menu$ + "- "+ getitemname(.item[.@m]) +" ("+ .cost[.@m] +") "+ ( (.item[.@m+1] != 0)?":":""); .@g = select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+ getitemname(.item[.@g]) +" for the price of "+ .cost[.@g] +" "+ getitemname(.exc_id) +"s"; mes "Is that correct?"; next; if( select("- Yes:- No" ) - 1) close; mes .n$; if( countitem(.exc_id) < .cost[.@g] ) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: .n$ = "[ "+ strnpcinfo(0) +" ]"; .exc_id = 501; setarray .item[0],603,13890,13889,618,616; setarray .cost[0],1,1,1,1,1; end; } Edited May 30, 2019 by Royr 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 11 minutes ago, Royr said: Try this: prontera,150,180,4 script Exchanger 4_F_BRZ_WOMAN,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes " "; mes "Currency: "+ getitemname(.exc_id); next; for( .@m = 0; .@m < getarraysize(.item); .@m ++ ) .@g_menu$ = .@g_menu$ + "- "+ getitemname(.item[.@m]) +" ("+ .cost[.@m] +") "+ ( (.item[.@m+1] != 0)?":":""); .@g = select(.@g_menu$) - 1; mes .n$; mes "You have chosen "+ getitemname(.item[.@g]) +" for the price of "+ .cost[.@g] +" "+ getitemname(.exc_id) +"s"; mes "Is that correct?"; next; if( select("- Yes:- No" ) - 1) close; mes .n$; if( countitem(.exc_id) < .cost[.@g] ) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[.@g],1; delitem .exc_id,.cost[.@g]; mes "Exchange complete."; close; OnInit: .n$ = "[ "+ strnpcinfo(0) +" ]"; .exc_id = 501; setarray .item[0],603,13890,13889,618,616; setarray .cost[0],1,1,1,1,1; end; } awesome thank you its working perfectly Quote Link to comment Share on other sites More sharing options...
0 llchrisll Posted May 30, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted May 30, 2019 What small typos can cause issues xD. Sorry about that. Was tired also when I quickly wrote it. Thanks guys for fixing it. Regards, Chris 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted May 30, 2019 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted May 30, 2019 21 minutes ago, llchrisll said: What small typos can cause issues xD. Sorry about that. Was tired also when I quickly wrote it. Thanks guys for fixing it. Regards, Chris thank you so much too Quote Link to comment Share on other sites More sharing options...
0 llchrisll Posted May 30, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted May 30, 2019 You're welcome :). Quote Link to comment Share on other sites More sharing options...
Question
Quesooo
Hi i would like to request a npc that can exchange an item to another item with specific amount, for example
- 250 GC = Old Blue Box
- 500 GC = Box of 10 Oridecon or Box of 10 Elunium
- 750 GC= Old Purple Box and 2,500 GC = Old Card Album
hopefully someone can make this
thank you in advance.
Link to comment
Share on other sites
20 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.