Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
RE: Activate flying gargoyle
Hi Doberman.
Do you know you can activate it using the book, right? Just open the book and use the Fly ability.
But you don't want to use, right?
It should use packets, I will list them for you then you can try yourself.
To turn off the flying, these packets are sent from server to the player:
DF 0F 00 00 00 31 DE 04 1E 00 00 00 00 00 00
77 00 00 31 DE 02 9A 00 64 00 64 FB 02 86 DB 00 07
17 0F 00 00 00 31 DE 00 02 00 01 00 00 02 00
E2 00 00 31 DE 00 0A 00 00 00
To turn on the flying:
DF 32 00 00 00 31 DE 04 1E 00 01 00 00 00 00 04 1E 00 01 00 00 00 00 00 00 00 00 00 00 10 F8 81 00 10 F9 F7 00 00 00 00 00 01 00 00 00 09 09 00 00 00
77 00 00 31 DE 02 9A 00 64 00 64 FB 02 86 DB 04 07
17 0F 00 00 00 31 DE 00 02 00 01 00 00 02 00
E2 00 00 31 DE 00 09 00 00 00
Note that all packets have THIS: 00 00 31 DE
This is MY char uid and it should be REPLACED with the player UID that is trying to take off or land.
The easier way to do that is, removing these 4 'blocks' and replace with D<UID> where UID is the player uid, right?
To send the packets, use SENDPACKET <packet block here>
Note that SOME 'blocks' don't have 0 before, you NEED to put them on every block that don't start with 0
Example:
SENDPACKET 077 D<UID> 02 09A 00 064 00 064 0FB 02 086 0DB 04 07
Make a function like 'togglefly' that checks if the player is flying or not and do what is needed.
If you need more information or other question, feel free to ask.
STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
|
|
11-30-2014 09:03 AM |
|
|