Advertisement
negader

room Id -- command is tid

Jan 2nd, 2022 (edited)
1,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. <aliases>
  2.   <alias
  3.    match="^(tid|hej)$"
  4.    enabled="y"
  5.    group="trans_id"
  6.    regexp="y"
  7.    send_to="12"
  8.    sequence="100"
  9.   >
  10.   <send>require "gmcphelper"
  11. myRoomID = tonumber(gmcp("room.info.num"))
  12. mobaim = tostring(gmcp("char.status.enemy"))
  13. mobpct = tonumber(gmcp("char.status.enemypct"))
  14. if mobpct ~= nil then
  15. &#9;Send ("gt @r[@W"..myRoomID.."@r] [@x195"..mobaim..": @C"..mobpct.."%@r]@w")
  16. else
  17. &#9;--ColourNote("yellow", "", myRoomID..": NOT Fighting!")
  18. &#9;ColourNote("darkred","", "[", "white", "", myRoomID, "darkred","","] [", "paleturquoise","", "Not Fighting", "darkred","","]")
  19. end
  20. </send>
  21.   </alias>
  22. </aliases>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement