Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Power lines - Question on canwarp/2 (https://forums.graalonline.com/forums/showthread.php?t=27233)

Gohan43331 04-10-2002 04:33 AM

Power lines - Question on canwarp/2
 
I'm working on my own version of the "Powerlines" npc script posted in NPC Scripting...

But i have a few questions about the P2P side of it...

Which would I use to allow the npc to move between levels (when it's on a track)
canwarp or canwarp2 ? Or does it REALLY matter? :D

Also, does it need to be serverside or clientside? (I'm thinking serverside, cause clientside would display for one client.

There's no real way I can test this script between multiple levels, but i'd like to include this in there for the person who wants it...

Thanks in advance...

SaijinGohan 04-12-2002 07:05 AM

canwarp2 is what you want and you want it serverside but it will only work as an NPC On the NPC List from NC, otherwise it wont work.

joseyisleet 04-12-2002 03:12 PM

-=Josey=-
Is canwarp the function that warps the NPC to the designated x,y co-ordinates on a link in the level, or is that canwarp2. I simply forgot. ;\

Spanko 04-12-2002 06:55 PM

The main difference between the canwarp and canwarp2 commands is that if the NPC uses canwarp it will take all level links, while if it's using canwarp2 it'll only take the usual extremely large links at the border of a level.

Spanko 04-12-2002 07:51 PM

Quote:

Originally posted by Kaimetsu


Ah, gotcha. Thanks for the clarification.

I look stupid in that quote, it should have been the border of the level :(

Saga2001 04-13-2002 06:57 AM

Quote:

Originally posted by Spanko
I look stupid in that quote, it should have been the border of the level :(
Hey it looks good on ya! ;)

Gohan43331 04-13-2002 08:43 AM

Thanks a bunch guys... (Maybe sometime I'll actually be able to test this :D, but for now...my two playerhouses in one level is fine for me ;) )

If you want to see it, pm me for the link to the zip on my site...I'd like to see if it would work correctly. (Right now, the lines are up to 40+ npcs in one level :P )


All times are GMT +2. The time now is 08:36 PM.

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