Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 30.05.2006, 02:08   #1
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default Help me - AI for teleport a player

Today i started to learn something about ai. I will try to implement the scrolls that teleports players to specific citys, like scroll_of_scape_aden. The idea is summon an invisible npc that will teleports the player who summon it.

Somebody help me to codify using NASC? I know that i need to use the function InstantTeleport (CSharedCreatureData* c, int x, int y, int z), but i dont know how to get the first parameter.

Code:
class InstantTeleporterTest : default_npc
{
 parameter:
 int port_x = 1234;
 int port_y = 1234;
 int port_z = 1234;

 handler:
  EventHandler CREATED(myself)  {
	InstantTeleport(???, port_x, port_y, port_z);
  }
}
EDITED:
Sorry.. but i found one post about this:
https://postpacific.loc-online.com/f...pic.php?t=3333


Thanks!
nowak2006 is offline  
 


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. The time now is 16:21.