Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   warpto&putnpc2 (https://forums.graalonline.com/forums/showthread.php?t=18772)

Warcaptain 12-12-2001 08:51 AM

warpto&putnpc2
 
does warpto work in putnpc2 npcs?

im having hard time..

Kumada 12-12-2001 08:01 PM

Re: warpto&putnpc2
 
Quote:

Originally posted by Warcaptain
does warpto work in putnpc2 npcs?

im having hard time..

Warpto NPC <name>

Cybnext_Design 12-12-2001 08:09 PM

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.

Warcaptain 12-13-2001 02:38 AM

i tried:


putnpc2 x,y,{
if (created){
warpto strtofloat(#t(1)),strtofloat(#t(2)),#t(3);
}
}
but it doesnt work :(

Falcor 12-13-2001 03:17 AM

Level name comes first
you put hte X Y 1st..

warpto level,x,y;

Warcaptain 12-14-2001 03:19 AM

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.

Admins 12-17-2001 08:40 PM

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

Warcaptain 12-18-2001 02:42 AM

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?

Andor_NPC-Admin1 12-18-2001 03:41 AM

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

Warcaptain 12-18-2001 03:57 AM

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.

Andor_NPC-Admin1 12-18-2001 04:16 AM

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++

Warcaptain 12-18-2001 04:36 AM

then what is stefan saying

Andor_NPC-Admin1 12-18-2001 06:26 AM

He's saying the NPCs made with putnpc can't warp =)

Er1c 01-01-2002 03:59 PM

Stefan's saying that putnpc2 NPCs cannot warp on the graal2001-type NPC server.

Dlaiyre 01-01-2002 08:28 PM

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.

PlasmaDestroyer 01-02-2002 03:58 AM

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


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

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