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 12-14-2001, 03:19 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
Lightbulb for future reference...

i figured it out.. (with help from er1c)

here is what er1c contributed:

NPC's layed with putnpc2, are local to the level.

here is what i figured out..

an easy way to put an npc in any level, and keep the original db npc in the same level is this:
NPC Code:

setstring this.oldlevel,#L;
this.oldx=x;
this.oldy=y;
warpto layinglevel,layx,layy;
putnpc2 layx,layy,{script;}
warpto #s(this.oldlevel),this.oldx,this.oldy;



it warps the db npc to the level at the x,y to lay at, puts the npc, then warps it back right where it came from.

easy, simple, precise.

so please dont post about this anymore.
 


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 02:27 PM.


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