bzmake 0 Share Posted April 19, 2015 could you give me a screen shot? I deleted the script. I was trying to use your example + the simple chicken killer? But I think the chicken killer is outdated? I'm trying to use states to start attacking a "Cow", but how would I go by doing that? // EDIT // Am I just able to create an enum state: ATTACK And say: private state getState() { if(COW_AREA.contains(getLocalPlayer())){ return State.ATTACK; ?? I think I'm missing the part where I specify the npc. How would I go about doing that? :/ Link to comment Share on other sites More sharing options...
Nuclear Nezz 2056 Author Share Posted May 1, 2015 :x I think you're asking some pretty general questions The chicken killer might be outdated, but only on a few of the API calls, the logic is still the same. You can create a State enum by doing public enum State{} You can replace State with whatever you want. Then to add values into the enum you'd just do public enum State{ ATTACK, RUN, EAT} and that's it. To access those values you'd do State.ATTACK To specify what you're attacking would be in the getNpcs().closest("npc you want to attack"); so for a cow it's getNpcs().closest("Cow") a chicken is getNpcs().closest("Chicken") I just realized I'm 11 days late on replying to this and I feel like an ass. I'm sorry ;-; Link to comment Share on other sites More sharing options...
KFC 4 Share Posted September 2, 2015 Link to the Eclipse? Link to comment Share on other sites More sharing options...
Pug 130 Share Posted September 2, 2015 Link to the Eclipse? http://dreambot.org/forums/index.php/topic/3051-a-pug-tutorial-how-to-install-eclipse/ Link to comment Share on other sites More sharing options...
KFC 4 Share Posted September 2, 2015 http://dreambot.org/forums/index.php/topic/3051-a-pug-tutorial-how-to-install-eclipse/ Pug can you add my skype. And help me for a bit? Link to comment Share on other sites More sharing options...
Pug 130 Share Posted September 2, 2015 Pug can you add my skype. And help me for a bit? sure live:pugscripting Link to comment Share on other sites More sharing options...
KFC 4 Share Posted September 2, 2015 sure live:pugscripting added Link to comment Share on other sites More sharing options...
hitsuu 0 Share Posted November 12, 2015 Not quite sure what public boolean match(GroundItem gi){ means or does? also public boolean match(GameObject go){ Another thing, I've noticed you have gameObject in an if statement. I've been trying to use gameobject in my if statements in my script but it says they aren't compatible.. I will upload that portion of the code when I get home. Link to comment Share on other sites More sharing options...
quan solo 0 Share Posted January 23, 2016 Is there any way you could put out a voice over tut? I used to mess around creating private servers back in the day, but haven't scripted in a LONG time. I'd love to get back into it and help the community out with various scripts. Link to comment Share on other sites More sharing options...
Dreamlicker 750 Share Posted January 23, 2016 Is there any way you could put out a voice over tut? I used to mess around creating private servers back in the day, but haven't scripted in a LONG time. I'd love to get back into it and help the community out with various scripts. Check out this thread =] http://dreambot.org/forums/index.php/topic/3556-dreamlickers-video-tutorials/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.