XkAcY- Posted July 23, 2012 Posted July 23, 2012 How to Duplicate the OnBuyItem?? Example in one script you want to make 2 shop using OnBuyItem how can i do that? OnBuyItem: allow to use OnBuyItem2: or what the other way? because callfunction is not working on OnBuyItem when i use callfunction he said NPC-Name::OnBuyItem not found Quote
Mystery Posted July 23, 2012 Posted July 23, 2012 Try using Euphy's script as an example: http://pastebin.com/raw.php?i=YftccqDs. He has multiple shops set up. Quote
XkAcY- Posted July 23, 2012 Author Posted July 23, 2012 @Mysterious Thank you for the link.. but i want to make my own.. but i dunno how to duplicate the OnBuyItem Quote
JoWei Posted July 23, 2012 Posted July 23, 2012 Not quite sure you can duplicate a label but what you could do is set a variable which could be checked in OnBuyItem? Quote
Euphy Posted July 24, 2012 Posted July 24, 2012 You can't duplicate label names in NPCs, ever. Since OnBuyItem is a trigger label, you need to group and split the events in one label if you have multiple event instances. Quote
XkAcY- Posted July 24, 2012 Author Posted July 24, 2012 @Euphy yah i realize that.. but now my problem solve thanks Euphy Quote
Question
XkAcY-
How to Duplicate the OnBuyItem??
Example in one script you want to make 2 shop using OnBuyItem how can i do that?
OnBuyItem:
allow to use
OnBuyItem2:
or what the other way? because callfunction is not working on OnBuyItem when i use callfunction he said NPC-Name::OnBuyItem not found
6 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.