Thread: Isn't adding Add-logs option

Results 1 to 5 of 5
  1. #1 Isn't adding Add-logs option 
    Member Isn't adding Add-logs option Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    26
    Posts
    1,410
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    I'm sure I've got everything i need and all in the right place, but it won't show the add-log option..

    Code:
    } else if (objectDef.name.toLowerCase().contains("fire")) {
    						if (objectDef.containsOption(4, "Add-logs")
    								&& Bonfire.addLog(player, object, item))
    					return;
    Code:
      case "fire":
                                            if(objectDef.containsOption(4, "Add-logs"))
                                                    Bonfire.addLogs(player, object);
                                            break;
                                    default:
    Reply With Quote  
     

  2. #2  
    L O S E Y O U R S E L F
    Format's Avatar
    Join Date
    Aug 2013
    Posts
    2,311
    Thanks given
    1,131
    Thanks received
    1,461
    Rep Power
    5000
    Where did you actually implement the option "add-logs"?


    Reply With Quote  
     

  3. #3  
    Member Isn't adding Add-logs option Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    26
    Posts
    1,410
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    Objecthandler
    Reply With Quote  
     

  4. #4  
    L O S E Y O U R S E L F
    Format's Avatar
    Join Date
    Aug 2013
    Posts
    2,311
    Thanks given
    1,131
    Thanks received
    1,461
    Rep Power
    5000
    Shouldn't you create the option in an ObjectDefinitions Class?


    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2010
    Posts
    2,218
    Thanks given
    170
    Thanks received
    262
    Rep Power
    0
    Code:
      if(objectDef.containsOption(4, "Add-logs"))
    Is this is even the correct id?

    Code:
      if(objectDef.containsOption(4 <----, "Add-logs"))
    + I wouldn't do it this way

    Code:
    if (id == idhere && object.getX == xc && object.getY == yc)) {
    Bonfire.addLogs(player, object);
    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. Replies: 10
    Last Post: 08-10-2010, 10:08 AM
  2. Adding "Add Models" to the Jframe
    By Stapler in forum Tutorials
    Replies: 6
    Last Post: 07-27-2010, 09:34 AM
  3. Replies: 3
    Last Post: 05-09-2010, 09:36 PM
  4. Replies: 9
    Last Post: 07-25-2009, 05:36 AM
  5. Need Help On Adding These Logs[delta].
    By digistr in forum Help
    Replies: 0
    Last Post: 03-20-2009, 03:27 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •