ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 07-Nov-10 05:26:41

soak
BETA Tester
Registered: 03-Sep-10
Posts: 23

Re: The !give command

I have recently made a lua script to reward players for killing/losing sprees. After every 5 kills or deaths, the player is given a reward.

Currently I'm planning on using the !give command to provide the player with these rewards - ammo health etc. Problem is, when you give a player a single item (like a panzer) it only spawns on the ground in front of them. Some items also seems to have entirely different names, such as the mg42 and fg42 - I haven't been able to spawn either of these weapons.

So two questions really:

Is there some way to add inventory slots to the player?
Can someone provide a list of things that can be "given"?

Now theoretically I know both of these things are possible, because when you !give all, the player is given every weapon, and they are added directly to the inventory.

Soak

Offline

#2 07-Nov-10 12:57:13

Nico$
N!tmod Developer
From: France
Registered: 30-Mar-10
Posts: 80
Website

Re: The !give command

If you want to give a specific item to a player it will drop from the player, but if you give "all", "weapons", "health", "ammo" or "skill",the player will have them on him. You can't put only one weapon in the player's inventory.

There is the list of items :
-Small Health (no model)
-Med Health
-medicheal
-Hot Meal
-Knife
-Thompson
-Sten
-MP40
-Panzerfaust
-Flamethrower
-Ammo Pack (give all ammo for your weapons)
-Binoculars (just the model, you can't take it)
-K43 Rifle
-K43 Rifle Scope
-K43 (grenade launcher)
-M1 Garand (grenade launcher
-Garand
-M1 Garand Scope
-FG42 Paratroop Rifle
-FG42 Scope
-Mortar
-Mobile MG42
-Mobile MG42 Bipod
-Objective (red flag)
-Blue Flag


Nico$

Offline

#3 21-Nov-10 07:55:54

soak
BETA Tester
Registered: 03-Sep-10
Posts: 23

Re: The !give command

First off, thanks a lot, the list has been a big help.  Some items do seem to be missing though - can I ask where you got it? (I have found that you can give user-defined stuff, like bombs, and the custom lugers and colts on my server. Cold meal is also an item.)

You mentioned: 

Nico$ wrote:

You can put only one weapon in the player's inventory.

How is this done? I have tried both !give player weapon Panzerfaust and !give player weapons panzerfaust, both with no luck.

Offline

#4 23-Nov-10 11:53:53

Nico$
N!tmod Developer
From: France
Registered: 30-Mar-10
Posts: 80
Website

Re: The !give command

Hum it's a BIG mistake lol
I wanted to put "can't", sorry yikes

For others items like bomb, they are placed in front of the guy, so they are a nonsense if you place a bomb in front of a player; this is the same thing for lugers and colt: you can't drop (or pick) them, so I didn't mentioned them.


Nico$

Offline

#5 23-Nov-10 23:26:10

soak
BETA Tester
Registered: 03-Sep-10
Posts: 23

Re: The !give command

Yeah I've had that issue. But I have found that you can pick up some of those items - it just varies. Lugers and colts for example, can picked up, they just start off with your inventory having no ammo.

Thanks anyways,
Soak

P.S. Would you guys be at all interested in adding this into the next nitmod?

Offline

#6 24-Nov-10 14:25:41

Nico$
N!tmod Developer
From: France
Registered: 30-Mar-10
Posts: 80
Website

Re: The !give command

I don't know


Nico$

Offline

#7 25-Nov-10 23:15:49

Mistery
Member
Registered: 25-Nov-10
Posts: 2

Re: The !give command

I think Killingspree and Multikill rewards would be a very nice idea   

Offline

#8 01-Dec-10 15:09:45

KoSH
Member
Registered: 14-Aug-10
Posts: 31

Re: The !give command

Hi,

i guess Nico$, you are responsible for everything having to do with shrubbot?
So i have an additional question concerning the !give command.

Is it possible / Will it be possible / Is it worth thinking about
to add following functionality to this cmd:

!give <playername | slot#> skill <Integer>

where the number after "skill" should be the amount of xp you want to give the specified player.
Also negative values should be possible to have the chance to use some different penalties.

Sometimes players do something that is not appreciated on a single server (you know, things like
spawnkilling, teamkilling, xp-whoring, etc.) and it might be an alternative for admins to be able to
distract a specified amount of xp instead of resetting the whole lot with !resetxp.

Greetz


http://www.attawaybaby.de
ET://213.239.202.61:27040


"If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?"
— Scott Adams

Offline

#9 01-Dec-10 22:02:34

Nico$
N!tmod Developer
From: France
Registered: 30-Mar-10
Posts: 80
Website

Re: The !give command

This is already possible with this syntax :

!give <playername | slot#> skills <Skill number> <Value>

Skill number :
-0  => battle sense
-1 => engineering
-2 => medic
-3 => field ops
-4 => light weapons
-5 => heavy weapons
-6 => covert ops


Nico$

Offline

#10 02-Dec-10 10:45:58

KoSH
Member
Registered: 14-Aug-10
Posts: 31

Re: The !give command

Thank you !
This is perfect, so never mind my previous post smile

But btw. this is not documented yet, is it? this would mean i have to go to the eye doctor tongue

greetz


http://www.attawaybaby.de
ET://213.239.202.61:27040


"If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?"
— Scott Adams

Offline

#11 03-Dec-10 16:04:27

Nico$
N!tmod Developer
From: France
Registered: 30-Mar-10
Posts: 80
Website

Re: The !give command

It is not in the doc because it is not very used ^^


Nico$

Offline

#12 03-Dec-10 19:55:13

Mistery
Member
Registered: 25-Nov-10
Posts: 2

Re: The !give command

Hi

KoSH are you going to release this ?
It would be very nice many people i think !

#M!$t3rY'

Offline

#13 04-Dec-10 14:10:27

KoSH
Member
Registered: 14-Aug-10
Posts: 31

Re: The !give command

Hi Mistery smile

at the moment, we do a rework of our adminlevel-system. As a part of this, the one or other
usage of this command will be added i think. I hope all starts before christmas :)but i cant promise!

Greetz


http://www.attawaybaby.de
ET://213.239.202.61:27040


"If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?"
— Scott Adams

Offline

Board footer

Powered by FluxBB