Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   NEED HELp! (https://forums.graalonline.com/forums/showthread.php?t=81870)

Scrimps 09-17-2008 02:29 AM

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 ?? :confused:!pissed!:asleep:

Frankie 09-17-2008 02:49 AM

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.

Luigi203 09-17-2008 02:50 AM

I would store everyone that got reset in a text file or something.. but that's just me.

Frankie 09-17-2008 02:52 AM

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.

Scrimps 09-17-2008 02:53 AM

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.
:cry:

PLEASE HELp!!!!!!@!@!@!@!@!@

Scrimps 09-17-2008 02:53 AM

and can you add the a log of ALL THE RESETs?

Frankie 09-17-2008 02:54 AM

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!");
  }



Scrimps 09-17-2008 02:55 AM

ok sorry, frankie can you please add the log to that?

Scrimps 09-17-2008 02:58 AM

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

cbk1994 09-17-2008 03:16 AM

Look in the Code Gallery. Several people have already posted this script there.

Scrimps 09-17-2008 03:16 AM

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! :(

Scrimps 09-17-2008 03:18 AM

Someone anyone??

cbk1994 09-17-2008 03:23 AM

http://forums.graalonline.com/forums...ad.php?t=69096

Frankie 09-17-2008 04:01 AM

it's because I was having it reset the player before setting the clientr string. oops.

you should use the one Chris recommended


All times are GMT +2. The time now is 10:12 PM.

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