KnightOnline icon indicating copy to clipboard operation
KnightOnline copied to clipboard

Preventing Duplication in EvtConverter output

Open srmeier opened this issue 9 years ago • 0 comments

I think we can make the LUA script equivalent of the EVTs smaller by checking the previously processed tag to see if it's identical to the next tag and ignore the duplication. Right now in the LUA script we get a lot of the below example because of how the EVTs work. This should be easy to prevent when converting the files.

local state = pUser:SearchQuest(30); if state == 1 then local state = pUser:SearchQuest(30); if state == 1 then -- stuff end end

Obviously if the outer if-statement is true the inner statement will also be true lol. So we should prevent these kind of duplications from happening. (We also need to write it so that everything gets indented correctly; just makes it easier to read.)

srmeier avatar Dec 12 '16 13:12 srmeier