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 08-21-2008, 08:45 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Angry 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;
Reply With Quote
  #2  
Old 08-21-2008, 08:51 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
http://wiki.graal.net
...setlevel2( levelname.nw , x , y );

function onPlayerDies() {
setlevel2( your level.nw , your x , your y );
}
Reply With Quote
  #3  
Old 08-21-2008, 08:55 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by The_Kez View Post
http://wiki.graal.net
...setlevel2( levelname.nw , x , y );

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

PHP Code:
function onPlayerDies()
{
setlevel2"levelname.nw" );

and dont forget that setlevel2 is serverside
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #4  
Old 08-21-2008, 09:09 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
tyvm guys

and squirrel
Reply With Quote
  #5  
Old 08-21-2008, 09:14 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
dont work

and how do i make it serverside
Reply With Quote
  #6  
Old 08-21-2008, 10:02 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by GULTHEX View Post
tyvm guys

and squirrel
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #7  
Old 08-21-2008, 10:09 PM
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
Quote:
Originally Posted by GULTHEX View Post
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.
__________________
Reply With Quote
  #8  
Old 08-22-2008, 06:33 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
off subject

but it wont let me make a new thread

why wont it let me
Reply With Quote
  #9  
Old 08-22-2008, 09:23 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
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
Reply With Quote
  #10  
Old 08-22-2008, 09:29 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by devilsknite1 View Post
PHP Code:
// C:

function onActionServerSideafi )
{
  switch( 
afi )
  { 
There. gosh sir
hey look!
the afi is back on your ASS
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #11  
Old 08-22-2008, 09:40 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
... What? psh, I am the only one that does that. People leave it in there, so I know if they steal ;D
Reply With Quote
  #12  
Old 08-22-2008, 10:02 PM
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
Quote:
Originally Posted by devilsknite1 View Post
... 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).
__________________
Reply With Quote
  #13  
Old 08-22-2008, 10:04 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by cbk1994 View Post
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.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #14  
Old 08-22-2008, 10:12 PM
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
Quote:
Originally Posted by Deas_Voice View Post
he uses afi in any script with ASS.
Oh, I thought he was referring to the "C:" at the start.
__________________
Reply With Quote
  #15  
Old 08-24-2008, 04:16 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by cbk1994 View Post
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
Reply With Quote
  #16  
Old 08-24-2008, 05:32 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by devilsknite1 View Post
I don't understand what you mean with afi <-> ass
ASS = onActionServerSide( afi ) {
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #17  
Old 08-24-2008, 11:28 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by devilsknite1 View Post
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
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #18  
Old 08-24-2008, 10:54 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
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
Reply With Quote
  #19  
Old 08-25-2008, 05:47 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by devilsknite1 View Post
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.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
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:13 AM.


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