Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-12-2006, 07:55 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Request: Playerenters

Can this event/function be called when a player logs on in a room please? It'd be so useful at times.
Reply With Quote
  #2  
Old 07-12-2006, 08:10 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
It should be called when a player enters a room for any reason, even if its because they just logged on.

Does it not already do this?
Reply With Quote
  #3  
Old 07-12-2006, 09:02 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
It doesn't call it when you login in that room.
Reply With Quote
  #4  
Old 07-12-2006, 09:48 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 should
Reply With Quote
  #5  
Old 07-12-2006, 10:31 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Here's an example.

Pic 1 - I enter the room. When playerenters it loads those tiledefs.
Pic 2 - I reconnect in that same room. Notice the tiledefs not loading.

I can find other examples if need be.
Attached Thumbnails
Click image for larger version

Name:	graal_1152736134.png
Views:	83
Size:	53.1 KB
ID:	37084   Click image for larger version

Name:	graal_2.png
Views:	83
Size:	43.0 KB
ID:	37085  
Reply With Quote
  #6  
Old 07-12-2006, 10:43 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Perhaps it is not loading the tiledefs right then, you should try debugging it with some echo() in the playerenters

ie:

PHP Code:
function onPlayerEnters(){
  echo(
"welcome to the room");

enter the room normally and by logging on and appearing in that room and seeing if it echo's that

btw, echo is your best friend for debugging, use it.
Reply With Quote
  #7  
Old 07-12-2006, 10:49 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Quote:
Originally Posted by Warcaptain
Perhaps it is not loading the tiledefs right then, you should try debugging it with some echo() in the playerenters

ie:

PHP Code:
function onPlayerEnters(){
  echo(
"welcome to the room");

enter the room normally and by logging on and appearing in that room and seeing if it echo's that

btw, echo is your best friend for debugging, use it.
Oddly enough, that worked both serverside and clientside. However, I've had difficulty using playerenters when trying to add weapons to a player entering the level.
Reply With Quote
  #8  
Old 07-13-2006, 01:54 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 Bl0nkt
Oddly enough, that worked both serverside and clientside. However, I've had difficulty using playerenters when trying to add weapons to a player entering the level.
That is because Era's login routine clears weapons out and readds them as necessary during logon. You are probably adding them before the routine finishes.
__________________
Skyld
Reply With Quote
  #9  
Old 07-14-2006, 12:58 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
is tyhere another function or command like onPlayerLogin you could also use?
__________________
Deep into the Darkness peering...
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:26 AM.


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