Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
how do you change the default tools for a server
« previous
next »
Print
Pages: [
1
]
Author
Topic: how do you change the default tools for a server (Read 1644 times)
Flying Ace
January 22, 2009, 10:05:28 AM
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.
Ad Bot
Advertisement
Flying Ace
January 22, 2009, 06:08:14 PM
anyone if there is away please do tell..
Sankuro
January 22, 2009, 07:56:17 PM
It's either easy or near-impossible.
Flying Ace
January 22, 2009, 08:11:34 PM
Quote from: Sankuro on January 22, 2009, 07:56:17 PM
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
»
Chrono
January 22, 2009, 09:04:52 PM
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.
Space Guy
January 23, 2009, 11:26:11 AM
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.
Flying Ace
January 24, 2009, 12:45:46 PM
thats in the main CS right? or is that under config/server
Space Guy
January 24, 2009, 02:52:55 PM
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.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
how do you change the default tools for a server