Skip to content

Instantly share code, notes, and snippets.

View titandino's full-sized avatar
😊
Working on Darkan

Trenton Kress titandino

😊
Working on Darkan
View GitHub Profile
@titandino
titandino / cutscene-after.kt
Last active April 4, 2024 14:04
cutscenes before and after
player.cutscene {
endTile = Tile.of(3191, 5495, 0)
fadeInAndWait()
player.setMiniquestStage(Miniquest.HUNT_FOR_SUROK, 4)
dynamicRegion(if (tile1.tileHash == fromPortal.tile.tileHash) tile2 else tile1, 396, 684, 5, 5)
val surok = npcCreate(7002, 15, 20, 0)
playerMove(23, 23, Entity.MoveType.TELE)
surok.faceTile(tileFromLocal(19, 22))
camLook(18, 22, 0)
camPos(25, 5, 12000)
@titandino
titandino / run-folia
Created January 4, 2024 00:43
folia-run-opts
java -Xms16G -Xmx48G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar folia.jar nogui
java -Xms16G -Xmx48G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar folia.jar nogui
@titandino
titandino / project-thread.txt
Last active May 10, 2022 20:32
Project Thread
[CENTER][IMG]https://cdn.discordapp.com/attachments/118102728026095623/687117716544553010/LogoBannerBackground.png[/IMG][/CENTER]
[ADMIN=About]
[B][SIZE=3]After open-sourcing the world server and core library, I thought it would be fitting to make this into a project thread as well where updates and development can be better tracked than prioritizing the advertisement thread.
Darkan's goal is to be a base that people can use to extend on that actually has a goal to complete the base Runescape game content rather than solely focusing on producing just another useless, empty framework with basic walking/combat that nobody is interested in using. We want to continuously refactor and build upon a long-standing project rather than repetitively re-invent the wheel to no avail. That being said, the design of the project is also meant to encourage contribution to the project rather than copy-pasting and hosting it. This means that the authentication service as well as lobby/social are closed source yet public-facin
@titandino
titandino / convar-var-varbit relation.md
Created July 11, 2021 19:18
convar/var/varpbit relations

Found more information about ConVars if people are curious on use cases. I think I will be implementing them into my API as an example for how to use them now. I thought they were entirely unrelated to true vars. I don't know which var domain cracksmoke is getting "convars" from but it looks like it actually could be some relevant ones. Either that, or them changing doesn't always trigger the onChange event. But here's an example:

I am doing the archaeology tutorial. I uncover the centurion remains (objectId: 115425) and check var changes:

ConVar change

The object definition for that ID is as follows:

com.darkan.cache.def.objects.ObjectDef {
@titandino
titandino / itemlist.txt
Created July 6, 2021 18:22
Items & Item Params for RS 919
This file has been truncated, but you can view the full file.
//Item dump rev919
0 - Dwarf remains - { 31 (INT) = 1, 1397 (INT) = 1, }
1 - Toolkit - { 31 (INT) = 1, 1397 (INT) = 1, }
2 - Cannonball - { 537 (VORBIS) = 4165, 764 (INT) = 34, 2195 (INT) = 1, 2640 (INT) = 14, 2641 (INT) = 61, 2645 (INT) = 35, 2646 (INT) = 34, 2650 (ITEM) = 4 (Ammo mould), 2653 (INT) = 4, 2675 (STRUCT) = 43263, 2696 (INT) = 14, 2697 (INT) = 256, }
3 - Nulodion's notes - { 31 (INT) = 1, 1397 (INT) = 1, }
4 - Ammo mould - { 537 (VORBIS) = 4166, 770 (STAT) = 13(Smithing), 771 (INT) = 35, }
5 - Instruction manual - { 537 (VORBIS) = 4166, 1397 (INT) = 1, }
6 - Cannon base - { 537 (VORBIS) = 4165, 764 (INT) = 34, 2195 (INT) = 30, 4341 (INT) = 1, }
7 - - { }
8 - Cannon stand - { 537 (VORBIS) = 4165, 764 (INT) = 34, 2195 (INT) = 30, 4341 (INT) = 1, }
@titandino
titandino / structs.txt
Created July 6, 2021 17:58
Struct values for RS 919
This file has been truncated, but you can view the full file.
//Structs dump rev919
0 - {
130 (GRAPHIC) = 22452,
131 (GRAPHIC) = 22457,
134 (GRAPHIC) = 22453,
135 (GRAPHIC) = 22454,
}
1 - {
460 (INT) = 11,
462 (STRING) = Skeletons are undead, so Magic is your best bet against them. Skeletons can be found in Edgeville Dungeon or Varrock sewers.,
@titandino
titandino / enums.txt
Created July 6, 2021 17:58
Enum values for RS 919
This file has been truncated, but you can view the full file.
//Enums dump rev919
0 - <INT, INT> - null - 0 {
}
1 - <INT, INT> - null - 0 {
}
2 - <INT, INT> - null - 0 {
}
package com.rs.game.player.content.skills.crafting.urns;
import com.rs.game.item.Item;
import com.rs.game.player.Player;
import com.rs.game.player.Skills;
import com.rs.game.player.content.dialogue.Conversation;
import com.rs.game.player.content.dialogue.statements.MakeXStatement;
import com.rs.game.player.content.skills.magic.Rune;
import com.rs.plugin.annotations.ItemClickHandler;
import com.rs.plugin.annotations.NPCDropHandler;
@titandino
titandino / HighestAbsorbs.md
Last active March 1, 2020 04:13
Showing the highest damage soaking armor items for each style

Melee soaking:

  • 4712 (Ahrim's robe top) - 10%
  • 4868 (Ahrim's robe top (deg)) - 10%
  • 4869 (Ahrim's robe top 75) - 10%
  • 4870 (Ahrim's robe top 50) - 10%
  • 4871 (Ahrim's robe top 25) - 10%
  • 12873 (Battle robe top (deg)) - 8%
  • 12874 (Battle robe top 80) - 8%
  • 12875 (Battle robe top 60) - 8%
  • 12876 (Battle robe top 40) - 8%