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-17-2008, 02:29 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
Question NEED HELp!

How do i make it so when a player logs on the sever they get d/ced / RESET as soon as they log on!

and it only resets them 1 time. and after that it will never do it again ! ???

HELP ??
__________________
Reply With Quote
  #2  
Old 09-17-2008, 02:49 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
PHP Code:
function onActionPlayerOnline()
{
  if (
player.clientr.reset == false)
  {
    
sendtorc("/reset" SPC player.account);
    
player.clientr.reset true;
    
savelog2("loginresetlog.txt"player.account SPC "has been reset!");
  }

best way I can think of.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #3  
Old 09-17-2008, 02:50 AM
Luigi203 Luigi203 is offline
Hamma Time
Luigi203's Avatar
Join Date: Mar 2003
Location: North East PA
Posts: 285
Luigi203 is on a distinguished road
Send a message via AIM to Luigi203
I would store everyone that got reset in a text file or something.. but that's just me.
__________________


CAUTION
Reply With Quote
  #4  
Old 09-17-2008, 02:52 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
yeah. that would actually guarantee that nobody but the manager has rights to it so people with set atts can't force resets on people.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #5  
Old 09-17-2008, 02:53 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
Quote:
function onActionPlayerOnline()
{
if (player.clientr.reset == false)
{
sendtorc("/reset" SPC player.account);
player.clientr.reset = true;
}
}
I tryed that and it does not work.


PLEASE HELp!!!!!!@!@!@!@!@!@
__________________
Reply With Quote
  #6  
Old 09-17-2008, 02:53 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
and can you add the a log of ALL THE RESETs?
__________________
Reply With Quote
  #7  
Old 09-17-2008, 02:54 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
it needs to be in the control-npc script.

and be a bit more calm when asking for help.
PHP Code:
function onActionPlayerOnline()
{
  if (
player.clientr.reset == false)
  {
    
sendtorc("/reset" SPC player.account);
    
player.clientr.reset true;
    
savelog2("loginresetlog.txt"player.account SPC "has been reset!");
  }

__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #8  
Old 09-17-2008, 02:55 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
ok sorry, frankie can you please add the log to that?
__________________
Reply With Quote
  #9  
Old 09-17-2008, 02:58 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
i tried this one

function onActionPlayerOnline()
{
if (player.clientr.reset == false)
{
sendtorc("/reset" SPC player.account);
player.clientr.reset = true;
}
}

and it just keeps reseting my player. wont let me log back on
__________________
Reply With Quote
  #10  
Old 09-17-2008, 03:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Look in the Code Gallery. Several people have already posted this script there.
__________________
Reply With Quote
  #11  
Old 09-17-2008, 03:16 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
Quote:
function onActionPlayerOnline()
{
if (player.clientr.reset == false)
{
sendtorc("/reset" SPC player.account);
player.clientr.reset = true;
savelog2("loginresetlog.txt", player.account SPC "has been reset!");
}
}
It wont let me log back on when i use this one.! it just keeps d/cing me!
__________________
Reply With Quote
  #12  
Old 09-17-2008, 03:18 AM
Scrimps Scrimps is offline
Graal Prodigy
Scrimps's Avatar
Join Date: May 2008
Location: Kriegzone
Posts: 90
Scrimps has a little shameless behaviour in the past
Send a message via AIM to Scrimps
Someone anyone??
__________________
Reply With Quote
  #13  
Old 09-17-2008, 03:23 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
http://forums.graalonline.com/forums...ad.php?t=69096
__________________
Reply With Quote
  #14  
Old 09-17-2008, 04:01 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
it's because I was having it reset the player before setting the clientr string. oops.

you should use the one Chris recommended
__________________
*Sum41Freeeeek
*Frankie
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 05:16 PM.


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