Results 1 to 9 of 9
  1. #1
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish

    How to send a ShowEffectPacket via KRelay?

    The fields for ShowEffectPacket are EffectType, PosA, PosB, TargetId, Color.

    EffectType and Color are self explanatory.

    However, what should be defined for PosA, PosB and TargetId? Say for example I want an effect at the location (X, Y).

  2. #2
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish
    Bump, any ideas?

  3. #3
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    Quote Originally Posted by Timii View Post
    Bump, any ideas?
    Set up a hook to catch the packets and output their data and see what a valid packet contains.


    And from what i remember atleast, PosA is where it starts and PosB is the end-point for it. TargetId might be whoever created the effect, could be wrong here though. Just capture a few and modify them to see what happens.

  4. #4
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish
    Did so, all the parameters are right but whenever I send them I get dc'd. Strange.

  5. #5
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    Quote Originally Posted by Timii View Post
    Did so, all the parameters are right but whenever I send them I get dc'd. Strange.
    You are sending it to the client, right? Shouldnt cause you to get disconnected unless you are sending it to the server.

  6. The Following User Says Thank You to toddddd For This Useful Post:

    Daenerys (04-17-2017)

  7. #6
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish
    Maybe that's where I went wrong. How do I send it to the client instead of the server?

  8. #7
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    client.sendToClient() instead of client.sendToServer()

  9. #8
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish
    Thanks! That was where I went wrong.

  10. #9
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    @Ahlwong @059 solved.

Similar Threads

  1. [Solved] How to switch servers via krelay?
    By You Are A Fool in forum Realm of the Mad God Help & Requests
    Replies: 3
    Last Post: 11-06-2016, 02:46 PM
  2. How to send a PM?
    By TheJakub999 in forum General
    Replies: 22
    Last Post: 09-29-2011, 07:33 PM
  3. How to send zps to another account?
    By AfuroCrack in forum CrossFire Hacks & Cheats
    Replies: 9
    Last Post: 03-08-2010, 10:28 PM
  4. [Tutorial] How to buy Z8 Points via SMS/Phone call
    By adytzu83 in forum CrossFire Hacks & Cheats
    Replies: 14
    Last Post: 12-04-2009, 08:04 PM
  5. How to send a packet Help.
    By Lotrkiller3000 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 08-06-2008, 10:35 AM