The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Activate flying gargoyle
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Activate flying gargoyle - Doberman - 11-30-2014, 06:19 AM
RE: Activate flying gargoyle - Extreme - 11-30-2014 09:03 AM
RE: Activate flying gargoyle - Doberman - 12-02-2014, 06:15 AM
RE: Activate flying gargoyle - Extreme - 12-02-2014, 08:48 AM
RE: Activate flying gargoyle - Doberman - 12-02-2014, 04:06 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)