• 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!

Never ever seen something like this O,o

Check data/logs and see if some1 else have made commands and check if you have otadmin enabled on xml/data/admin.xml must be <otadmin enabled="0"> ...

BTW The uptime is not a problem unless your computer is fked up and can't keep the information of the map but i doubt it, and since I never restart my server i don't think is a restart problem, Once i got ~500 hours uptime lol so i doubt thats a rason
 
14:24 Elder Jake [124]: obsidian knife


Roflmao, is there a fix for it?

it's just an script problem, replace your script for this one

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.itemid == FALSE) then
return FALSE
end

if(getPlayerLevel(cid) >= 2) then
local found = FALSE
local skin = 0

if(isInArray({2830, 2871, 2866, 2876, 3090}, itemEx.itemid) == TRUE) then
found = TRUE
if(math.random(1,5) == 1) then
skin = 5878
end
elseif(isInArray({4259, 4262, 4256}, itemEx.itemid) == TRUE) then
found = TRUE
if(math.random(1,5) == 1) then
skin = 5876
end
elseif(isInArray({3104, 2844}, itemEx.itemid) == TRUE) then
found = TRUE
if(math.random(1,5) == 1) then
skin = 5877
end
elseif(isInArray({2881}, itemEx.itemid) == TRUE) then
found = TRUE
if(math.random(1,5) == 1) then
skin = 5948
end
elseif(isInArray({2931}, itemEx.itemid) == TRUE) then
found = TRUE
local rand = math.random(1,10)
if(rand > 8) then
skin = 5893
elseif(rand == 4) then
skin = 5930
end
elseif(isInArray({3031}, itemEx.itemid) == TRUE) then
found = TRUE
if(math.random(1,5) == 1) then
skin = 5925
end
end

if(found == TRUE) then
if(skin == 0) then
doSendMagicEffect(toPosition, CONST_ME_POFF)
else
doSendMagicEffect(toPosition, CONST_ME_GROUNDSHAKER)
doPlayerAddItem(cid, skin, 1)
doSendAnimatedText(fromPosition, 'Success!', TEXTCOLOR_WHITE_EXP);
end
doTransformItem(itemEx.uid, itemEx.itemid + 1)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
else
doPlayerSendCancel(cid, "You have to be at least Level 2 to use this tool.")
end

return TRUE
end
 
Last edited:
Thanks <3
Got the working one for blessed stakes too? :p

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(itemEx.itemid == FALSE) then
		return FALSE
	end

	if(getPlayerLevel(cid) >= 2) then
		local found = FALSE
		local dust = 0

		if(isInArray({2956}, itemEx.itemid) == TRUE) then
			found = TRUE
			if(math.random(1,5) == 1) then
				dust = 5905
			end
		elseif(isInArray({2916}, itemEx.itemid) == TRUE) then
			found = TRUE
			if(math.random(1,5) == 1) then
				dust = 5906
			end
		end

		if(found == TRUE) then
			if(dust == 0) then
				doSendMagicEffect(toPosition, CONST_ME_POFF)
			else
				doSendMagicEffect(toPosition, CONST_ME_GROUNDSHAKER)
				doPlayerAddItem(cid, dust, 1)
				doSendAnimatedText(fromPosition, 'Success!', TEXTCOLOR_WHITE_EXP);
			end
			doTransformItem(itemEx.uid, itemEx.itemid + 1)
		else
			doPlayerSendCancel(cid, "Sorry, not possible.")
		end
	else
		doPlayerSendCancel(cid, "You have to be at least Level 2 to use this tool.")
	end

	return TRUE
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(itemEx.itemid == FALSE) then
		return FALSE
	end

	if(getPlayerLevel(cid) >= 2) then
		local found = FALSE
		local dust = 0

		if(isInArray({2956}, itemEx.itemid) == TRUE) then
			found = TRUE
			if(math.random(1,5) == 1) then
				dust = 5905
			end
		elseif(isInArray({2916}, itemEx.itemid) == TRUE) then
			found = TRUE
			if(math.random(1,5) == 1) then
				dust = 5906
			end
		end

		if(found == TRUE) then
			if(dust == 0) then
				doSendMagicEffect(toPosition, CONST_ME_POFF)
			else
				doSendMagicEffect(toPosition, CONST_ME_GROUNDSHAKER)
				doPlayerAddItem(cid, dust, 1)
				doSendAnimatedText(fromPosition, 'Success!', TEXTCOLOR_WHITE_EXP);
			end
			doTransformItem(itemEx.uid, itemEx.itemid + 1)
		else
			doPlayerSendCancel(cid, "Sorry, not possible.")
		end
	else
		doPlayerSendCancel(cid, "You have to be at least Level 2 to use this tool.")
	end

	return TRUE
end

Thanks a lot <33
 
Back
Top