You are not logged in.
Pages: 1
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
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
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:
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
Hum it's a BIG mistake lol
I wanted to put "can't", sorry
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
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
I don't know
Nico$
Offline
I think Killingspree and Multikill rewards would be a very nice idea
Offline
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
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
Thank you !
This is perfect, so never mind my previous post
But btw. this is not documented yet, is it? this would mean i have to go to the eye doctor
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
It is not in the doc because it is not very used ^^
Nico$
Offline
Hi
KoSH are you going to release this ?
It would be very nice many people i think !
#M!$t3rY'
Offline
Hi Mistery
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
Pages: 1