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:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Online List/Messenger 2.0
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #11
RE: Online List/Messenger 2.0
PATCH:

Fixed - Error in messaging where repeatedly hitting send on a blank message would eventually cause the recipient data to be lost and send messages about "no text" to the recipient. - reported by backtobasics

also because of the statement in the last post feel free to blame Ben Big Grin

[Image: 2nis46r.jpg]
03-28-2013 11:35 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #12
RE: Online List/Messenger 2.0
awesome. I wish I was that gud on script... one day perhaps... lol ;]
03-28-2013 01:48 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

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

Ultima One

Post: #13
RE: Online List/Messenger 2.0
Hey Mord.

Going to make use of this, but will be running it via Database, assume it is simple enough to add this functionality in, even though you went out of your way to not use it Big Grin - Not looked at the code yet, as I will be adding it in a week or so.

Also going to look to be able to add items to messages to send gold/items to friends - is this something you would consider adding to your version of it? I would add this then update here with it, but it will have all the sql stuff in it which you don't want. Others may like this feature Smile (guess it becomes less 'plug-n-play' if you add that though)

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-11-2013 12:31 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #14
RE: Online List/Messenger 2.0
I wouldn't say I went out of my way not to use it. I just wanted the script to be portable for use by everyone... and not everyone uses mysql, so I didn't make it that way.
It's actually extremely light and efficient in it's current format, as tests with lists on the "unique name script" show

Sending gold via this system would be easy enough, sending items a little more complicated but not by any means impossible.
I may look into adding it into a future iteration if there is enough interest in it.

[Image: 2nis46r.jpg]
(This post was last modified: 05-11-2013 01:35 AM by Mordaunt.)
05-11-2013 01:24 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

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

Ultima One

Post: #15
RE: Online List/Messenger 2.0
Now up and running on TUP Smile

Had to fix the .private a bit though, you could have your message 'replied' to and still receive it. Since the message it gives I assumed you should receive no message at all, and also unable to send one - but using reply by-passes that.

Else, works great, no problems. Getting some rep Smile

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-11-2013 06:59 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #16
RE: Online List/Messenger 2.0
By sending a message I believe I set it to take you out of private mode, since if you're "hiding" you shouldn't be sending messages anyway, I'll double check that when I get a couple of minutes spare though.

[Image: 2nis46r.jpg]
05-11-2013 07:44 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

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

Ultima One

Post: #17
RE: Online List/Messenger 2.0
Yeh, sending one did take it out (makes sense, but i adapted mine to force them to disable it first). But if you have it Enabled, you could still receive messages - all it did was hide you from the public list.

Added this under the on=1 for sending a message button to stop you 'replying' to a message in order to contact someone with Private enabled:

Code:
if (<src.tag0.private>)
    src.sysmessage @,,1 "Private" mode is Enabled, you are not allowed to send messages. Use .private to Disable.
    return 1
endif
if (<uid.<src.ctag0.receiver>.tag0.private>)
    src.sysmessage @,,1 <uid.<src.ctag0.receiver>.name> has Privacy Enabled and cannot receive messages at this time.
    return 1
endif

Also just noticed you set a local var here too, then don't use it below - just if you want to update it, dont think it really matters
Code:
local.recipient= <uid.<src.ctag0.receiver>.account>

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 05-11-2013 08:20 AM by Ultima One.)
05-11-2013 08:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #18
RE: Online List/Messenger 2.0
Hi

Maybe i do something wrong but i got erron on this line(add friend):
if (<LIST.<src.account>_friends.FINDELEM <argo.uid>>==-1)

Undefined symbol ''

When i use printlist in console are:
LIST.test_message=
LIST.test_sender=
LIST.test_time=


LIST.test_friends missing is this problem?

I try fix it self but I dont know how use lists.

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
06-28-2013 09:05 PM
Find all posts by this user Like Post Quote this message in a reply
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #19
RE: Online List/Messenger 2.0
(06-28-2013 09:05 PM)Monty Wrote:  Hi

Maybe i do something wrong but i got erron on this line(add friend):
if (<LIST.<src.account>_friends.FINDELEM <argo.uid>>==-1)
...

I fixed it myself. If somebody want fix it too or author wants update.
I hope that the author will not kill me. Smile

This line 431- 446 delete
Code:
if (<eval <LIST.<src.account>_friends.COUNT>-1> < <ddef.max_friends>)
    if (<LIST.<src.account>_friends.FINDELEM <argo.uid>>==-1)
        src.sysmessage @,,1 Friend request sent!
        argo.ctag0.friend_request <local.request>
        trysrc <argo.uid> dialog d_friend_request
        return 1
    else
        src.sysmessage @,,1 <argo.name> is already on your friends list.
        return 1

    endif
else
    src.sysmessage @,,1 Your friends list is full
    src.sysmessage @,,1 You must delete someone before you can add a new one
    return 1
endif

and place this
Code:
if <LIST.<src.account>_friends.COUNT>
    if (<eval <LIST.<src.account>_friends.COUNT>-1> < <ddef.max_friends>)
        if (<LIST.<src.account>_friends.FINDELEM <argo.uid>>==-1)
            src.sysmessage @,,1 Friend request sent!
            argo.ctag0.friend_request <local.request>
            trysrc <argo.uid> dialog d_friend_request
            return 1
        else
            src.sysmessage @,,1 <argo.name> is already on your friends list.
            return 1
    
        endif
    else
        src.sysmessage @,,1 Your friends list is full
        src.sysmessage @,,1 You must delete someone before you can add a new one
        return 1
    endif
else
    src.sysmessage @,,1 Friend request sent!
    argo.ctag0.friend_request <local.request>
    trysrc <argo.uid> dialog d_friend_request
    return 1
endif

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
07-02-2013 09:52 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #20
RE: Online List/Messenger 2.0
Huh, I must have missed your post here previously, I'll look into that, never had the issue myself.

okay.... having looked at it I am confused given the section you said to replace the first section with is identical to the script I have on my computer, though I see that the version currently in the downloads section matches the first piece of code you posted. Looks as though I had seen it fixed it but not uploaded it.
I'll fix that, thanks for bringing it to my attention (again Tongue ).

[Image: 2nis46r.jpg]
(This post was last modified: 07-03-2013 12:03 AM by Mordaunt.)
07-02-2013 11:16 PM
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)