mightyryan Posted August 31, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 69 Reputation: 2 Joined: 10/03/12 Last Seen: November 4, 2015 Share Posted August 31, 2015 (edited) Hello I have problem with regards to buying items through NPC ex. When I buy 1 Magnifying Glass which cost 40z, it will remove 80z to the player who is buying... (same with other items,armors). I don't see any error with my map-server. is this Src related problem? Please I need help Edited August 31, 2015 by mightyryan Quote Link to comment Share on other sites More sharing options...
GreenMagic793 Posted August 31, 2015 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 157 Reputation: 18 Joined: 08/18/15 Last Seen: April 5, 2023 Share Posted August 31, 2015 Can we see your code? This is the only real way we can tell what the issue is. I highly doubt this is source related. Most likely, there's something slightly wrong with your code where the NPC is performing the same action twice, in this case- removing zeny. Try my code and see if it works for you. If so, you're welcome to simply change the NPC name/text and item/zeny numbers and use it as your own. mes "[Tester]"; mes "I'm the Tester. Let's test this zeny script! What would you like to buy?"; next; menu "1 Test Item Please.",B_1,"Quit.",B_2; next; B_1: if (Zeny > 99) goto A_2; mes "[Tester]"; mes "Sorry, you don't have enough zeny to purchase the test item!"; close; A_2: mes "[Tester]"; mes "Here is your item!"; getitem 1074,1; set Zeny,Zeny-100; close; B_2: close; } } Quote Link to comment Share on other sites More sharing options...
mightyryan Posted September 1, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 69 Reputation: 2 Joined: 10/03/12 Last Seen: November 4, 2015 Author Share Posted September 1, 2015 Hi sorry for the late reply, I tested this script and it works fine by reducing -100 zeny and getting the item 1074. I also tested vending of a player and it also works fine the problem is when a player buy something to a tool dealer / armor dealer (Shop NPCs) it reduces 2x of his zeny. any ideas how to fix this? Quote Link to comment Share on other sites More sharing options...
GreenMagic793 Posted September 1, 2015 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 157 Reputation: 18 Joined: 08/18/15 Last Seen: April 5, 2023 Share Posted September 1, 2015 Is it every dealer or just a particular dealer? It could be any number of different things, so we'd have to narrow that down. Quote Link to comment Share on other sites More sharing options...
FXFreitas Posted September 1, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 354 Reputation: 110 Joined: 01/30/13 Last Seen: 19 hours ago Share Posted September 1, 2015 Hi sorry for the late reply, I tested this script and it works fine by reducing -100 zeny and getting the item 1074. I also tested vending of a player and it also works fine the problem is when a player buy something to a tool dealer / armor dealer (Shop NPCs) it reduces 2x of his zeny. any ideas how to fix this? These are custom NPC Shops or oficial shop? If are custom you can post here the script? Quote Link to comment Share on other sites More sharing options...
mightyryan Posted September 1, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 69 Reputation: 2 Joined: 10/03/12 Last Seen: November 4, 2015 Author Share Posted September 1, 2015 these are all official shop, anyway it took me 3 days to figure out but can't find any answer so maybe ill just change my emulator to a newer one. thanks for the help everyone! Quote Link to comment Share on other sites More sharing options...
Question
mightyryan
Hello I have problem with regards to buying items through NPC
ex. When I buy 1 Magnifying Glass which cost 40z, it will remove 80z to the player who is buying...
(same with other items,armors).
I don't see any error with my map-server.
is this Src related problem? Please I need help
Edited by mightyryanLink to comment
Share on other sites
5 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.