Williams Posted October 7, 2019 Posted October 7, 2019 (edited) I come to share something I did for my server. improvements please can comment, please remove the part of Event code : https://pastebin.com/raw/Xa9dU7zd Edited October 9, 2019 by Williams 1 Quote
Tryskell Posted October 8, 2019 Posted October 8, 2019 (edited) I believe you break all summoning skills, like "Summon Friend", since pressing "ok" (_answer == 1) will use the admin version of it, and not the regular player one. Edited October 8, 2019 by Tryskell 1 Quote
SweeTs Posted October 8, 2019 Posted October 8, 2019 Obviously it's gonna fck things up. You need your own answer. Quote
Tryskell Posted October 8, 2019 Posted October 8, 2019 (edited) 20 minutes ago, SweeTs said: Obviously it's gonna fck things up. You need your own answer. I believe (didn't check) the answer is client coded (pressing yes leads to 1, and no leads to 0). But it can work if he uses another SystemMessageId. Edited October 8, 2019 by Tryskell Quote
Williams Posted October 9, 2019 Author Posted October 9, 2019 (edited) Main topic updated with corrections and restrictions. Edited October 9, 2019 by Williams Quote
SweeTs Posted October 9, 2019 Posted October 9, 2019 20 hours ago, Tryskell said: I believe (didn't check) the answer is client coded (pressing yes leads to 1, and no leads to 0). But it can work if he uses another SystemMessageId. I just take a look again, and if I'm not wrong.. Once you execute the command, the dialog pops up and... It's enough one guy answer yes, will result in teleporting whole server aaa The for loop, should NOT be there or my brain disconnected Quote
Tryskell Posted October 10, 2019 Posted October 10, 2019 (edited) On 10/9/2019 at 4:52 AM, Williams said: Main topic updated with corrections and restrictions. Did you test it with more than 1 teleported player ? As SweeTs said, you make 2 iterations of World players. When one player accepts the request, everyone is teleported. So basically if you got 1k players, that's 1k teleportations if everyone accept very fast. :D ---- Also, that check is useless, until you set it to value like 300 or so. if (!MathUtil.checkIfInRange(0, activeChar, player, false)) ---- And you still have the same issue than before, since you override regular behavior, you don't use the right method. Therefore you edit all retail behaviors using this system (summon friend being one of them). You can only use a custom message id, or another, unused, message. Edited October 10, 2019 by Tryskell Quote
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.