HELP - With PMs
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

HELP - With PMs

Started by Spudman, 06 January, 2004, 23:48:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spudman

Anyone know this one, got me stuck.....

I am running a script that sends a PM on entering hub, now I know this works as I have been in a test hub running same software and was sent the PM, however in my hub the PM comes up in main, not a new window, I figure it must be in my settings somewhere (Ptokax) but cant find anything anywhere??

Does anyone know how to solve this problem?

Thanks

Spud

BlazeXxX

Its not in ptokax, its in ur client ! Tick this option or smilar one and it shud give it in private window..

"Popup Private messages from users who are not online"

Something smilar will do... If it still doesn't work, then try my script..

Bot = "WelcomeBot"
function Main()
frmHub:RegBot(Bot)
end

function NewUserConnected(curUser)
readfrom("Welcome.txt")
local message = ""
while 1 do
local line = read()
if (line == nil) then break else
message = message..line.."\r\n"
end
end
curUser:SendPM(Bot,message)
end

--You need to have a txt file called Welcome.txt in the scripts dir

Spudman

Thanks BlazeXxX

But why would it work in one hub, but not the other, when using the same client for both?

Also I would use the script, but this only gets sent to unregged, so is alot of hassle to change =)

Thanks anyway

Spud

B@B?

#3
QuoteOriginally posted by BlazeXxX
Its not in ptokax, its in ur client !

Tick this option or smilar one and it shud give it in private window..

"Popup Private messages from users who are not online"

Plz excuse my english but isn?t:

The answere in the text above?...!  ;)
THE DAY AFTER...  

...is >>>>>>>> NOW!




Btw:
Plz excuse my english...
It?s not the best, i?m sure...but it?s funny...isn?t it?

c h i l l a

#4
if you have your bot regged and your client is set to pop up PM's and still the PM comes in Main then

the only reason is that when your script sends the PM on UserConnect it doesn't see the bot.
To bypass that problem, send either a $Hello |
to the client, or a $MyINFO  of the bot to the client on Connect before you send the PM that way you make sure, the client, sees the bot, before getting its message.

Spudman

#5
Thanks alot Chilla,

But can ya explain to me a bit more, not sure I understand you...

Bot is regged, I think, have entered Bot name in Ptokax to reg at start of serving......

And the PM comes up in main, then I am lost =P

Spud

pHaTTy

try adding something like

Bot = frmHub:GetBotName()

and if reg from the hub that shud work if i understand correctly
Resistance is futile!

c h i l l a

#7
well.. thing is, I don't know how ptokax does it, but,

a user connects after finishing the login, that is after I think sending the MyInfoString.

okey but when the hub is full..  or not full dunno,

well anyways I think ptokax sends a the oplist, and in that list there are the bots, but sometimes it happens the client gets the PM of the bot before th OP list, so then is doesn't see the bot as client, and alsways shows its message in main.
and when, you send Myinfo or a Hello to the client, before the PM you only make sure that the client, sees the bot , before he gets the PM.

so you could also send a $OPList  or something.

Spudman

Ok, thanks for ya help but you have confused me =S

But I have passed it on to someone who can make sense of it all =D

Thanks alot

Spud

BlazeXxX

No prob spudman ! If u can explain a bit on which hubsofts using and the unreg bit.

The script i posted sends to everyone except ops and above... It works fine for me in all hubs.

Please let me know what version of ptokax u using in both hub?

If u need furthur help on this, i will help ya :)

SMF spam blocked by CleanTalk