Author Topic: how do you change the default tools for a server  (Read 1641 times)

how do you change the default tools you spawn with when some one spawns/respawns on my server
without  a mini-game, i was wanting to add to more items duplicator ect..

Yes i can code basic stuff i just need to know where i would find the script that holds this.

anyone if there is away please do tell..

It's either easy or near-impossible.

It's either easy or near-impossible.

i know it can be done, if not then tell me how do you spawn with hammer, printer and wrench? tell me that if you think its impossible
« Last Edit: January 22, 2009, 08:25:37 PM by Flying Ace »

Try packaging the GameConnection::spawnPlayer(%this)  function, and have it check if they're not in a minigame. If not, give them certain items.

I'm sure someone will drop by and give some code.

You could try editing or replacing Player::giveDefaultEquipment (Might be GameConnection::, I forgot) to give them your tool set instead of the Hammer, Printer or Wrench. It's only called outside of minigames.

thats in the main CS right? or is that under config/server

In server.cs.

However, what you could try is making it a prefs file under config/server to edit. Like, having it read a list of up to five tools:
Code: (config/server/EquipmentPrefs/list.txt) [Select]
Hammer
Wrench
Printer
... and then giving that to players by the method I said.