Elĩţέ Găмέrś™
March 28, 2024, 05:43:35 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Elite Gamers Community have fun and contribute to the community and be Rewarded.
 
  Home Help Search Arcade Gallery Links Staff List Login Register  

[TUT] How to make a Npc Teleport

Pages: [1]
  Print  
Author Topic: [TUT] How to make a Npc Teleport  (Read 53 times)
Knightraider
Administrator
New Comer
*

Karma: +105/-0
Posts: 44



View Profile WWW
« on: December 03, 2007, 06:23:40 pm »

This was originally posted by the moose A.K.A Unidentical so thanks to him. The orginally script was made by spare2.

Example of one :
Code:
10021:
begin
  case OptionID of
     0:
       begin
        AddNPCDialog('Hello! I am ArenaGuard. Would you like to enter the arena? ');
        AddNPCOption('Yes'1);
        AddNPCOption('Nothing, Just passing by', 255);
        NPCFinish;
       end;
     1:
       begin
        TeleportPlayer(1005, 50 50);
        NPCFinish;
       end;
   end;

Here it is how it should go:
Code:
(NPC ID):
begin
  case OptionID of
     0:
       begin
        AddNPCDialog(' What the NPC says here ');
        AddNPCOption('Option Yes'1);
        AddNPCOption(' Option no 255);
        NPCFinish;
       end;
     1:
       begin
        TeleportPlayer( Cordrs expamle to pk arena 1005, 50 50);
        NPCFinish;
       end;
   end;
« Last Edit: December 06, 2007, 07:25:00 pm by spare2 » Report Spam   Logged

Share on Facebook Share on Twitter



Pages: [1]
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy