XkAcY- Posted July 23, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 0 Joined: 11/13/11 Last Seen: April 5, 2017 Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted July 23, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 252 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
XkAcY- Posted July 23, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 0 Joined: 11/13/11 Last Seen: April 5, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted July 23, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 252 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted July 23, 2012 What does your script look like? Quote Link to comment Share on other sites More sharing options...
JoWei Posted July 23, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 117 Reputation: 18 Joined: 01/06/12 Last Seen: April 1, 2021 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted July 24, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1130 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
XkAcY- Posted July 24, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 0 Joined: 11/13/11 Last Seen: April 5, 2017 Author Share Posted July 24, 2012 @Euphy yah i realize that.. but now my problem solve thanks Euphy Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.