mightyryan Posted August 31, 2015 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
GreenMagic793 Posted August 31, 2015 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
mightyryan Posted September 1, 2015 Author 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
GreenMagic793 Posted September 1, 2015 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
FXFreitas Posted September 1, 2015 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
mightyryan Posted September 1, 2015 Author 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
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 mightyryan5 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.