|
hey i have download arkitori source and i run this for me and some friend... but alot of command not working like ::npc or :pawnpc etc i tryed to fix that for like 2 day and i forgot what base of source i use -_-
plz help a mate
"arkitori source" "i forgot what base of source i use".
For the commands, what do you want them to do?
I believe the commands such as ::Item, ::getnpc ect at least on the normal release of Vencillio aren't added in. I had to manually had them in myself. Assuming that's the base you are on I can try to locate my commands and let you know.
vencilio uses the admin console for those types of commands generally. i can't remember if it had a npc spawn command because i never really had any use for it i would just transmog into the npc if i needed to see if they worked.
If you are looking for a command that permanently spawns the npc in you will probably need to write it yourself so that the command edits your npc spawns.
I couldn't figure out how to use the snipping tool. If someone could help me out that be awesome.
Anyway, here's the getNpc code for Vencillio:
File: DeveloperCommand.java
case "getnpc" :
int npcResults = 0;
String npcSearch = " ";
npcSearch += parser.nextString();
while (parser.hasNext()) {
npcSearch += " " + parser.nextString();
}
player.send(new SendMessage("Searching for: <col=255>" + npcSearch + "</col>"));
for (NpcDefinition npcDef : GameDefinitionLoader.getNpcDefinitions().values()) {
try {
if (npcDef.getName().toLowerCase().contains(npcSearch .toLowerCase())) {
player.send(new SendMessage("<col=255>" + npcDef.getName() + "</col> - <col=255>" + npcDef.getId() + "</col>"));
npcResults++;
}
} catch (Exception e) {
// if there's an error (do nothing)
}
}
player.send(new SendMessage("<col=255>" + npcResults + "</col> results found."));
return true;
https://ibb.co/6sPMFvX
Last edited by DirtyCream; 05-22-2019 at 12:56 AM. Reason: trouble with img loading
it should be the ` key
edited to answer another question/issue:
what you are looking for is the code tag the button which can be found in the advanced editor here:
and you can also just enter the code version like so:(just remove the spaces after the E's)
[CODE ]your code here[/CODE ]
to get this effect:
Code:DeveloperCommand.java case "getnpc" : int npcResults = 0; String npcSearch = " "; npcSearch += parser.nextString(); while (parser.hasNext()) { npcSearch += " " + parser.nextString(); } player.send(new SendMessage("Searching for: <col=255>" + npcSearch + "</col>")); for (NpcDefinition npcDef : GameDefinitionLoader.getNpcDefinitions().values()) { try { if (npcDef.getName().toLowerCase().contains(npcSearch.toLowerCase())) { player.send(new SendMessage("<col=255>" + npcDef.getName() + "</col> - <col=255>" + npcDef.getId() + "</col>")); npcResults++; } } catch (Exception e) { // if there's an error (do nothing) } } player.send(new SendMessage("<col=255>" + npcResults + "</col> results found.")); return true;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |