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-nmm6 (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-nmm6 (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-nmm6 (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
Player messaging
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #1
Player messaging
Time to share some scripts we use frequently on TUP. Some may be in need of updating.

This script lets you leave a message for an AFK player. Or allows you to send them a message without using 'party' or speaking out loud. You will get a notification when they have closed the message, so you can be sure they have read it Smile

Use: .msg - target player.

Code:
[FUNCTION msg]
TARGETF msg_tgt
SRC.SYSMESSAGE Which player to you wish to send the message to?

[FUNCTION msg_tgt]
ctag.msg_txt_to=<argo.uid>
IF (<UID.<ARGO.UID>.FINDID.m_afk_permit.UID>)
   DIALOG msg_txt_legal
ELSE
   DIALOG msg_txt
ENDIF

[DIALOG msg_txt]
200,200
resizepic 0 0 3600 330 300
page 0
dtext 20 20 1152 Enter your message for <uid.<ctag.msg_txt_to>.name>
gumppictiled 40 52 250 180 3004
dtextentry  40 52 250 180 0 0
button 120 260 249 248 1 0 1 //okay
button 210 260 243 241 1 0 2 //cancel

[DIALOG msg_txt button]
ON=0
src.sysmessage <ctag.msg_txt_to>
src.ctag.msg_txt_to=
ctag.receiver=
SRC.SYSMESSAGE Function cancelled
RETURN 1

on=1
TRYSRC <ctag.msg_txt_to> src.tag.msg=<argtxt[0]>
TRYSRC <ctag.msg_txt_to> src.tag.sender=<uid>
TRYSRC <ctag.msg_txt_to> src.tag.pending=1
TRYSRC <ctag.msg_txt_to> dialog d_message_display
    SRC.SYSMESSAGE @07a1 Message sent!
TRYSRC <ctag.msg_txt_to>
    RETURN 1
src.ctag.msg_txt_to=

ON=2
src.sysmessage <ctag.msg_txt_to>
src.ctag.msg_txt_to=
ctag.receiver=
SRC.SYSMESSAGE Function cancelled
RETURN 1

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 05-16-2013 01:02 AM by Ultima One.)
05-16-2013 01:02 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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