Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. Realm Relay v1.1.0 Script Documentation
  2. designed for ROTMG v17.3+
  3. ________________________________________________________________
  4. :INDEX
  5. - Slot type info - SLOTTYPES
  6. - Object data info - OBJECTS
  7. - Packet data info - PACKETS
  8. ________________________________________________________________
  9. :SLOTTYPES
  10.  
  11. Abilities
  12. 4
  13. 5
  14. 11
  15. 12
  16. 13
  17. 15
  18. 16
  19. 18
  20. 19
  21. 20
  22. 21
  23. 22
  24. 23
  25. 25
  26.  
  27. Consumables
  28. 10
  29.  
  30. Weapons
  31. 1
  32. 2
  33. 3
  34. 8
  35. 17
  36. 24
  37.  
  38. Armor
  39. 6
  40. 7
  41. 14
  42.  
  43. Rings
  44. 9
  45. ________________________________________________________________
  46. :OBJECTS
  47.  
  48. BitmapData
  49. int width
  50. int height;
  51. byte[] bytes;
  52.  
  53. Entity
  54. short objectType
  55. Status status
  56.  
  57. Status
  58. int objectId
  59. Location pos
  60. StatData[] data
  61.  
  62. StatData
  63. int id
  64. int intValue
  65. string stringValue
  66.  
  67. id
  68. MAX_HEALTH = 0
  69. HEALTH = 1
  70. SIZE = 2
  71. MAX_MANA = 3
  72. MANA = 4
  73. XP_GOAL = 5
  74. XP = 6
  75. LEVEL = 7
  76. INVENTORY = [i for i in range(8, 20)]
  77. ATT = 20
  78. DEF = 21
  79. SPD = 22
  80. #23-25 missing from the client
  81. VIT = 26
  82. WIS = 27
  83. DEX = 28
  84. CONDITION = 29
  85. STARS = 30
  86. NAME = 31
  87. TEXTURE1 = 32
  88. TEXTURE2 = 33
  89. MERCHANT_TYPE = 34
  90. REALM_GOLD = 35
  91. PRICE = 36
  92. BOOL_CAN_ENTER_PORTAL = 37
  93. ACCOUNT_ID = 38
  94. CURRENT_FAME = 39
  95. MERCHANT_CURRENCY = 40
  96. OBJECT_ORIENTATION = 41
  97. MERCHANT_ITEMS_LEFT = 42
  98. MERCHANT_MINUTES_LEFT = 43
  99. MERCHANT_DISCOUNT = 44
  100. MERCHANT_RANK_REQUIRED = 45
  101. HEALTH_BONUS = 46
  102. MANA_BONUS = 47
  103. ATT_BONUS = 48
  104. DEF_BONUS = 49
  105. SPD_BONUS = 50
  106. VIT_BONUS = 51
  107. WIS_BONUS = 52
  108. DEX_BONUS = 53
  109. CONTAINER_OWNER = 54
  110. NAMECHANGE_RANK_REQUIRED = 55
  111. BOOL_NAME_REGISTERED = 56
  112. FAME = 57
  113. FAME_GOAL = 58
  114. GLOWING_EFFECT = 59
  115. SINK_DEPTH = 60
  116. ALT_TEXTURE = 61
  117. GUILD = 62
  118. GUILD_RANK = 63
  119. BREATH = 64
  120. XP_BOOSTED = 65
  121. XPBOOST_TIME_LEFT = 66
  122. DROPRATE_TIME_LEFT = 67
  123. LOOTTIER_TIME_LEFT = 68
  124. HEALTHPOT_COUNT = 69
  125. MANAPOT_COUNT = 70
  126. BACKPACK = [i for i in range(71, 79)]
  127. BOOL_HAS_BACKPACK = 79
  128. PET_SKIN_OBJECT_TYPE = 80
  129. PET_ID = 81
  130. PET_SKIN = 82
  131. PET_TYPE = 83
  132. PET_RARITY = 84
  133. PET_MAX_LEVEL = 85
  134. PET_UNK1 = 86 #Reserved for a pet feature, but not yet implemented (13.2)
  135. FOOD_SPENT_ON_SKILL1 = 87
  136. FOOD_SPENT_ON_SKILL2 = 88
  137. FOOD_SPENT_ON_SKILL3 = 89
  138. PET_SKILL1_LEVEL = 90
  139. PET_SKILL2_LEVEL = 91
  140. PET_SKILL3_LEVEL = 92
  141. PET_SKILL1_TYPE = 93
  142. PET_SKILL2_TYPE = 94
  143. PET_SKILL3_TPYE = 95
  144.  
  145. GroundData
  146. string id
  147. int type
  148. int maxDamage
  149. int minDamage
  150. boolean noWalk
  151. boolean push
  152. boolean sink
  153. float speed
  154.  
  155. Item
  156. int item
  157. int slotType
  158. boolean tradeable
  159. boolean included
  160.  
  161. ItemData
  162. string id
  163. int type
  164. int slotType
  165. int tier
  166. string petFamily
  167. string rarity
  168. string activate
  169. boolean consumable
  170. boolean soulbound
  171. boolean usable
  172. int bagType
  173. int feedPower
  174. float rateOfFire
  175. int fameBonus
  176. int mpCost
  177. int mpEndCost
  178. boolean multiPhase
  179. int numProjectiles
  180. ProjectileData[] projectiles
  181.  
  182. Location
  183. float x
  184. float y
  185. float distanceSquaredTo(Location location)
  186. float distanceTo(Location location)
  187.  
  188. LocationRecord
  189. int time
  190. float x
  191. float y
  192. float distanceSquaredTo(Location location)
  193. float distanceTo(Location location)
  194.  
  195. ObjectData
  196. string id
  197. int type
  198. int maxHitPoints
  199. int maxSize
  200. int minSize
  201. int size
  202. int sizeStep
  203. int shadowSize
  204. int color
  205. float xpMult
  206. float rotation
  207. boolean drawOnGround
  208. boolean enemy
  209. boolean fullOccupy
  210. boolean occupySquare
  211. boolean enemyOccupySquare
  212. boolean blocksSight
  213. boolean noMiniMap
  214. boolean stasisImmune
  215. boolean protectFromGroundDamage
  216. boolean protectFromSink
  217. boolean connects
  218. float z
  219.  
  220. Packet
  221. byte id()
  222. string toString()
  223.  
  224. ProjectileData
  225. string objectId
  226. float speed
  227. int maxDamage
  228. int minDamage
  229. int lifetimeMS
  230.  
  231. SlotObject
  232. int objectId
  233. int slotId
  234. int objectType
  235.  
  236. Tile
  237. short x
  238. short y
  239. int type
  240. ________________________________________________________________
  241. :PACKETS
  242. - All packet objects implement the id() function
  243.  
  244. !!! The following packets are CLIENT packets !!!
  245.  
  246. ACCEPTTRADE
  247. boolean[] myOffer
  248. boolean[] yourOffer
  249.  
  250. AOEACK
  251. int time
  252. Location position
  253.  
  254. BUY
  255. int objectId
  256.  
  257. CANCELTRADE
  258.  
  259. CHANGEGUILDRANK
  260. string name
  261. int guildRank
  262.  
  263. CHANGETRADE
  264. boolean[] offer
  265.  
  266. CHECKCREDITS
  267.  
  268. CHOOSENAME
  269. string name
  270.  
  271. CREATEGUILD
  272. string name
  273.  
  274. CREATE
  275. int classType
  276. int skinType
  277.  
  278. EDITACCOUNTLIST
  279. int accountListId
  280. boolean add
  281. int objectId
  282.  
  283. ENEMYHIT
  284. int time
  285. int bulletId
  286. int targetId
  287. boolean kill
  288.  
  289. ESCAPE
  290.  
  291. GOTOACK
  292. int time
  293.  
  294. GROUNDDAMAGE
  295. int time
  296. Location position
  297.  
  298. GUILDINVITE
  299. string name
  300.  
  301. GUILDREMOVE
  302. string name
  303.  
  304. HELLO
  305. string buildVersion
  306. int gameId
  307. string guid
  308. string password
  309. string secret
  310. int keyTime
  311. byte[] key
  312. byte[] obf0
  313. string obf1
  314. string obf2
  315. string obf3
  316. string obf4
  317. string obf5
  318.  
  319. INVDROP
  320. SlotObject slotObject
  321.  
  322. INVSWAP
  323. int time
  324. Location position
  325. SlotObject slotObject1
  326. SlotObject slotObject2
  327.  
  328. JOINGUILD
  329. string guildName
  330.  
  331. LOAD
  332. int charId
  333. boolean isFromArena
  334.  
  335. MOVE
  336. int tickId
  337. int time
  338. Location newPosition
  339. LocationRecord[] records
  340.  
  341. OTHERHIT
  342. int time
  343. int bulletId
  344. int objectId
  345. int targetId
  346.  
  347. PLAYERHIT
  348. int bulletId
  349. int objectId
  350.  
  351. PLAYERSHOOT
  352. int time
  353. int bulletId
  354. int containerType
  355. Location startingPos
  356. float angle
  357.  
  358. PLAYERTEXT
  359. string text
  360.  
  361. PONG
  362. int serial
  363. int time
  364.  
  365. REQUESTTRADE
  366. string name
  367.  
  368. RESKIN
  369. int skinID
  370.  
  371. SETCONDITION
  372. int conditionEffect
  373. float conditionDuration
  374.  
  375. SHOOTACK
  376. int time
  377.  
  378. SQUAREHIT
  379. int time
  380. int bulletId
  381. int objectId
  382.  
  383. TELEPORT
  384. int objectId
  385.  
  386. UPDATEACK
  387.  
  388. USEITEM
  389. int time
  390. SlotObject slotObject
  391. Location itemUsePos
  392. int useType
  393.  
  394. USEPORTAL
  395. int objectId
  396.  
  397. !!! The following packets are SERVER packets !!!
  398.  
  399. ACCOUNTLIST
  400. int accountListId
  401. string[] accountIds
  402.  
  403. ALLYSHOOT
  404. int bulletId
  405. int ownerId
  406. short containerId
  407. float angle
  408.  
  409. AOE
  410. Location pos
  411. float radius
  412. int damage
  413. int effect
  414. float duration
  415. int origType
  416.  
  417. BUY
  418. int result
  419. string resultString
  420.  
  421. CLIENTSTAT
  422. string name
  423. int value
  424.  
  425. CREATESUCCESS
  426. int objectId
  427. int charId
  428.  
  429. CREATEGUILDRESULT
  430. boolean success
  431. string errorText
  432.  
  433. DAMAGE
  434. int targetId
  435. int[] effects
  436. int damageAmount
  437. boolean kill
  438. int bulletId
  439. int objectId
  440.  
  441. DEATH
  442. string accountId
  443. int charId
  444. string killedBy
  445. int obf0
  446. int obf1
  447.  
  448. FAILURE
  449. int errorId
  450. string errorDescription
  451.  
  452. FILE
  453. string name
  454. byte[] bytes
  455.  
  456. GLOBALNOTIFICATION
  457. int type
  458. string text
  459.  
  460. GOTO
  461. int objectId
  462. Location pos
  463.  
  464. INVITEDTOGUILD
  465. string name
  466. string guildName
  467.  
  468. INVRESULT
  469. int result
  470.  
  471. MAPINFO
  472. int width
  473. int height
  474. string name
  475. string obf0
  476. int obf1
  477. int fp
  478. int background
  479. boolean allowPlayerTeleport
  480. boolean showDisplays
  481. string[] clientXML
  482. string[] extraXML
  483.  
  484. NAMERESULT
  485. boolean success
  486. string errorText
  487.  
  488. NEWTICK
  489. int tickId
  490. int tickTime
  491. Status[] statuses
  492.  
  493. NOTIFICATION
  494. int objectId
  495. string message
  496. int color
  497.  
  498. PIC
  499. BitmapData bitmapData
  500.  
  501. PING
  502. int serial
  503.  
  504. PLAYSOUND
  505. int ownerId
  506. int soundId
  507.  
  508. QUESTOBJID
  509. int objectId
  510.  
  511. RECONNECT
  512. string name
  513. string host
  514. int port
  515. int gameId
  516. int keyTime
  517. boolean isFromArena
  518. byte[] key
  519.  
  520. SERVERPLAYERSHOOT (SHOOT2)
  521. int bulletId
  522. int ownerId
  523. int containerId
  524. Location startingPos
  525. float angle
  526. short damage
  527.  
  528. ENEMYSHOOT (SHOOT)
  529. int bulletId
  530. int ownerId
  531. int bulletType
  532. Location startingPos
  533. float angle
  534. short damage
  535. int numShots
  536. float angleInc
  537.  
  538. SHOW_EFFECT
  539. int effectType
  540. int targetObjectId
  541. Location pos1
  542. Location pos2
  543. int color
  544.  
  545. TEXT
  546. string name
  547. int objectId
  548. int numStars
  549. int bubbleTime
  550. string recipient
  551. string text
  552. string cleanText
  553.  
  554. TRADEACCEPTED
  555. boolean[] myOffer
  556. boolean[] yourOffer
  557.  
  558. TRADECHANGED
  559. boolean[] offer
  560.  
  561. TRADEDONE
  562. int code
  563. string description
  564.  
  565. TRADEREQUESTED
  566. string name
  567.  
  568. TRADESTART
  569. Item[] myItems
  570. string yourName
  571. Item[] yourItems
  572.  
  573. UPDATE
  574. Tile[] tiles
  575. Entity[] newObjs
  576. int[] drops
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement