because the options are null.
|
|
I am currently adding farming (trees) to my server but for some reason the "objectDef.containsOption"
won't read the options of the tree.
probly cause the object is null
Any ideas?Code:if (id == 8389) { if (objectDef.containsOption(0, "Rake")) { Farming.Raking(player, id); } else if (objectDef.containsOption(0, "Chop down")) { Farming.chopTree(player, id, player.getTreePatch()); } else if (objectDef.containsOption(0, "Check-Health")) { Farming.checkHealth(player, id, player.getTreePatch()); } else { player.getPackets().sendGameMessage("Use a seed on the patch."); } }

because the options are null.
So how woud that be fixed?
like sending new options to that object after growing?



so how do i need to use the configs so the tree and its options aren't a null?
If the object is null then the object would have no options, thus giving the object "null" options. More to the point how is the object null? The object exists lol
When I made my old farming system I just handled it with a boolean as the selecting an option wouldnt work
| « How would I make this capital? | InterFace Help! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |