Author Topic: Some questions about customising your own server.  (Read 2287 times)

Some questions about customising your own server.
« on: August 17, 2013, 08:22:18 pm »
As the title says I'd like to know how I can disable NPC's both guards and NPC's in encounters to stop looting corpses.
For FOnline 2238, it's a private server where I have access to the scripts btw.

And while I am asking could someone explain the "`setreputation" command and make custom traders.  :)
« Last Edit: August 19, 2013, 04:08:41 pm by Svhirs »

Offline Ganado

  • Moderator
  • Dishonest Abe
Re: Some questions about customising your own server.
« Reply #1 on: September 13, 2013, 06:33:00 pm »
I have not tested it myself, but a search of "loot" in all files shows me the function
Code: [Select]
bool LootCritter(Critter& npc, uint crId, bool lootEx, uint16 hexX, uint16 hexY) in main_planes.fos
which looks promising.

Edit: If you just replace the code inside the function definition with
Code: [Select]
return false; it will successfully make guards unable to loot, but the NPC that would have looted you will just become "busy" after walking up to your corpse. Messing around with when the function returns true or false should get you somewhere.
« Last Edit: September 13, 2013, 06:57:03 pm by Ganado »
Error while opening cfg file: spawnnpc.cfg
Shit! Damn admins! Always ruining my fun! I guess I'll talk to them. WITH MY FISTS!!!! No seriously, I will write them a nice email or make a thread on the forums or something. Thanks!