SphereCommunity
Online List/Messenger 2.0 - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Online List/Messenger 2.0 (/Thread-Online-List-Messenger-2-0)

Pages: 1 2 3 4


RE: Online List/Messenger 2.0 - Mordaunt - 03-28-2013 11:35 AM

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


RE: Online List/Messenger 2.0 - amonvangrell - 03-28-2013 01:48 PM

awesome. I wish I was that gud on script... one day perhaps... lol ;]


RE: Online List/Messenger 2.0 - Ultima One - 05-11-2013 12:31 AM

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)


RE: Online List/Messenger 2.0 - Mordaunt - 05-11-2013 01:24 AM

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.


RE: Online List/Messenger 2.0 - Ultima One - 05-11-2013 06:59 AM

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


RE: Online List/Messenger 2.0 - Mordaunt - 05-11-2013 07:44 AM

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.


RE: Online List/Messenger 2.0 - Ultima One - 05-11-2013 08:17 AM

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>



RE: Online List/Messenger 2.0 - Monty - 06-28-2013 09:05 PM

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.


RE: Online List/Messenger 2.0 - Monty - 07-02-2013 09:52 PM

(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



RE: Online List/Messenger 2.0 - Mordaunt - 07-02-2013 11:16 PM

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 ).