Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2006, 11:55 PM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
Logging Out Script

Ok i made this script which sends a message to rc and to the message system i made which displays who logs off but it displays like every 30seconds which wont stop and when people do log off ya it shows who does but it still goes....

Can someone help?
__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #2  
Old 09-13-2006, 10:54 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
My a script is doing b, plz help without me giving any useful information about it!!
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 09-13-2006, 10:58 PM
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 gamer4lifebitach
Ok i made this script which sends a message to rc and to the message system i made which displays who logs off but it displays like every 30seconds which wont stop and when people do log off ya it shows who does but it still goes....

Can someone help?
Please hang up and try again.
Reply With Quote
  #4  
Old 09-13-2006, 11:13 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
PHP Code:
function onPlayerLogout(temp.plyr)
{
  echo(
temp.plyr SPC "has logged off!");

Uhh?
Reply With Quote
  #5  
Old 09-16-2006, 12:22 AM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
still happens
__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #6  
Old 09-16-2006, 02:30 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by gamer4lifebitach
still happens
What is happening?
Reply With Quote
  #7  
Old 09-21-2006, 02:59 AM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
i still get a message like every 30secounds
saying * has logged off!
__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #8  
Old 09-21-2006, 03:10 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
check this:
PHP Code:
function onPlayerLogout(temp.plyr)
{
  if (
temp.plyr != NULL)
  {
    
doStuff();
  }

Replace doStuff() with whatever you do in it.
Reply With Quote
  #9  
Old 09-30-2006, 11:49 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
maby it shows peoples buddys logging off off dirent survers?
__________________
**FLIP OUT**
Reply With Quote
  #10  
Old 10-01-2006, 04:22 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
PHP Code:
function onPlayerLogout(temp.plyr)
{
  if (
temp.plyr.level != NULL)
  {
    
addMessage(); //Or whatever
  
}

Reply With Quote
  #11  
Old 10-01-2006, 05:27 PM
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
Ah, why add temp.plyr in the playerlogout function?
having it as plyr means that it can still be called with temp.plyr...
__________________
Reply With Quote
  #12  
Old 10-01-2006, 05:28 PM
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 xAndrewx View Post
Ah, why add temp.plyr in the playerlogout function?
having it as plyr means that it can still be called with temp.plyr...
Clarity I guess.
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 01:23 AM.


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