Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onActionPlayerOffline() (https://forums.graalonline.com/forums/showthread.php?t=61247)

Ibonic 09-16-2005 01:37 PM

onActionPlayerOffline()
 
Wasn't this event function planned to be implemented? As far as I know, it doesn't exist yet. It would be very useful, especially if you could still access the player's attributes temporarily. I'd be appreciative if it were added sometime in the near future.

Admins 09-16-2005 02:34 PM

It exists
PHP Code:

function onPlayerLogout(pl) {
  echo(
"Player " pl.account " is leaving the server!");


Currently you can only read the values of the player, modifications are not saved. On Kingdoms you can modify the mud values (items, exp etc.).

Maniaman 09-16-2005 10:28 PM

Can it be added so that you can modify players after they have logged out?

Ajira 09-16-2005 11:19 PM

Quote:

Originally Posted by Maniaman
Can it be added so that you can modify players after they have logged out?

Yes please. This would make things so much better.

ForgottenLegacy 09-17-2005 12:30 AM

Quote:

Originally Posted by Maniaman
Can it be added so that you can modify players after they have logged out?

How would this be even possible? o_O Currently scripts can not target and alter a player that is offline, and I've the slightest clue about how to change that.

Ajira 09-17-2005 02:24 AM

Quote:

Originally Posted by ForgottenLegacy
How would this be even possible? o_O Currently scripts can not target and alter a player that is offline, and I've the slightest clue about how to change that.

Well RC can do it, why not GScript. ;)

ZeLpH_MyStiK 09-17-2005 04:48 AM

o.O
yes give the (npcserver) a mouse and a keyboard and *bam*
sendtorc /open Stefan; //GS1

xAndrewx 09-17-2005 10:23 AM

Stefan can only edit it, because of the mudlib I am guessing.

Skyld 09-17-2005 10:51 AM

Quote:

Originally Posted by ZeLpH_MyStiK
sendtorc /open Stefan;

And that will do absolutely no good to anybody whatsoever!

calani 09-19-2005 04:28 AM

Though that would be handy, there's always workarounds.
Store the changes you want to make in a db, and alter the player the next time he/she logs on.

Skyld 09-19-2005 08:58 AM

Quote:

Originally Posted by calani
Though that would be handy, there's always workarounds.
Store the changes you want to make in a db, and alter the player the next time he/she logs on.

That is not the point Maniaman was trying to make.

Besides, if the DB NPC gets reset, changes are lost.

calani 09-19-2005 07:56 PM

I think that was obvious.


All times are GMT +2. The time now is 01:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.