Author Topic: How does one change things to npc in compiled ps server  (Read 902 times)

Zarj Prax

  • Traveller
  • *
  • Posts: 33
    • View Profile
How does one change things to npc in compiled ps server
« on: July 31, 2006, 08:07:53 am »
id like to do a few things to npc's and im having a bit of dificulty,

how can i change the name of the npc lets take the Merchant npc...

in the characters table hes id # 8
ive tryed to change the table name field to another name and i get errors for the quests. that merchants no longer there
i tryed to take out the quest rows (delete them for the database) WRONG idea there got alot of other erors and crashed server.exe

i tryed changing the Merchent referance and then reuploading the xml files i created as backups..nope didnt work either..

hard to figure all this out blindly..im trying...

one other question how can i make a new npc..i tryed to add a clacker to the npcroom via mysql(myphpadmin) copied another record used (#24 clacker) and moved him first location referance 10 points off..and didnt get it to spawn when i tryed to load it via server command loadnpc Clacker

so how do you make a new npc?

thanks again for any help provided and it will be most appertiated...
(sorry im a bit tired and ill look over for errors/spelling tomarrow)


Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
Re: How does one change things to npc in compiled ps server
« Reply #1 on: July 31, 2006, 10:04:40 am »
Hey, Zarj, You have no idea how much satisfaction one can obtain from finding out things by himself ;).

The only people which could help with this are developers, which rarely visit this forum (Vengeance?). If You don't care about satisfaction, I think that again You should try catching somebody competent on irc.

Those things really are possible to discover, look in the database and xml files (sometimes peek in the source code), patience and persistence are the keys ;).

If You change the name of NPC, its quests will stop work, because quest scripts relay on npc name.
There are more then one table involved in quest processing. Check -> this thread for some information about programming quests.

Have You discovered server console yet ? You need apache + php with mysql support. Source files of web interface are in directory "www" in PS source tree. Console will allow You to do different things to npcs (I'm not sure what features work atm).
"Close the world, txEn eht nepO."