Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   if (playerdies) (https://forums.graalonline.com/forums/showthread.php?t=81371)

GULTHEX 08-21-2008 08:45 PM

if (playerdies)
 
i got this prob with this script

every time i die it dont tele me there it dont tele me anywhere

how do i fix it???
or give me the correct term if the player dies

if (playerdies)
setlevel2 29.8,21.6,osl1.nw;

The_Kez 08-21-2008 08:51 PM

http://wiki.graal.net
...setlevel2( levelname.nw , x , y );

function onPlayerDies() {
setlevel2( your level.nw , your x , your y );
}

Deas_Voice 08-21-2008 08:55 PM

Quote:

Originally Posted by The_Kez (Post 1416311)
http://wiki.graal.net
...setlevel2( levelname.nw , x , y );

function onPlayerDies() {
setlevel2( your level.nw , your x , your y );
}

:rolleyes:
PHP Code:

function onPlayerDies()
{
setlevel2"levelname.nw" );


and dont forget that setlevel2 is serverside :p

GULTHEX 08-21-2008 09:09 PM

tyvm guys

and squirrel

GULTHEX 08-21-2008 09:14 PM

dont work

and how do i make it serverside

Deas_Voice 08-21-2008 10:02 PM

Quote:

Originally Posted by GULTHEX (Post 1416315)
tyvm guys

and squirrel

:\

cbk1994 08-21-2008 10:09 PM

Quote:

Originally Posted by GULTHEX (Post 1416316)
dont work

and how do i make it serverside

You'll need to look at "triggerserver". Do a search for that on the wiki.


Basically, when the players dies, it is detected clientside. You then need to go serverside to warp the player. This is where setlevel2 comes in.

You would place the code in a weapon NPC.

GULTHEX 08-22-2008 06:33 PM

off subject

but it wont let me make a new thread

why wont it let me

devilsknite1 08-22-2008 09:23 PM

PHP Code:

// C:

function onActionServerSideafi )
{
  switch( 
afi )
  {
    case 
"playerDies":
    {
      
setLevel2"yourlevelnamehere.nw"3030 );
      
player.chat "I died!";
      break;
    }
  }
}

//#CLIENTSIDE

function onPlayerDies()
{
  
triggerServer"gui"name"playerDies" );


There. gosh sir

Deas_Voice 08-22-2008 09:29 PM

Quote:

Originally Posted by devilsknite1 (Post 1416563)
PHP Code:

// C:

function onActionServerSideafi )
{
  switch( 
afi )
  { 

There. gosh sir

hey look!
the afi is back on your ASS :cool:

devilsknite1 08-22-2008 09:40 PM

... What? psh, I am the only one that does that. People leave it in there, so I know if they steal ;D

cbk1994 08-22-2008 10:02 PM

Quote:

Originally Posted by devilsknite1 (Post 1416578)
... What? psh, I am the only one that does that. People leave it in there, so I know if they steal ;D

It's a publicly released script ... it can't be "stolen" (as in, used on another server without permission).

Deas_Voice 08-22-2008 10:04 PM

Quote:

Originally Posted by cbk1994 (Post 1416597)
It's a publicly released script ... it can't be "stolen" (as in, used on another server without permission).

he uses afi in any script with ASS.

cbk1994 08-22-2008 10:12 PM

Quote:

Originally Posted by Deas_Voice (Post 1416599)
he uses afi in any script with ASS.

Oh, I thought he was referring to the "C:" at the start.

devilsknite1 08-24-2008 04:16 AM

Quote:

Originally Posted by cbk1994 (Post 1416610)
Oh, I thought he was referring to the "C:" at the start.

Sorry, it's a habit :(

Yes, it's a public script, and I wouldn't even THINK to report a server for something as easy as this.. xD

I use afi so when it ISN'T a public script I know when they use the script.

But yeah, Neo use words :'(
I don't understand what you mean with afi <-> ass

Switch 08-24-2008 05:32 AM

Quote:

Originally Posted by devilsknite1 (Post 1416921)
I don't understand what you mean with afi <-> ass

ASS = onActionServerSide( afi ) {

Deas_Voice 08-24-2008 11:28 AM

Quote:

Originally Posted by devilsknite1 (Post 1416921)
Sorry, it's a habit :(

Yes, it's a public script, and I wouldn't even THINK to report a server for something as easy as this.. xD

I use afi so when it ISN'T a public script I know when they use the script.

But yeah, Neo use words :'(
I don't understand what you mean with afi <-> ass

ASS (ActionServerSide) >:o
hmm, i think i just found my own argument :)

devilsknite1 08-24-2008 10:54 PM

Ok... But I still don't see the point of why you told everyone that there's afi in there... Everyone can see it xD

But yeah, I never just said Oh, ActionServerSide? Yeah, ASS! almost sounds to much like Tourette's guy :(

Deas_Voice 08-25-2008 05:47 PM

Quote:

Originally Posted by devilsknite1 (Post 1417167)
Ok... But I still don't see the point of why you told everyone that there's afi in there... Everyone can see it xD

But yeah, I never just said Oh, ActionServerSide? Yeah, ASS! almost sounds to much like Tourette's guy :(

meh..
i dont see the point why i said that either.
x_x


All times are GMT +2. The time now is 03:17 PM.

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