• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Complaint New Editor (Codes)

Status
Not open for further replies.

Syntax

Developer
Joined
Oct 10, 2007
Messages
2,890
Reaction score
466
Location
Texas
Okay the code preview is pretty cool, but after you preview once it corrupts the code and if you submit it again it actually uses that corrupt preview.
If its possible to not make it preview the code that'd be cool. Right now its not a huge deal, I usually just use the source editor instead to save frustration (but I do like to preview before I submit so I would like it fixed.)
 
Okay the code preview is pretty cool, but after you preview once it corrupts the code and if you submit it again it actually uses that corrupt preview.
If its possible to not make it preview the code that'd be cool. Right now its not a huge deal, I usually just use the source editor instead to save frustration (but I do like to preview before I submit so I would like it fixed.)

In what way does it become corrupt?
 
Normal
LUA:
function print2Numbers(num1, num2)
    print(num1)
    print(num2)
end
Corrupted
Lua Code:

function print2Numbers(num1, num2) print(num1) print(num2)end
 
Corrupt:
Lua Code:

local condition = createConditionObject(CONDITION_ATTRIBUTES)setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutessetConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 5)setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, -10)setConditionParam(condition, CONDITION_PARAM_SUBID, 99) function onUse(cid, item, fromPosition, itemEx, toPosition)    if(doAddCondition(cid, condition)) then        doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)        doRemoveItem(item.uid, 1)    end     doRecordStatistic(cid, "bullseye_uses")    if(getPlayerStatistic(cid, "bullseye_uses") == 100)then        doPlayerAddAchievement(cid, "Sharpshooter")    end        return trueend

Original:
LUA:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutes
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 5)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, -10)
setConditionParam(condition, CONDITION_PARAM_SUBID, 99)

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(doAddCondition(cid, condition)) then
		doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
		doRemoveItem(item.uid, 1)
	end

	doRecordStatistic(cid, "bullseye_uses")
	if(getPlayerStatistic(cid, "bullseye_uses") == 100)then
		doPlayerAddAchievement(cid, "Sharpshooter")
	end
	
	return true
end
 
I hate this problem since long ago =(
I think it's browser-sided.
 
No it's not. But it's third time someone reports it. It's enough, we know.
 
Temporary solution is to change your editor mode in your general settings to the Standard Editor - Extra formatting controls.
 
Status
Not open for further replies.
Back
Top