mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 21:40:27 -07:00
Adventurer.kt
- Tweaked some adventure bots settings as well as added a couple POI.
This commit is contained in:
parent
a814ba6220
commit
56b02e4150
1 changed files with 9 additions and 7 deletions
|
|
@ -718,8 +718,9 @@ class Adventurer(val style: CombatStyle): Script() {
|
||||||
val magics = Location.create(2285,3146,0)
|
val magics = Location.create(2285,3146,0)
|
||||||
val coal = Location.create(2581,3481,0)
|
val coal = Location.create(2581,3481,0)
|
||||||
val crawlinghands = Location.create(3422,3548,0)
|
val crawlinghands = Location.create(3422,3548,0)
|
||||||
val gemrocks = Location.create(2825, 2997, 0)
|
val gemrocks = Location.create(2825,2997,0)
|
||||||
val chaosnpc = Location.create(2612, 9484, 0)
|
val chaosnpc = Location.create(2612,9484,0)
|
||||||
|
val chaosnpc2 = Location.create(2580,9501,0)
|
||||||
|
|
||||||
var PoiList = listOf(karamja,alkharid,feldiphills,isafdar,
|
var PoiList = listOf(karamja,alkharid,feldiphills,isafdar,
|
||||||
eaglespeek,canafis,treegnome,teak1,teakfarm)
|
eaglespeek,canafis,treegnome,teak1,teakfarm)
|
||||||
|
|
@ -776,7 +777,8 @@ class Adventurer(val style: CombatStyle): Script() {
|
||||||
canafis,treegnome,treegnome,
|
canafis,treegnome,treegnome,
|
||||||
teak1,teakfarm,keldagrimout,
|
teak1,teakfarm,keldagrimout,
|
||||||
miningguild,coal,crawlinghands,
|
miningguild,coal,crawlinghands,
|
||||||
magics,gemrocks,chaosnpc).random()
|
magics,gemrocks,chaosnpc,chaosnpc,
|
||||||
|
chaosnpc2).random()
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Optimise and adjust how bots handle picking up ground items further.
|
//TODO: Optimise and adjust how bots handle picking up ground items further.
|
||||||
|
|
@ -893,7 +895,7 @@ class Adventurer(val style: CombatStyle): Script() {
|
||||||
}
|
}
|
||||||
|
|
||||||
State.EXPLORE -> {
|
State.EXPLORE -> {
|
||||||
if (counter++ == 300) {
|
if (counter++ == 350) {
|
||||||
state = State.TELEPORTING
|
state = State.TELEPORTING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -928,14 +930,14 @@ class Adventurer(val style: CombatStyle): Script() {
|
||||||
teak1 -> 30
|
teak1 -> 30
|
||||||
miningguild -> 5
|
miningguild -> 5
|
||||||
magics,coal -> 7
|
magics,coal -> 7
|
||||||
gemrocks,chaosnpc -> 1
|
gemrocks,chaosnpc,chaosnpc2 -> 1
|
||||||
else -> 60
|
else -> 60
|
||||||
}
|
}
|
||||||
scriptAPI.randomWalkTo(poiloc,roamDistancePoi)
|
scriptAPI.randomWalkTo(poiloc,roamDistancePoi)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RandomFunction.random(1000) <= 65) {
|
if (RandomFunction.random(1000) <= 75) {
|
||||||
if (city != ge && city != ge2) {
|
if (city != ge && city != ge2) {
|
||||||
immerse()
|
immerse()
|
||||||
return
|
return
|
||||||
|
|
@ -944,7 +946,7 @@ class Adventurer(val style: CombatStyle): Script() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RandomFunction.random(20000) <= 50 && !poi) {
|
if (RandomFunction.random(20000) <= 60 && !poi) {
|
||||||
poiloc = getRandomPoi()
|
poiloc = getRandomPoi()
|
||||||
city = teak1
|
city = teak1
|
||||||
poi = true
|
poi = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue