darknessneo Posted May 8, 2010 Posted May 8, 2010 Hi, i created a laboratory for craft somes pots in a NPC. All works very fine, no problem. Now i wan limit the acces of this shop for somes class. Ex : fighters and wizards can only craft basic potions. And all buffer class can craft all pots How can a make this ? Quote
0 Matim Posted May 8, 2010 Posted May 8, 2010 You can create Instance or Python file for this NPC, and in case of Java Instance You can: - Create onBypassFeedback method, and inside this method you can check bypass from html, for example: protected static L2PcInstance player; @Override public void onBypassFeedback(L2PcInstance player, String command) { if(command.startsWith("potions")) { if(player.getClassId().isMage()); player.sendMessage("Mages can not buy these fucking potions"); else //Show Html with button with bypass to Multisell. } This is simply example. Quote
Question
darknessneo
Hi,
i created a laboratory for craft somes pots in a NPC.
All works very fine, no problem.
Now i wan limit the acces of this shop for somes class.
Ex : fighters and wizards can only craft basic potions.
And all buffer class can craft all pots
How can a make this ?
1 answer 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.
Note: Your post will require moderator approval before it will be visible.