Results 1 to 6 of 6

Thread: NPC spawing point????

  1. #1
    Veteran siclesleon's Avatar
    Join Date
    Feb 2015
    Location
    Holland , Leeuwarden
    Posts
    184

    NPC spawing point????

    I have seen many scripts here on the forum but I whas wondering , how to create a spawnpoint of NPC's

    also , how do you make an NPC to start with :/

  2. #2

    NPC spawing point????

    Are you talking about NPCs on a server or Graal Editor?

  3. #3
    Street Boss Saint Revla's Avatar
    Join Date
    Nov 2015
    Location
    Netherlands - Europe
    Posts
    603
    PHP Code:
    function onCreated() 
      
    setshape(13232);

    function 
    onActionDied() 
      
    setlevel2("levelname"xy);

    //#CLIENTSIDE
    function onPlayerDies() 
     
    triggeraction(0.50.5"Died"null); 
    Or

    PHP Code:
    //#CLIENTSIDE 
    function onPlayerDies() {  //function for when the player dies 
     
    setlevel2("Name.nw",X,Y);  //syntax: setlevel2(LevelNameInString,x,y); 


    I can't really understand what you mean by spawning?
    The above is for when a player dies, spawn.

     Spoiler
    If you meant the below.

    If you mean regular npcs, such as objects. Then you can just place them using the NPC-Icon everywhere you want. They can spawn when player touches, set timer or if a player enters an area.
    Last edited by Saint Revla; 12-08-2015 at 12:31 AM.

  4. #4
    Veteran siclesleon's Avatar
    Join Date
    Feb 2015
    Location
    Holland , Leeuwarden
    Posts
    184
    Quote Originally Posted by Saint Revla View Post
    PHP Code:
    function onCreated() 
      
    setshape(13232);

    function 
    onActionDied() 
      
    setlevel2("levelname"xy);

    //#CLIENTSIDE
    function onPlayerDies() 
     
    triggeraction(0.50.5"Died"null); 
    Or

    PHP Code:
    //#CLIENTSIDE 
    function onPlayerDies() {  //function for when the player dies 
     
    setlevel2("Name.nw",X,Y);  //syntax: setlevel2(LevelNameInString,x,y); 


    I can't really understand what you mean by spawning?
    The above is for when a player dies, spawn.

     Spoiler
    If you meant the below.

    If you mean regular npcs, such as objects. Then you can just place them using the NPC-Icon everywhere you want. They can spawn when player touches, set timer or if a player enters an area.
    I mean like A position where a group of bandits spawns

    or trash the spawn randomly

  5. #5
    Veteran AceFighter's Avatar
    Join Date
    Jan 2014
    Location
    Netherlands - Europe
    Posts
    377
    zeg gewoon zet spawn. Haha.

  6. #6
    Big Cheese b418smitten's Avatar
    Join Date
    Aug 2013
    Location
    Australia
    Posts
    1,020
    The bottom one.
    IGN: bizrr (Milk)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •