Sign in to follow this  
Williams

Code command for admin Recall all aCis 384

Recommended Posts

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 by Tryskell
  • Thanks 1

Share this post


Link to post
Share on other sites
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 by Tryskell

Share this post


Link to post
Share on other sites
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 :dat:

 

The for loop, should NOT be there or my brain disconnected:forever_alone_like_a_boss:

Share this post


Link to post
Share on other sites
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 by Tryskell

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.