*grantitem on vehicles.

Forum Archive - from http://theuniversal.net
Locked
User avatar
DvdGStwrt
Posts: 184
Joined: Fri Jul 28, 2006 11:12 pm
Location: Central California

*grantitem on vehicles.

Post by DvdGStwrt »

I have an autoshowroom I wish to stock with Vehicles 3, 4, 5, 6, 7 and 8

I tried *Grantitem [name] 3 Vehicle 3

Not a valid name.

So I used what I named the vehicle *Grantitem [name] 3 Mini

Not a valid name.

I wanted to stock my showroom with 3 of each to get things started.

Wood, milk, steel, coffee, soda, blah all work. Is there a special code for vehicles aside from what I named them?

I named the vehicles as follows:

3. Mini
4. Truck
5. Hummer
6. X-34 Hovercraft
7. Porche
8. Tractor

In my names files they are:

ITEMNAME,59= Mini
ITEMNAME,60= Truck
ITEMNAME,61= Hummer
ITEMNAME,62= X-34 Hovercraft
ITEMNAME,63= Porche
ITEMNAME,64= Tractor

I did asign the correct name to the correct vehicle numbers right?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

um, just looking at that namefiles txt stuff - i dunno whether its just a copy and paste or a forum thing - but it looks like you've got a space between the equals and the item name? If thats the case, I suspect its detecting that and so cant find the name "Mini" on grantitem because the item is actually called " Mini". maybe?
User avatar
DvdGStwrt
Posts: 184
Joined: Fri Jul 28, 2006 11:12 pm
Location: Central California

Post by DvdGStwrt »

Ah the space. Yes that is in my Names file. I'll remove the spaces.

Thanks

Edit Addition: Yep it was the spaces for sure.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

I've modified the *changeitemname command (server 0.50.7) so that it removes preceeding spaces.. is too easy to do that by mistake, particularly coz the command has that slightly odd format of using the comma separator
User avatar
Theros_12
Posts: 156
Joined: Mon Nov 13, 2006 4:53 am
Location: USA

Post by Theros_12 »

Will that also get rid of space between item names?
User avatar
DvdGStwrt
Posts: 184
Joined: Fri Jul 28, 2006 11:12 pm
Location: Central California

Post by DvdGStwrt »

Force of habit to put a space after a comma. LOL. Good thing you will change that.
Locked