Author Topic: Posting formatting and options  (Read 12052 times)

0 Members and 1 Guest are viewing this topic.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Posting formatting and options
« on: March 01, 2017, 08:31:35 AM »
+1

EasyUO code context color formatting

use code=easyuo when you use the code /code BBC:

Code: easyuo
  1. ;-------------------------------------------------------------------------------
  2. ;-----------------------  TM Advanced Journal Subs   ---------------------------
  3. ;-------------------------------------------------------------------------------
  4. ; %1 - Journal Name
  5. ; %2 - #LPC setting (optional)
  6. ; Brings !_jindex up to the most recent #journal entry
  7. sub TM_AdvJournalSync
  8.   namespace push
  9.   namespace local TM_AdvJS_ , %1
  10.   set !_jindex #jindex + 1
  11.   if %0 > 1
  12.     set !lpc_set %2
  13.   namespace pop
  14.   set !TM_FunctionCalled #TRUE
  15. return
  16. ;-------------------------------------------------------------------------------
  17. ; %1 - Journal Name
  18. ; %2 - NONE, ADVANCE , ( _VALID ) - advances jindex pointer, anything else
  19. ; %3, %4, %5, etc strings to match
  20. ; returns #TRUE for match, #FALSE for no match
  21. ;  Will not advance !_jindex pointer to allow for scanning journal history for more than one search.
  22. ;  Also searches for : , #SPC in journal entry to be sure someone isn't spamming the text
  23. ;  About %2 arguments:
  24. ;    NONE: defaults to basic journal scan (no SPAM checking, no #jindex pointer copy advancing)
  25. ;    ADVANCE: no spam checking, advances #jindex copy
  26. ;    VALID: invokes SPAM filtering, no advance of #jindex copy
  27. ;    VALID_ADVANCE, VALIDADVANCE, ADVANCE_VALID, etc.: invokes SPAM filtering, advances of #jindex copy
  28. sub TM_AdvJournalScan
  29.   namespace push
  30.   namespace local TM_AdvJS_ , %1
  31.   set !args %2
  32.   set !temp_lpc #LPC
  33.   if !lpc_set = N/A
  34.     set #LPC 1000
  35.   else
  36.     set #LPC !lpc_set
  37.   set !num_args %0
  38.   set !first_arg 3
  39.   set !sampled_jindex #JINDEX
  40.   if !_jindex = N/A
  41.     set !_jindex !sampled_jindex
  42.   if !charname = N/A
  43.   {
  44.     set !charname #CHARNAME
  45. AdvJournalScan_loop1:
  46.     str pos !charname #SPC
  47.     if #STRRES <> 0
  48.     {
  49.       set !val #STRRES - 1
  50.       str left !charname !val
  51.       set !left #STRRES
  52.       set !val !val + 1
  53.       str del !charname 1 !val
  54.       set !charname !left , _ , #STRRES
  55.       goto AdvJournalScan_loop1
  56.     }
  57.   }
  58.   set !index !first_arg
  59.   repeat
  60.     set !temp_jindex !_jindex
  61.     set !text % . !index
  62.     while !temp_jindex <= !sampled_jindex
  63.     {
  64.       scanjournal !temp_jindex
  65.       str pos #JOURNAL !charname 1
  66.       set !namepos #STRRES
  67.       str count #JOURNAL !charname
  68.       set !namecnt #STRRES
  69.       str pos #JOURNAL :_ 1
  70.       set !smcpos #STRRES
  71.       str pos #JOURNAL !text 1
  72.       set !textpos #STRRES
  73.       if !textpos < !smcpos && !smcpos <> 0 || !smcpos = 1 || :_ notin #JOURNAL || VALID notin !args
  74.         set !pass #TRUE
  75.       else
  76.         set !pass #FALSE
  77.       if ( !text in #journal && ( ( !namepos = 1 && !namecnt <= 1 ) || !pass ) )
  78.       {
  79.         set !temp_jindex !temp_jindex + 1
  80.         if ADVANCE in !args
  81.           set !_jindex !temp_jindex
  82.         set !trigger !text
  83.         set #LPC !temp_lpc
  84.         namespace pop
  85.         set !TM_FunctionCalled #TRUE
  86.         return #TRUE
  87.       }
  88.       set !temp_jindex !temp_jindex + 1
  89.     }
  90.     set !index !index + 1
  91.   until !index - !first_arg > !num_args - !first_arg
  92.   set %10 !sampled_jindex - !_jindex
  93.   set %10 %1 , _ , %10 ; for debugging purposes
  94.   set #LPC !temp_lpc
  95.   set !trigger #FALSE
  96.   namespace pop
  97.   set !TM_FunctionCalled #TRUE
  98. return #FALSE
  99. ;-------------------------------------------------------------------------------
  100. sub TM_AdvJournalGetTrigger
  101.   namespace push
  102.   namespace local TM_AdvJS_ , %1
  103.   set #RESULT !trigger
  104.   namespace pop
  105. return #RESULT
  106.  

Fancy Posts!!

Guide:
http://custom.simplemachines.org/mods/index.php?mod=3387

Examples:

This is a catbar

This is a catbar with an icon

This is a catbar with an icon but 50%

This is a titlebar

!!

Warning here! Parsed text here!



!!

Warning TITLE here!

Warning DESCRIPTION here!



plainbox content


roundframe content here


windowbg content


menu/button:




menu/button (inactive)




buttonlist/button:


This is only able to use 25% of the post room

This is only able to use 25 pixels of the post room
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: