AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2Items] Item Designer - Advanced Give Item (https://forums.alliedmods.net/showthread.php?t=143586)

EMRandall13 09-08-2020 15:54

Re: [TF2Items] Item Designer - Advanced Give Item
 
I'm afraid that conflicts with the code itself. The best solution is to memorize a completely useless attribute to apply. Like 15;0 which disables random crits.

Mr.Booza090 10-17-2021 03:40

Re: [TF2Items] Item Designer - Advanced Give Item
 
L 10/17/2021 - 15:34:01: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 10/17/2021 - 15:34:01: [SM] Blaming: GiveItem.smx
L 10/17/2021 - 15:34:01: [SM] Call stack trace:
L 10/17/2021 - 15:34:01: [SM] [0] TF2Items_SetAttribute
L 10/17/2021 - 15:34:01: [SM] [1] Line 136, C:\sourcemod compile 1.3.5 hg3053\scripting\GiveItem.sp::GiveItem

anyidea ?
Linux
sourcemod build: 6516
metamod build: 1145
attribute tried to use
57 (health regen)
107 (move speed bonus)

Mr.Booza090 10-17-2021 04:02

Re: [TF2Items] Item Designer - Advanced Give Item
 
Quote:

Originally Posted by Mr.Booza090 (Post 2760831)
L 10/17/2021 - 15:34:01: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 10/17/2021 - 15:34:01: [SM] Blaming: GiveItem.smx
L 10/17/2021 - 15:34:01: [SM] Call stack trace:
L 10/17/2021 - 15:34:01: [SM] [0] TF2Items_SetAttribute
L 10/17/2021 - 15:34:01: [SM] [1] Line 136, C:\sourcemod compile 1.3.5 hg3053\scripting\GiveItem.sp::GiveItem

anyidea ?
Linux
sourcemod build: 6516
metamod build: 1145
attribute tried to use
57 (health regen)
107 (move speed bonus)


now most attributes give the same error

PC Gamer 10-17-2021 07:49

Re: [TF2Items] Item Designer - Advanced Give Item
 
Mr.Booza090, You didn't show us the command you used. However, the error is telling you that can't use attribute index of '0'. In other words, your command line is probably formatted incorrectly.

A correctly formatted command should look like the example provided to you in the first post. Like this:

sm_gi <client> <item index> <slot> <level> <quality> <preserve attribs 1/0> <hat 1/0> <tf_weapon_classname> <"attributes">

Example:
sm_gi @me 298 1 100 -1 0 0 tf_weapon_minigun "129 ; 5"
Would give you a level 100 Iron Curtain that heals you 5 hp a second

Notice the attribute section is in quotes, with 129 being the attribute number and 5 being the value.

Kylebrown10 12-07-2022 15:39

Re: [TF2Items] Item Designer - Advanced Give Item
 
Is there any way to equip weapons like the Ali Baba's Wee Booties and the Darwin's Danger Shield without crashing?

PC Gamer 12-07-2022 19:25

Re: [TF2Items] Item Designer - Advanced Give Item
 
Quote:

Originally Posted by Kylebrown10 (Post 2794692)
Is there any way to equip weapons like the Ali Baba's Wee Booties and the Darwin's Danger Shield without crashing?

You could try the '[TF2] Gimme' plugin developed by.... me. It allows for the giving of wearable weapons. Link: https://forums.alliedmods.net/showthread.php?p=2766587

Sajt 01-06-2024 08:19

Re: [TF2Items] Item Designer - Advanced Give Item
 
Does anyone know how to use it if I use it with ServerCommand for one of the Bosses.
I wrote this ServerCommand("sm_gi @me 159 2 100 5 0 0 tf_weapon_lunchbox "128 ; 1");
But this error is written by plugin.sp(280): error 001: expected token: ",", but found "-integer value-"
plugin.sp(280) : warning 215: expression has no effect
plugin.sp(280) : error 037: invalid string (possibly non-terminated string)


All times are GMT -4. The time now is 21:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.