Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...
Jälgi teemat sisse logides  

ÕPETUS:Kuidas lisada scripte RSBotile

Soovitatud postitused

Kuna hakaks igav siis m6tlesin et teen õpetuse :D

Et siis kui tahate mingit scripti lisada RSBotile, aga te ei oska..

 

Võimalusi on 2.

 

Üks võimalustest on see et tee teete ise selle readme faili ja copite koodi sinna.

 

Teen siis selle õpetuse esimesena:

 

1.Otsige millist scripti tahate lisada.

Oletame et tahate mingit Woodcuttingu scripti.

 

2.Siis teete scripts kausta uue notepad/readme faili.

RSBot -> scripts

Nimeks peate panema siis selle mille on selle scripti postitaja ytlenud.

 

Siis kui on see readme fail tehtud, copyte sinna selle pika code teksti mis seal on ja savete selle ära.

 

3.Kui see on tehtud, siis on teil vaja RSBot Launcherit.

Selle saate siit: http://www.rsbot.org/mybb/thread-4970.html?highlight=launcher

 

4.Kui see on tõmmatud siis copyte selle kõik RSBot-i kataloogi.

 

5.Kui on kopeeritud, siis avate selle launcheri.

Siis minge add script ja copyge j2lle see pikk kood sinna ja add script.

 

6.Kui see on tehtud siis vajutage compile all.

Teil ei pruugi seda 2ra teha, aga mõnedel teeb.

Kui see ei tee teil 2ra siis peate tõmbama omale selle:

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u6-oth-JPR@CDS-CDS_Developer

 

7.Kui saite selle installitud, siis vajutage uuesti compile all.

(kui te vahepeal panite selle launcheri kinni siis peate kordama punkti 5.)

 

8.Ta teeb seda umbes pool minutit v6i nii ja kui see on tehtud siis ongi teil see script olemas.

 

9.Avage siis RSBot ja otsige siis õige katekoorja alt see script ylesse.

 

10.Head Koodimist ! :)

 

Teine võimalus on siis sarnane aga natuke lihtsam:)

 

1.Otsite selle scripti mida te omale tahate.

 

2.Tõmbate selle ja copyte selle scripts kataloogi.

RSBot -> scripts

 

3.Nyyd avate RSBot launcheri.(juhul kui teil seda ei ole, siis download link on üleval!)

 

4.Avate add scripti ja copyte selle pika teksti mis oli seal failis mille te t6mbasite ja vajutate add script..Oletame et mingi powerminer.

Ehk siis avate PowerMiner.java ja copyte selle pika teksti.

 

5.Siis vajutage compile all.

Paljudel ei pruugi seda 2ra teha, siis nendel on vaja tõmmata: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u6-oth-JPR@CDS-CDS_Developer

 

6.Kui see on tehtud siis võite selle kinni panna ja avada oma RSBoti.

 

7.Otsite selle scripti õige katekoorja alt ylesse ja hakkate koodima:)

 

8.Head Koodimist!

 

 

Õpetus on 100% minu tehtud :) ja loodan et aitab kedagi :D

Jaga seda postitust


Postituse link
Share on other sites
VIP

sest sa oled heelium :D:D ja poole lihtsam on võtad selle koodirea, teed text doci, paned sellele selle nime mis seal kirjas, paned lõppu .java ja compile ja korras. mõtetu nii pikkalt mässata


signaw.png

Jaga seda postitust


Postituse link
Share on other sites
VIP

haha anna üks koht kus mölisend olen?


signaw.png

Jaga seda postitust


Postituse link
Share on other sites
Author of the topic Postitas
haha anna üks koht kus mölisend olen?

 

sest sa oled heelium[/b] ja poole lihtsam on võtad selle koodirea, teed text doci, paned sellele selle nime mis seal kirjas, paned lõppu .java ja compile ja korras. mõtetu nii pikkalt mässata

 

ytle nyyd et pole m8lisenud ? :)

Jaga seda postitust


Postituse link
Share on other sites
VIP

see pole m6lisemine , see on kompliment.


signaw.png

Jaga seda postitust


Postituse link
Share on other sites
VIP

Kuda sa compiled seda värki?

Jaga seda postitust


Postituse link
Share on other sites

SuperFighterF2p

[/code]

//Public

/* Changelog since V0.11 :

* V0.12 :timePassed

* Fixed getNPC proper, now doens't try to attack a NPC ho is falling dead.

* Randomnizes you're arrow re-equip by 10% so, equip at 50 arrows would be between 50-55

* Tweaked getAnimation()

*

* v0.13 :

* Added ALL F2P pizza's and fish to eat. (For all those fans he posted this main problem)

* V0.131 :

* Made custom eating method for array and de"bugged" it.

*

* V0.14

* Improved NPC attacking a lot, human like ftw!

*

* V0.15

* Made random running

* Fixed check for lumbridge && arrows && isRunning && if we have no food!

*

* v0.16

* Added looting of runes.

* Added randomizeTile() in NPC attack method, less bot like.

*

* V0.17

* Directly re-attacks NPC if its still alive after you eat.

*

* V0.18

* Speeded fighting method even more, now checks if NPC is dead.

*

* V0.19

* Made it eat at HP % instead of standard 25 (due complains)

*

* V0.20

* Added max efficiency option, a small speed increase. Help full on road to 99.

*

* V0.21

* Added a small fail safe, in case randoms stayed once talked. Evading ban hammer "isNPCAttackAble()".

*

* V0.22

* Changed logging and some stuff in fighting method.

*

* V0.23

* Fixed and properly does arrowNum / 5 random (random # arrows, not static value)

* Added randomizeTotal(RSTile c), even more human !

* Added debug of npc.getName() instead of static "NPC : "

* Fixed random checking, now its instant again !

* V0.231

* Added kebab support, now also eats kebab.

* V0.232

* Added fix for those who can't reload scripts.

*

* V0.24

* Added lootArrowTimer, random picks up arrows between 45-50 seconds ! (Nice xp a hour increase for rangers)

* !!NOTE DON'T DO THIS WHEN NPC'S ARE STILL AGRESIVE!!

*

* V0.25

* Some tweaking,

* * nearest NPC is now get realDistance.

* * Bone picking also uses realDistance, for example at choas altar.

* * added info box for confusion.

* * Updated HTML page.

* * Added return false, we want proper progress reports.

*

* V0.26

* Made a crucial stop, this way we still finish like a human would do.

* Added canReach, realdistanceTo works inproperiate.

* Speeded up prayer method, will check 20 times faster then original.

* Added random running, stolen and edited from Combat.java, credits to the original creators.

*

* V0.27

* Updated : isNPCInteractWithMe to the closest NPC.

* Speeded : Fighting method is speeded up !

* Added : if(quit) quit = false; on startup, in case people restart script but don't reload.

*

* V0.28

* Added average XP a hour.

*

* V0.29

* Speeded :Fighting method greatly improved, especially on moving NPC's!

* Speeded :Overall clicking.

* FailSafe :No more waiting, in case NPC is stuck behind object.

* Stableized:The mouse will not stand onto NPC anymore.

* Fixed :Inventory should no longer be filled with strange boxes anymore!

* FailSafe :Added global NPC anti-random.

* V0.291

* Added shark ID, on request by kingnaillll

* V0.292

* Increased loot attempts on arrows, on request by Sweed Raver

*

* V0.30

* Updated :Food array list, now supports ALL Runescape food. Thank you kingyowns.

* Removed :Log(npc.getName() + " is dead!"), since 0.29, this one was spamming log.

* Updated :Script supports rune arrows also now.

* Redid :HTML page, room for further improvements, further mage updates ready!

* V0.301

* Updated: updated food array with "6883, //Peach"*

* V0.302

* Updated:Random eat % now, between 40-47% !

*

* V0.31

* Added :A update system, now people will have no longer outdated version!

* Added :Potion support, yes!

* Updated :Fighting method, now only clicks 1 time at the minimap.

* Improved :Fighting method, should be WAY better on moving NPC's

* Updated :Loop return is now 1, for even faster loop.

* Added :Safe tile, for better range Xp ?

* Added :Click tile at screen instead of minimap, HUMAN STYLE!

* Updated :Random check, no more pwning by Security Gaurd.

* V0.311

* Updated: foodArray with "1969, //Spinach Roll", eat able & randoms give it.

* Added :Choose which arrows to loot, due comment by "gorgas"

* V0.312

* Added :"King Lathas" support, simply isCaged.

*/

import java.awt.Color;

import java.awt.Font;

import java.awt.Graphics;

import java.awt.Point;

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.net.URL;

import java.util.ArrayList;

import java.util.Map;

 

import javax.swing.JOptionPane;

 

import com.speljohan.rsbot.accessors.NPC;

import com.speljohan.rsbot.bot.Bot;

import com.speljohan.rsbot.event.events.ServerMessageEvent;

import com.speljohan.rsbot.event.listeners.PaintListener;

import com.speljohan.rsbot.script.Calculations;

import com.speljohan.rsbot.script.Script;

import com.speljohan.rsbot.script.Skills;

import com.speljohan.rsbot.script.wrappers.RSCharacter;

import com.speljohan.rsbot.script.wrappers.RSInterface;

import com.speljohan.rsbot.script.wrappers.RSItemTile;

import com.speljohan.rsbot.script.wrappers.RSNPC;

import com.speljohan.rsbot.script.wrappers.RSTile;

 

