Thread: Weilding a rocktail instead of eating

Results 1 to 2 of 2
  1. #1 Weilding a rocktail instead of eating 
    Banned
    Join Date
    Jul 2012
    Age
    29
    Posts
    529
    Thanks given
    7
    Thanks received
    26
    Rep Power
    0
    I just added a rocktail to my itemdef, and i also added rocktail to my food class and for some reason when i click eat, it weilds the rocktail instead of eatings it. How can i fix it? this is the itemdef code

    Code:
    case 15272:
    		itemDef.modelID = 48728;
    			itemDef.name = "Rocktail";
    			itemDef.description = "Rocktail".getBytes();
    			itemDef.modelZoom = 1332;
    			itemDef.modelRotation1 = 499;
    			itemDef.modelRotation2 = 1926;
    			itemDef.modelOffset1 = 3;
    			itemDef.modelOffset2 = 0;
    			itemDef.aByte154 = -11;
    			itemDef.groundActions = new String[5];
    			itemDef.groundActions[2] = "Take";
    			itemDef.actions = new String[5];
    			itemDef.actions[4] = "Drop";
    			itemDef.actions[1] = "Eat";
    			break;
    Reply With Quote  
     

  2. #2  
    Donator
    Trivium's Avatar
    Join Date
    Nov 2009
    Posts
    290
    Thanks given
    21
    Thanks received
    88
    Rep Power
    48
    Shouldn't eat be at the 0 index?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Help with Weilding an item
    By ChaoticPvp in forum Help
    Replies: 1
    Last Post: 11-15-2011, 02:16 AM
  2. [pi] items not weilding in the right spot [pi]
    By disasterscape in forum Help
    Replies: 0
    Last Post: 12-08-2010, 12:57 PM
  3. Rocktail help....
    By Restless Soul in forum Help
    Replies: 5
    Last Post: 11-10-2010, 08:28 PM
  4. weilding custom items
    By kaden in forum Help
    Replies: 1
    Last Post: 08-29-2009, 02:32 PM
  5. duel weilding? [508]
    By wildcard in forum Help
    Replies: 9
    Last Post: 02-28-2009, 09:52 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •