20.02.2014, 20:02
Ok I think everyone is thinking well outside of the box or maybe I'm just not seeing it lol.
Here's what I'm trying to do.
A player types /furniture and it brings up a menu of furniture to choose from
When a player clicks on an item it will create the item setting a few things as follows for example
ObjectInfo[i][oX] = 0.0;
ObjectInfo[i][oY] = 0.0;
ObjectInfo[i][oZ] = 0.0;
ObjectInfo[i][oChair] = 1;
ObjectInfo[i][oName] = chair_01;
chair_01 is simply just text that I have written. It is not gathered from any where else. I am just simply setting the name to chair_01.
The reason for this is the player can then use /furniedit which brings up a menu of all the furniture in their house.
The check is done for(new object = 0; object < sizeof(ObjectInfo) object++)
This shows Object ID &d (54) Name %s (chair_01) (the number which is "object" and the name which is now a string ObjectInfo[object][Name])
Are you guys following me? I'm not trying to for example do this
/setname "id" "namehere"
new id = first bit of text
new name = second bit of text
Here's what I'm trying to do.
A player types /furniture and it brings up a menu of furniture to choose from
When a player clicks on an item it will create the item setting a few things as follows for example
ObjectInfo[i][oX] = 0.0;
ObjectInfo[i][oY] = 0.0;
ObjectInfo[i][oZ] = 0.0;
ObjectInfo[i][oChair] = 1;
ObjectInfo[i][oName] = chair_01;
chair_01 is simply just text that I have written. It is not gathered from any where else. I am just simply setting the name to chair_01.
The reason for this is the player can then use /furniedit which brings up a menu of all the furniture in their house.
The check is done for(new object = 0; object < sizeof(ObjectInfo) object++)
This shows Object ID &d (54) Name %s (chair_01) (the number which is "object" and the name which is now a string ObjectInfo[object][Name])
Are you guys following me? I'm not trying to for example do this
/setname "id" "namehere"
new id = first bit of text
new name = second bit of text