Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-26-2001, 03:03 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
leaving level with player

I am making an npc that leaves the level with the player, but the player is connected to the npc.
eg: playerx=x;playery=y;

i dont need a follow player script but Just a warp to the players, x,y when he/she leaves.
here is what i thought:

NPC Code:

with(getplayer(this.owner)){
warpto #L,playerx,playery;}



im not sure cuz im not that good with npc-server scripting yet, and I havent had a chance to test anything online, its all judging by what ive seen from my firneds.

Please share your thoughts (help or fixes).

Last edited by Warcaptain; 08-26-2001 at 03:37 PM..
  #2  
Old 08-26-2001, 11:37 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
no its #F for player #L is the npc level name
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
  #3  
Old 08-27-2001, 01:39 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
NPC Code:
if (strequals(#a,AccountNameYouWantTheNPCToFollow)) {
if (playerleaves)
warpto #F,playerx,playery;
}

__________________
Eric Kraft
  #4  
Old 08-27-2001, 04:36 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
thanks
  #5  
Old 08-27-2001, 04:53 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
I feel the need to post here.
  #6  
Old 08-27-2001, 05:23 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Question

Quote:
Originally posted by WeirdmanI9
I feel the need to post here.
why?
  #7  
Old 08-28-2001, 09:16 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Shorter :
if (playerleaves && strequals(#a,this.owner))
warpto #F,playerx,playery;
  #8  
Old 08-28-2001, 10:16 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Stefan
Shorter :
if (playerleaves && strequals(#a,this.owner))
warpto #F,playerx,playery;

*smacks forhead*

i should have guessed that!

:-)

thanks stefan ;-)
 


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 10:37 PM.


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