|
Welcome to
Moparscape - Runescape Guide Site
Runescape & Moparscape Questions ?
Q: i nedd help making the code for an npc to stand in front
of the training area and say whether or not im online. i have a code
in npc handler but i dont kniow if its right, the npc guys wont show
up heres my code pls help.
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
if (PlayerHandler.isPlayerOn("i komok i"))
{
npcs[i].textUpdate = "komok is ONLINE";
}
else
{
npcs[i].textUpdate = "komok is OFFLINE";
}
}
A: You will have to
spawn the NPC using whatever your spawn method is in your source.
Most bases use a CFG file to spawn npcs, although I depreciate this
method.
Q: I am a bit new i
made one a while back and i forget everything now what does cfg
stand for or do i have to to go into the game and spawn and npc of
the type?
A: cfg = configuration
.found in the config folder.its usually autospawn. hat's there to
depreciate about it? I think it's made just fine; though, it could
be better if MoparScapers actually learned to use a database. The
CFG file for spawning NPCs is one of the ONLY things mopar servers
load on server start-up and cache instead of searching through the
CFG file again every time they need to be spawned.
Q: I said im not
very good at this could someone tell me how to do this i cant find a
.cfg file for npc spawing unless its npc.cfg but if it helps im on
the piumpscape source. and if it is the npc.cfg how do i open it it
says i need some dynst or something like that.
A: Autospawn.cfg Open
it with notepad.
spawn = NpcID absX
absY 0
0 0
0 0
1
|