Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   leaving level with player (https://forums.graalonline.com/forums/showthread.php?t=10465)

Warcaptain 08-26-2001 03:03 PM

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).
:cool:

LiquidIce00 08-26-2001 11:37 PM

no its #F for player #L is the npc level name ;)

Er1c 08-27-2001 01:39 AM

NPC Code:
if (strequals(#a,AccountNameYouWantTheNPCToFollow)) {
if (playerleaves)
warpto #F,playerx,playery;
}


Warcaptain 08-27-2001 04:36 AM

thanks

WeirdmanI9 08-27-2001 04:53 AM

I feel the need to post here.

Warcaptain 08-27-2001 05:23 AM

Quote:

Originally posted by WeirdmanI9
I feel the need to post here.
why?

Admins 08-28-2001 09:16 PM

Shorter :D :
if (playerleaves && strequals(#a,this.owner))
warpto #F,playerx,playery;

Warcaptain 08-28-2001 10:16 PM

Quote:

Originally posted by Stefan
Shorter :D :
if (playerleaves && strequals(#a,this.owner))
warpto #F,playerx,playery;


*smacks forhead*

i should have guessed that!

:-)

thanks stefan ;-)


All times are GMT +2. The time now is 04:30 AM.

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