Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2005, 01:37 PM
Ibonic Ibonic is offline
unsoundness
Ibonic's Avatar
Join Date: Sep 2002
Location: Long Island <3
Posts: 783
Ibonic will become famous soon enough
Question 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.
Reply With Quote
  #2  
Old 09-16-2005, 02:34 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.).
Reply With Quote
  #3  
Old 09-16-2005, 10:28 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Can it be added so that you can modify players after they have logged out?
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #4  
Old 09-16-2005, 11:19 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.

Reply With Quote
  #5  
Old 09-17-2005, 12:30 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #6  
Old 09-17-2005, 02:24 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.

Reply With Quote
  #7  
Old 09-17-2005, 04:48 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
o.O
yes give the (npcserver) a mouse and a keyboard and *bam*
sendtorc /open Stefan; //GS1
__________________
Reply With Quote
  #8  
Old 09-17-2005, 10:23 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Stefan can only edit it, because of the mudlib I am guessing.
__________________
Reply With Quote
  #9  
Old 09-17-2005, 10:51 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by ZeLpH_MyStiK
sendtorc /open Stefan;
And that will do absolutely no good to anybody whatsoever!
__________________
Skyld
Reply With Quote
  #10  
Old 09-19-2005, 04:28 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to 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.
__________________
Reply With Quote
  #11  
Old 09-19-2005, 08:58 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #12  
Old 09-19-2005, 07:56 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
I think that was obvious.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:13 AM.


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