Raised This Month: $ Target: $400
 0% 

Change item name, and change attribute though code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-23-2013 , 17:53   Change item name, and change attribute though code?
Reply With Quote #1

So I have two questions:

How may I change an item's name upon giving a player a weapon?

With SpawnWeapon(); I can't just use attribute...

PHP Code:
        "2024"
        
{
            
"name"                    "item name text override"
            "attribute_class"        "item_name_text_override"
            "attribute_type"        "string"
            "hidden"                "1"
        

Because the attribute string is... a string and putting "2024 ; "ItemName"" doesn't make any sense at all.

Secondly, how can I add an attribute to a player's existing weapon? For example, depending on the player's disguise, I want to add the airdash attribute to their weapons (triple jump) and remove it otherwise. Would I really have to just remove their weapon, and SpawnWeapon again or can I append the attribute in some way?
__________________
Chdata is offline
 


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 21:30.


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