/npc command

11/09/2009 00:11 Santa#1
Hi, i was trying to create a Command for the CoFuture source and i have this completed
PHP Code:
                    if (Splitter[0] == "/npc")
                    {
                        
Start.Npcs.Clear();
                        
Database.LoadNpcs();
                        return 
2;
                    } 
If anyone could please let me know whats wrong with it, i have also tried doing Database.LoadTnpcs(); and that did not work.
11/09/2009 00:24 raidenx123#2
you should load them at startup o.o
11/09/2009 00:36 Santa#3
Quote:
Originally Posted by raidenx123 View Post
you should load them at startup o.o
Yeah, it does, but this is just so i don't have to restart the server every time I move a npc. I figured it out though.

#request Close
11/09/2009 00:54 raidenx123#4
hmmm thats actually a bit smart :P
11/09/2009 10:49 Korvacs#5
I thought i had already written a command for that in the source lol
11/09/2009 10:57 Kiyono#6
Maybe he uses the 1.0 version which doesn't have that many commands.
11/09/2009 11:04 Korvacs#7
Weird that people would remove useful commands, but whatever.
11/09/2009 11:53 pro4never#8
Yah 1.0 is missing alot of stuff... the most notably that I saw was that there seems to be very little way to control what skills are magic dmg and what is ph. Was surprised they didn't have a simple way of controlling it by saying what type of attack it was in the skills splitter (I didn't take a huge look at the source though so maybe I was missing where it was controlled)


They are missing a few gm commands but seeing as it's virtually identically structured, adding them in again is ridiculously easy.