Raised This Month: $12 Target: $400
 3% 

[TF2Items] Item Designer - Advanced Give Item


Post New Thread Reply   
 
Thread Tools Display Modes
EMRandall13
Junior Member
Join Date: Sep 2016
Old 09-08-2020 , 15:54   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #161

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.
EMRandall13 is offline
Mr.Booza090
New Member
Join Date: Oct 2021
Old 10-17-2021 , 03:40   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #162

L 10/17/2021 - 154:01: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 10/17/2021 - 154:01: [SM] Blaming: GiveItem.smx
L 10/17/2021 - 154:01: [SM] Call stack trace:
L 10/17/2021 - 154:01: [SM] [0] TF2Items_SetAttribute
L 10/17/2021 - 154: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 is offline
Mr.Booza090
New Member
Join Date: Oct 2021
Old 10-17-2021 , 04:02   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #163

Quote:
Originally Posted by Mr.Booza090 View Post
L 10/17/2021 - 154:01: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 10/17/2021 - 154:01: [SM] Blaming: GiveItem.smx
L 10/17/2021 - 154:01: [SM] Call stack trace:
L 10/17/2021 - 154:01: [SM] [0] TF2Items_SetAttribute
L 10/17/2021 - 154: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
Mr.Booza090 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 10-17-2021 , 07:49   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #164

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.
PC Gamer is offline
Kylebrown10
Junior Member
Join Date: Oct 2021
Old 12-07-2022 , 15:39   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #165

Is there any way to equip weapons like the Ali Baba's Wee Booties and the Darwin's Danger Shield without crashing?
Kylebrown10 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-07-2022 , 19:25   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #166

Quote:
Originally Posted by Kylebrown10 View Post
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
PC Gamer is offline
Sajt
Junior Member
Join Date: Apr 2023
Old 01-06-2024 , 08:19   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #167

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)
Sajt is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:39.


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