public class SuperFighterF2p extends Script implements PaintListener {

 

double version = 0.312;

long rangeLootTimer;

boolean isCaged, safe, multi, power, prayer, eat, pheal, doCombat = true, takeR, maxEf, maxRa, quit;

RSNPC npc;

RSTile cache, safeT;

String[] NPC;

String NPCSHIT, status;

int doPot, randomFoodPercent, toDo = 15, doThis = 0, energyRandom, attackTimer, attackXp, strengthXp, defenceXp, rangeXp, prayXp, arrowNum, randomEquip, caSe = 0, lootArrowTimer;

long startTime;

int[] arrows,

runes = new int[] { 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564 },

strP = new int[] { 119, 117, 115, 113 },

sStr = new int[] { 161, 159, 157, 2240 },

ranP = new int[] { 173, 171, 169, 2444 },

attP = new int[] { 125, 123, 121, 2428 },

sAtt = new int[] { 149, 147, 145, 2436 },

defP = new int[] { 137, 135, 133, 2432 },

sDef = new int[] { 167, 165, 163, 2442 };

 

RSItemTile getNearestGroundItemByID(int range, int id) {

int[] j = {id};

return getNearestGroundItemByID(range,j);

}

 

 

public void serverMessageRecieved(ServerMessageEvent arg0) {

if (arg0.getMessage().contains("ongratulations")) {

if(clickHereToContinue() != false)

log("Succesfully clicked at chat!");

}

}

 

boolean clickHereToContinue() {

if(getContinueChildInterface() != null) {

if(getContinueChildInterface().getText().contains("to continue")) {

return atInterface(getContinueChildInterface());

}

}

return false;

}

 

void bonesTakeBury() {

int bonesTo = 28 - getInventoryCount();

for(int i = 0 ; i

RSItemTile bones = getNearestGroundItemByID(15, 526);

if (bones != null && !isInventoryFull() && getRealDistanceTo(bones, false)

status = "Picking up Bones.";

if(atTile(bones, "Bones") != false) {

randomCheck(750);

while(getMyPlayer().isMoving())

randomCheck();

}

}

}

if(getInventoryCount(526) > 0 && isInventoryFull()){

if(!doCombat) {

while(getInventoryCount(526) != -1) {

for (int i=0; i

if(atInventoryItem(526, "Bury") != false)

randomCheck(850);

}

}

} else {

for (int i=0; i

if(atInventoryItem(526, "Bury") != false)

randomCheck(850);

}

}

}

}

 

public boolean onStart(Mapargs) {

if(args.get("arrowsNum").isEmpty()) {

arrowNum = 40;

} else arrowNum = Integer.parseInt(args.get("arrowsNum"));

 

if(args.get("NPC").isEmpty()) {

log("Using prayer only, make sure alot of bones :)");

doCombat = false;

} else NPC = args.get("NPC").split(", ");

 

if(args.get("maxRa").equals("Yes")) {

toDo = 20;

maxRa = true;

} else maxRa = false;

 

if(args.get("isCaged").equals("No")) {

isCaged = false;

} else isCaged = true;

 

if(args.get("safeT").equals("No")) {

safeT = null;

safe = false;

} else {

safeT = getMyPlayer().getLocation();

safe = true;

}

 

if(args.get("potion").equals("No")) {

doPot = 0;

} else if(args.get("potion").equals("Strenght")) {

doPot = 1;

} else if(args.get("potion").equals("SuperStr")) {

doPot = 2;

} else if(args.get("potion").equals("Ranged")) {

doPot = 3;

} else if(args.get("potion").equals("Attack")){

doPot = 4;

} else if(args.get("potion").equals("SuperAtt")) {

doPot = 5;

} else if(args.get("potion").equals("Defence")) {

doPot = 6;

} else if(args.get("potion").equals("SuperDef")){

doPot = 7;

}

 

if(args.get("loot").equals("No")) {

power = true;

} else if(args.get("loot").equals("All arrows")) {

arrows = new int[] { 892, 890, 888, 886, 884, 882 };

power = false;

} else if(args.get("loot").equals("Adamant")) {

arrows = new int[] { 890 };

power = false;

} else if(args.get("loot").equals("Bronze")) {

arrows = new int[] { 882 };

power = false;

} else if(args.get("loot").equals("Iron")) {

arrows = new int[] { 884 };

power = false;

} else if(args.get("loot").equals("Mithrill")) {

arrows = new int[] { 888 };

power = false;

} e[/code]

 

class faile plz , sinu õpetusega mina ei saanud

Jaga seda postitust


Postituse link
Share on other sites

Kommentaari lisamiseks loo konto või logi sisse

Kommenteerimiseks peate olema liige

Loo konto

Liituge meie kommuuni uue kontoga. See on lihtne!

Loo uus konto

Logi sisse

On juba konto? Logi sisse siit.

Logi sisse nüüd
Jälgi teemat sisse logides  

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.