Script para Npc Hada
unknown
javascript
3 years ago
539 B
23
Indexable
hada();
function hada() {
var posX = npc.getX();
var posY = npc.getY();
var posZ = npc.getZ();
var newPosX = Math.random() * 50 - 5 + posX;
var newPosZ = Math.random() * 50 - 5 + posZ;
npc.executeCommand("dialog send hada Hada " + player.getName());
npc.executeCommand("give 4145 " + player.getName());
npc.executeCommand("playsound jinryuudragonbc:DBC3.teleport " + player.getName());
npc.setPosition(newPosX, posY, newPosZ);
npc.setHome(newPosX, posY, newPosZ);
npc.kill();
}Editor is loading...