[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 121: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_links.php on line 122: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
JoinUO Forums A discussion forum for the Ultima Online freeshard community. 2011-06-30T16:50:00+00:00 https://forums.uo98.org/feed.php?f=32&t=818 2011-06-30T16:50:00+00:00 2011-06-30T16:50:00+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1957#p1957 <![CDATA[Re: Decompiled UOSL Code]]>
https://github.com/chjj/node-uo/blob/ma ... pt/uosl.js

Statistics: Posted by Stuck — Thu Jun 30, 2011 4:50 pm


]]>
2011-06-30T02:36:39+00:00 2011-06-30T02:36:39+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1956#p1956 <![CDATA[Re: Decompiled UOSL Code]]> Statistics: Posted by Stuck — Thu Jun 30, 2011 2:36 am


]]>
2011-06-29T19:13:21+00:00 2011-06-29T19:13:21+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1955#p1955 <![CDATA[Re: Decompiled UOSL Code]]>
The "native" output is almost 1 on 1 with the original script.

When using the UOSL mode than some code is modified. The reason I programmed it that way was to make the scripts more intuitive to read for those who know the C language. Inside the trigger you see variables being used without a definition. That was very non-intuitive for me.
This resulted in "on speech("*")(object speaker, string arg)"
Two times () on the same line I didn't like. So I decided to replace the () by <>, as the parameter following is not really used by the code, but is more of a parameter to the engine as to tell when to trigger the speech event.
Resulting in "on speech<"*">(object speaker, string arg)"
You can also add a optional chance to the trigger (yes even to the speech trigger):
Originally this looks like: "on 500 speech", which was again non-intuitive for me.
Therefor the Mass M Decompiler will output this as: "on<500>speech("*")(object speaker, string arg)"
Because the 500 chance is again ment as input for the trigger engine inside the EXE, so I used the same <>.

The same is true for the "case" and "default" keywords, in UOSL mode I decided to an extra ":". In native mode this character is not added.

I put those <> and : there for a reason, mainly because I believed, and I still believe that, it improves readability (it's important to know where variables comes from and what parameters are ment for the engine instead of the script itself).

Also note that the latest Mass M Decompiler corrects many bugs found in the scripts :

Statistics: Posted by Batlin — Wed Jun 29, 2011 7:13 pm


]]>
2011-06-29T16:57:29+00:00 2011-06-29T16:57:29+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1954#p1954 <![CDATA[Re: Decompiled UOSL Code]]> Statistics: Posted by Stuck — Wed Jun 29, 2011 4:57 pm


]]>
2011-06-29T13:34:31+00:00 2011-06-29T13:34:31+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1953#p1953 <![CDATA[Re: Decompiled UOSL Code]]> Statistics: Posted by Derrick — Wed Jun 29, 2011 1:34 pm


]]>
2011-06-29T09:05:35+00:00 2011-06-29T09:05:35+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1952#p1952 <![CDATA[Re: Decompiled UOSL Code]]> Statistics: Posted by Stuck — Wed Jun 29, 2011 9:05 am


]]>
2011-06-29T05:16:38+00:00 2011-06-29T05:16:38+00:00 https://forums.uo98.org/viewtopic.php?t=818&p=1951#p1951 <![CDATA[Decompiled UOSL Code]]> Statistics: Posted by Stuck — Wed Jun 29, 2011 5:16 am


]]>