mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Tribal totem quest log now shows quest as complete after finishing quest
This commit is contained in:
parent
3bbe96e3a0
commit
fd9eaca1f3
1 changed files with 15 additions and 10 deletions
|
|
@ -19,33 +19,38 @@ class TribalTotem : Quest("Tribal Totem",126,125,1,200,0,1,5){
|
|||
override fun drawJournal(player: Player?, stage: Int) {
|
||||
super.drawJournal(player, stage)
|
||||
var line = 11
|
||||
val started = player?.questRepository?.getStage("Tribal Totem")!! > 0
|
||||
|
||||
if(stage == 0){
|
||||
if(!started){
|
||||
line(player,"I can start this quest by speaking to !!Kangai Mau?? in",line++)
|
||||
line(player,"!!Shrimp & Parrot?? restaurant in Brimhaven.",line++)
|
||||
line += 1
|
||||
line(player,"To complete this quest I need:",line++)
|
||||
line(player,"!!Level 21 Theiving??",line++, player?.skills?.getStaticLevel(Skills.THIEVING)!! >= 21)
|
||||
}
|
||||
else{
|
||||
else if(started && stage != 100){
|
||||
if(stage >= 10){
|
||||
line(player,"I agreed to help !!Kangai Mau?? on Brimhaven recover",line++,stage>15&&stage!=100)
|
||||
line(player,"the tribal totem stolen from his village by",line++,stage>15&&stage!=100)
|
||||
line(player,"I agreed to help !!Kangai Mau?? on Brimhaven recover",line++,stage>15)
|
||||
line(player,"the tribal totem stolen from his village by",line++,stage>15)
|
||||
line(player,"!!Lord Handelmort??.",line++,stage>10)
|
||||
}
|
||||
if(stage >= 20){
|
||||
line(player,"I found a package due for delivery to !!Lord Handelmort??",line++,stage>25&&stage!=100)
|
||||
line(player,"at the !!G.P.D.T. Depot??, and swapped the label for the",line++,stage>25&&stage!=100)
|
||||
line(player,"!!Wizard Cromperty's?? experimental teleport block.",line++,stage>25&&stage!=100)
|
||||
line(player,"I found a package due for delivery to !!Lord Handelmort??",line++,stage>25)
|
||||
line(player,"at the !!G.P.D.T. Depot??, and swapped the label for the",line++,stage>25)
|
||||
line(player,"!!Wizard Cromperty's?? experimental teleport block.",line++,stage>25)
|
||||
}
|
||||
if(stage >= 30){
|
||||
line(player,"I got the !!G.P.D.T.?? men to deliver the teleport block to",line++,stage>35&&stage!=100)
|
||||
line(player,"!!Lord Handelmort?? and teleported myself inside.",line++,stage>35&&stage!=100)
|
||||
line(player,"I got the !!G.P.D.T.?? men to deliver the teleport block to",line++,stage>35)
|
||||
line(player,"!!Lord Handelmort?? and teleported myself inside.",line++,stage>35)
|
||||
}
|
||||
}
|
||||
else if(stage == 100){
|
||||
if(stage == 100){
|
||||
line(player,"After bypassing the traps and security inside the mansion I was able",line++)
|
||||
line(player,"to reclaim the totem, and take it back to !!Kangai Mau??, who rewarded",line++)
|
||||
line(player,"me for all of my help.",line++)
|
||||
line += 1
|
||||
line(player,"<col=FF0000>QUEST COMPLETE!</col>",line++ +1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -75,4 +80,4 @@ class TribalTotem : Quest("Tribal Totem",126,125,1,200,0,1,5){
|
|||
player.removeAttribute("TT:DoorUnlocked")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue