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

Solved Having a Problem With ItemAttributes not Working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Requiesta
Senior Member
Join Date: May 2012
Location: Texas
Old 07-07-2012 , 23:20   Having a Problem With ItemAttributes not Working
Reply With Quote #1

I've been working on a plugin for my gaming clan and there seems to be a problem with the tf2items.weapons.txt file. Some of the attributes work and some do not. Here's the file:

PHP Code:
"custom_weapons_v3"
{
    
"*"
    
{
        
"*"
        
{
            
"preserve-attributes"    "1"
            "admin-flags"        "o"
            "1"             "150;1"
        
}
        
"225"
        
{
            
"quality"        "10"

            "2"            "154 ; 0"
            "3"            "156 ; 0"
        
}
        
"288"
        
{
            
"quality"        "10"

            "4"            "16 ; 15"
            
        
}
        
"310"
        
{
            
"quality"        "10"

            "2"            "2 ; 1.25"
            "3"            "125 ; -100"
            "4"            "5 ; 1.25"
        
}
        
"311"
        
{
            
"quality"        "10"
            
            "2"            "144 ; 1"
        
}
        
"331"
        
{
            
"quality"        "10"

            "2"            "205 ; 0.6"
            "3"            "206 ; 2.0"
            "4"            "177 ; 1.5"
            "5"            "125 ; -50"
        
}
        
"357"
        
{
            
"quality"        "10"

            "2"            "219 ; 1"
            "3"            "220 ; 100"
            "4"            "226 ; 1"
            "5"            "15 ; 0"
            "6"            "1 ; 0.75"
        
}
        
"424"
        
{
            
"quality"        "10"

            "2"            "87; 1.40"
            "3"            "238; 1"
            "4"            "5; 0.75"
        
}
        
"426"
        
{
            
"quality"        "10"

            "2"            "1 ; 0.4"
            "3"            "6 ; 0.5"
            "4"            "125 ; -50"
        
}

        
"574"
        
{
            
"quality"        "10"

            "2"            "154 ; 0"
            "3"            "156 ; 0"
        
}
        
"588"
        
{
            
"quality"        "10"
            
            "2"            "15 ; 0"
            "3"            "281; 1"
            "4"            "283; 1"
            "5"            "284; 1"
            "6"            "285; 1"
            "7:            :288; 1"
        
}
        
"649"
        
{
            
"quality"        "10"

            "2"            "154 ; 0"
            "3"            "156 ; 0"
            "4"            "365; 0"
        
}
        
"656"
        
{
            
"quality"        "10"

            "2"            "358; 0"
            "3"            "363; 0"
            "4"            "369; 0"
            "5"            "362; 0"
        
}
        
"730"
        
{
            
"quality"        "10"
            
            "2"            "15 ; 0"
        
}
        
    }

The main problem is the changes to the eviction notice, fists of steel, and warriors spirit (immediate problem being the warriors spirit). What did I do wrong?
__________________
YouTuber, Modder, Accountant, and somehow I still enjoy programming after all that.

Check out my YouTube Channel.

Last edited by Requiesta; 07-09-2012 at 13:58.
Requiesta is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 07-08-2012 , 01:25   Re: Having a Problem With ItemAttributes not Working
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=179352
Read the part on wildcards
__________________
DarthNinja is offline
Requiesta
Senior Member
Join Date: May 2012
Location: Texas
Old 07-08-2012 , 13:42   Re: Having a Problem With ItemAttributes not Working
Reply With Quote #3

Quote:
Originally Posted by DarthNinja View Post
so if I put the asterisk attributes below the weapon ones and just added the admin-flag and gold attribute part to all the weapons I changed, would that work?

Like so:

PHP Code:
"custom_weapons_v3"
{
    
"*"
    
{
        
"225"
        
{
            
"1"            "154 ; 0"
            "2"            "156 ; 0"
            "admin-flags"        "o"
            "3"             "150 ; 1"
        
}
        
"310"
        
{
            
"1"            "2 ; 1.25"
            "2"            "125 ; -100"
            "3"            "5 ; 1.25"
            "4"            "15 ; 0"
            "5"            "288 ; 0"
            "admin-flags"        "o"
            "6"             "150 ; 1"
        
}
        
"331"
        
{
            
"1"            "205 ; 0.6"
            "2"            "206 ; 2.0"
            "3"            "177 ; 1.5"
            "4"            "125 ; -50"
            "admin-flags"        "o"
            "5"             "150 ; 1"
        
}
        
"357"
        
{
            
"1"            "219 ; 1"
            "2"            "220 ; 100"
            "3"            "226 ; 1"
            "4"            "15 ; 0"
            "5"            "1 ; 0.75"
            "admin-flags"        "o"
            "6"             "150 ; 1"
        
}
        
"424"
        
{
            
"1"            "87 ; 1.40"
            "2"            "238 ; 1"
            "3"            "5 ; 0.75"
            "admin-flags"        "o"
            "4"             "150 ; 1"
        
}
        
"426"
        
{
            
"1"            "1 ; 0.4"
            "2"            "6 ; 0.5"
            "3"            "125 ; -50"
            "admin-flags"        "o"
            "4"             "150 ; 1"
        
}
        
"574"
        
{
            
"1"            "154 ; 0"
            "2"            "156 ; 0"
            "admin-flags"        "o"
            "3"             "150 ; 1"
        
}
        
"588"
        
{
            
"1"            "15 ; 0"
            "2"            "281 ; 1"
            "3"            "283 ; 1"
            "4"            "284 ; 1"
            "5"            "285 ; 1"
            "6"            "288 ; 0"
            "admin-flags"        "o"
            "7"             "150 ; 1"
        
}
        
"649"
        
{
            
"1"            "154 ; 0"
            "2"            "156 ; 0"
            "3"            "365 ; 0"
            "admin-flags"        "o"
            "4"             "150 ; 1"
        
}
        
"656"
        
{
            
"1"            "358 ; 0"
            "2"            "363 ; 0"
            "3"            "369 ; 0"
            "4"            "362 ; 0"
            "admin-flags"        "o"
            "5"             "150 ; 1"
        
}
        
"730"
        
{
            
"1"            "15 ; 0"
            "2"            "288 ; 0"
            "admin-flags"        "o"
            "3"             "150 ; 1"
        
}
        
"*"
        
{
            
"preserve-attributes"    "1"
            "admin-flags"        "o"
            "1"             "150 ; 1"
        
}
    }

__________________
YouTuber, Modder, Accountant, and somehow I still enjoy programming after all that.

Check out my YouTube Channel.

Last edited by Requiesta; 07-08-2012 at 13:45.
Requiesta is offline
Reply



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 00:41.


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