Follow us on Twitter
Digital Concepts Website!

Npc Killer v0.1

OS Windows Linux Macintosh Mode Standalone Grid Simian Grid Diva Grid Compat OpenSim Diva Disto Langage Ossl
  • Titre
    Npc Killer v0.1
  • Createur
    djphil
  • Permissions
    Copy | Modify | Transfert
  • Gratuit
    Oui
  • Page vues
    3862 fois
  • Favoris
    Ajouter aux favoris
  • J'aime
  • Voter
    (0 votes)

Voici un simple petit script pour tuer tous les bots npc d'une région.

Les fonctions NPC n'étant pas implémentées dans Aurora-Sim, ces scripts ne fonctionneront donc pas sur ce type de server. Heureusement sur Aurora-Sim nous avons les BotFunctions (exclusives).
Npc Killer v0.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Npc Killer v0.1
 
float range = 512.0;
 
default
{
 state_entry()
 {
 llSetText("Npc Killer v0.1\nClic moi!",<1,1,1>, 1.0);
 }
 
 touch_start(integer anumber)
 {
 llSensor("",NULL_KEY,NPC, range ,PI);
 }
 
 sensor(integer detected)
 {
 integer i;
 for (i = 0; i < detected; i++)
 {
 osNpcRemove (llDetectedKey(i));
 llOwnerSay(llDetectedName(i) + " nous a quitté!");
 }
 }
}