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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom sysmessage function
Author Message
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #1
Custom sysmessage function
Given the Uncode Text Packet AE:
Code:
byte ID (AE)
word Packet Size
dword Serial
word Graphic
byte
Mode (0x00 = say, 0x01 = system, 0x02 = emote, 0x06 = label, 0x07 = focus, 0x08 = whipser, 0x09 = yell, 0x10 = spell, 0x13 = guild, 0x14 = alliance, 0x15 = GM, 0xC0 = encoded commands)
word Text Color
word Font
char[4] Language
char[30] Name
uchar[*] Text

I want to write a function for sending sysmessages (or other text types/talkmodes), which also enables me to specify the fields: Serial, Mode and Name.
Each letter in Language, Name and Text is sent not as plain text obviously, but as a number, which is the ASCII or Unicode(?) value for the letter itself.
Is there an automatic way to obtain the numeric value for each letter? I thought something like <hval "blabla">, but as i expected it did not work.
04-22-2014 08:33 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Custom sysmessage function - karma - 04-22-2014 08:33 AM
RE: Custom sysmessage function - darksun84 - 04-22-2014, 08:52 AM
Custom sysmessage function - karma - 04-22-2014, 10:02 PM

Forum Jump:


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