View Full Version : 317 vent command for exact npc (x and y cords + id)
nmanpure
June 21st, 2010, 22:39
Base: Delta
Debob/Version: 2.5.2
The Problem: I need a Better Vent command
Information & Media:
I need a Vent Command that insteed of every NPC saying something just a specific NPC says something, ::talk [x cord] [y cord] [NPC ID]
witch makes tht NPC say something, simlar to the Vent command but Targets a spicific npc.
nmanpure
June 22nd, 2010, 12:53
Comon i will give whoever helps me my kill command
nmanpure
June 25th, 2010, 04:44
=[ come on......
nmanpure
June 28th, 2010, 17:02
grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrr
nmanpure
June 28th, 2010, 17:02
thats it you have caused my to 5oplte post!
Mod Medic
June 28th, 2010, 17:16
i only have Vent command not the talk one for any npc cant help ya if i find out one of those ill tell u
nmanpure
July 10th, 2010, 05:35
Well I'm codeing one tomorrow and might give it out, it's for RolePlay.
Carter
July 10th, 2010, 05:47
Isn't there one released?
nmanpure
August 7th, 2010, 14:55
idk but I will make one later
Emperor
August 7th, 2010, 14:56
NPC's have autowalk, thus making a command like this useless.
But if you seriously want one, I'll make you one..
Edit: This is an example of a command like that, not sure if it works.
if (command.startsWithIgnoreCase("Talk")) {
try {
String[] args = command.split(" ");
if (args.length == 5) {
int x = Integer.parseInt(args[1]);
int y = Integer.parseInt(args[2]);
int id = Integer.parseInt(args[3]);
String message = args[4];
}
for (int i = 0; i < server.npcHandler.maxNPCs; i++) {
NPC n = (NPC) server.npcHandler.npcs[i];
if (n.absX == X && n.absY == Y && n.npcId == id) {
n.textUpdate = message;
n.textUpdateRequired = true;
break;
}
}
} catch (Exception e) {
sendMessage("Use as ::talk X Y id Message");
}
}
nmanpure
August 22nd, 2010, 19:43
I have made a new vent command but have also added other commands withc are used to move npc to a certain spot make a npc do a emote remoe a npc of coure spawn a npc add and item to and npchave a npc follow and some more stuff, allthough these commands are only in my private selfuse server
muffin
August 22nd, 2010, 19:47
not to be a grammar Nazi but could you type it a little more clear i couldnt really understand your problem. thanks :) <---"wasnt trying to be an asshole"
nmanpure
August 24th, 2010, 03:10
I am pretty good at speeling and needless to say am pissed the fuck off by how many people complain about my grammer, then i railized my keyboard is totaly fucked up -_-
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.