paloske Posted March 23, 2014 Posted March 23, 2014 Hello folks. How it is possible to create command, when characters use gatekeeper, they can teleport to cursed weapon on the ground or player witch have it .
0 Tryskell Posted March 23, 2014 Posted March 23, 2014 Copy paste the admin command content... There's an admin command which does exactly what you say.
0 paloske Posted March 23, 2014 Author Posted March 23, 2014 yeah, im tryed it, when im changing admin_cw_goto to cw_goto thats function isnt working ...
0 SweeTs Posted March 23, 2014 Posted March 23, 2014 Create user command with the same code, simple as fack. :P
0 paloske Posted March 23, 2014 Author Posted March 23, 2014 Yeah im do like u said, but teleport command is not working . commands like menu works fine, but this on, nope .. ^^
0 Tryskell Posted March 24, 2014 Posted March 24, 2014 (edited) 1- On onBypass from L2Npc, you add a new bypass section. 2- You cp the code of admin command. You probably have to edit a little if it uses a substring to get the right parameter, otherwise with a stringtokenizer it should work without any edit (or so). 3- You edit your idiot HTM to get a link with the bypass name and parameter. 4 - ??? Profit. Share what you made so far using code tag or pastebin. Edited March 24, 2014 by Tryskell
0 paloske Posted March 24, 2014 Author Posted March 24, 2014 http://pastebin.com/8mVkyipx here it is :)
0 Tryskell Posted March 25, 2014 Posted March 25, 2014 As it is used on the admin command, the voice command you added AND the NPC bypass (which it is currently just trash btw), I invite you to move the admin command content in a static method in CursedWeaponsManager, and then to call it directly from here. And to repeat what I said higher, your NPC bypass is just trash. If your voice command works, simply c/p from here.
0 paloske Posted March 25, 2014 Author Posted March 25, 2014 If you are talking about goTo function it is not in CursedWeaponsManager. It is In CursedWeapon.
0 paloske Posted March 25, 2014 Author Posted March 25, 2014 (edited) But mate, in cursedweaponmanager not exist anything about admin commands. Edited March 25, 2014 by paloske
0 Tryskell Posted March 25, 2014 Posted March 25, 2014 I invite you to move the admin command content in a static method in CursedWeaponsManager, and then to call it directly from here. Except quoting me, I don't get what you don't understand....
0 paloske Posted March 25, 2014 Author Posted March 25, 2014 (edited) Okey, thanks Tryskell. On cursedweapons.java i changed function goTo to static, and on requestbypasstoserver.java added this one : else if (_command.startsWith("cw_goto")) { CursedWeapon.goTo(activeChar); } but now on cursed weapon i see both only Blood Sword Akamanah, Zariche disappeared. . and when i pick zariche on both items in menu show akamanahs . Edited March 25, 2014 by paloske
0 Tryskell Posted March 26, 2014 Posted March 26, 2014 The admin command content. Not the bloody goTo method. Create a static method used by the 3 commands. Or edit goTo at all, adding new parameters. Well, I give up.
0 paloske Posted March 28, 2014 Author Posted March 28, 2014 Okey, solved with bypass, thnx Tryskell. Lock this theme.
0 Vision Posted March 28, 2014 Posted March 28, 2014 Okey, solved with bypass, thnx Tryskell. Lock this theme. Locked.
Question
paloske
Hello folks. How it is possible to create command, when characters use gatekeeper, they can teleport to cursed weapon on the ground or player witch have it .
15 answers to this question
Recommended Posts