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-12-2001, 08:51 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
Unhappy warpto&putnpc2

does warpto work in putnpc2 npcs?

im having hard time..
  #2  
Old 12-12-2001, 08:01 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
Re: warpto&putnpc2

Quote:
Originally posted by Warcaptain
does warpto work in putnpc2 npcs?

im having hard time..
Warpto NPC <name>
__________________
Aim: Mmm Kumada

  #3  
Old 12-12-2001, 08:09 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Re: warpto&putnpc2

Quote:
Originally posted by Warcaptain
does warpto work in putnpc2 npcs?

im having hard time..
Give me an IM on AIM, and I will help you with this. It isn't all too hard, just sort of different.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
  #4  
Old 12-13-2001, 02:38 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
Unhappy

i tried:


putnpc2 x,y,{
if (created){
warpto strtofloat(#t(1)),strtofloat(#t(2)),#t(3);
}
}
but it doesnt work
  #5  
Old 12-13-2001, 03:17 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Level name comes first
you put hte X Y 1st..

warpto level,x,y;
__________________

subliminal message: 1+1=3
  #6  
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.
  #7  
Old 12-17-2001, 08:40 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
Yes putnpc2 npcs are local, they have local ids,
so they cannot warp.
Only on Graal2002 they can 'warp'
(because the maps are like one big level).
  #8  
Old 12-18-2001, 02:42 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
Quote:
Originally posted by Stefan
Yes putnpc2 npcs are local, they have local ids,
so they cannot warp.
Only on Graal2002 they can 'warp'
(because the maps are like one big level).
but i dont think they can warp with warpto.

only with predefined movements, like x++, or move.

right?
  #9  
Old 12-18-2001, 03:41 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
only NPCs in the database can use warpto, and canwarp
meaning: npcs made with putnpc, or 2 aren't able to warp, but only move within the level
  #10  
Old 12-18-2001, 03:57 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
stefan claims they can move from level to level, but not with warpto.

thats why i said stuff using canwarp&canwarp2

x++,move to change levels.
  #11  
Old 12-18-2001, 04:16 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
Quote:
Originally posted by Warcaptain
stefan claims they can move from level to level, but not with warpto.

thats why i said stuff using canwarp&canwarp2

x++,move to change levels.
They will not warp to another level if it uses canwarp, or canwarp2 when they go x++
  #12  
Old 12-18-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
then what is stefan saying
  #13  
Old 12-18-2001, 06:26 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
He's saying the NPCs made with putnpc can't warp =)
  #14  
Old 01-01-2002, 03:59 PM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Stefan's saying that putnpc2 NPCs cannot warp on the graal2001-type NPC server.
__________________
Eric Kraft
  #15  
Old 01-01-2002, 08:28 PM
Dlaiyre Dlaiyre is offline
Registered User
Join Date: Nov 2001
Location: Townsville, Australia
Posts: 205
Dlaiyre is on a distinguished road
Send a message via AIM to Dlaiyre
The npcs on a non npc server pw are controlled by the level which they run, to move to another level they need to be controlled by a npc server.

Please correct me if im wrong.
__________________
<- spider, for compatibility
( aim: Dlaiyre )
( email: Dlaiyre )

( msn: [email protected] )
( icq: 51464358 )
  #16  
Old 01-02-2002, 03:58 AM
PlasmaDestroyer PlasmaDestroyer is offline
Registered User
Join Date: Dec 2001
Location: USA
Posts: 79
PlasmaDestroyer is on a distinguished road
Send a message via AIM to PlasmaDestroyer Send a message via Yahoo to PlasmaDestroyer
Question

*Lost all mental capacity of this conversation when Stefan said something*
__________________

-Made by Tucker Cloud

AIM Screename - Christian222us
 


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 05:12 PM.


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