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

[Help] Fix All Console Errors.

dukzin

New Member
Joined
Aug 18, 2008
Messages
161
Reaction score
3
Hello OTlander's.
Im Here to ask for help to make my console 'Clean'
:D
How?
- Fixing all error's on it.

Error 1.
Code:
[06/07/2010 12:39:56] [Error - MoveEvents Interface] 
[06/07/2010 12:39:56] data/movements/scripts/anti nb.lua:onStepIn
[06/07/2010 12:39:56] Description: 
[06/07/2010 12:39:56] data/movements/scripts/anti nb.lua:3: attempt to compare boolean with number
[06/07/2010 12:39:56] stack traceback:
[06/07/2010 12:39:56] 	data/movements/scripts/anti nb.lua:3: in function <data/movements/scripts/anti nb.lua:1>

Script 1.
Code:
function onStepIn(cid, item, position, fromPosition)

if getPlayerLevel(cid) < 100 then
doPlayerSendCancel(cid,"Somente Level 100+, Evitar Noobchar's.")
    doTeleportThing(cid, fromPosition)
    return true
    end
    end

Error 2.
Code:
[06/07/2010 12:54:08] mysql_real_query(): SELECT `id` FROM `guild_invites` WHERE `player_id` = 965 AND `guild_id`= 72 LIMIT 1 - MYSQL ERROR: Unknown column 'id' in 'field list' (1054



Thanks,
;D
 
PHP:
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) >= 100 then
else
doPlayerSendCancel(cid,"Somente Level 100+ podem passar. Prevenindo Noobchar\'s.")
doTeleportThing(cid, fromPosition)
return true
end
end

E o erro no mysql é que não tem a coluna "id" na parte de guild_invites.
É só você olha lá na tua db, vai ter em guild_invite só player_id e guild_id por isso que ta dando erro.

Talvez: SELECT `guild_id` = 72 FROM `guild_invites` WHERE `player_id` = 965 LIMIT 1

rep+ :peace:
 
Last edited:
New error.
Code:
[06/07/2010 13:37:20] [Error - TalkAction Interface] 
[06/07/2010 13:37:20] buffer:onSay
[06/07/2010 13:37:20] Description: 
[06/07/2010 13:37:20] (luaGetThingPosition) Thing not found

[06/07/2010 13:37:20] [Error - TalkAction Interface] 
[06/07/2010 13:37:20] buffer:onSay
[06/07/2010 13:37:20] Description: 
[06/07/2010 13:37:20] data/lib/032-position.lua:6: attempt to index local 'toPosition' (a boolean value)
[06/07/2010 13:37:20] stack traceback:
[06/07/2010 13:37:20] 	data/lib/032-position.lua:6: in function 'getDistanceBetween'
[06/07/2010 13:37:20] 	[string "loadBuffer"]:20: in function <[string "loadBuffer"]:5>

Script (MOD):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="anti-trap" version="1.3" author="slawkens" contact="[email protected]" enabled="yes">
	<changelog><![CDATA[
		* [01/08/2009 v1.1] From now, it cannot be used by protected players (config.protectionLevel)
		* [07/08/2009 v1.2] Added optional param - player name, so it now works in diagonal directions!
		* [18/05/2010 v1.3] Added !noob alias
	]]></changelog>

	<talkaction words="/noob;!noob" logged="no" event="script"><![CDATA[
		local config = {
			protectionLevel = getConfigValue('protectionLevel')
		}

		function onSay(cid, words, param)
			local pos = getCreaturePosition(cid)
			if(getTileInfo(pos).protection) then
				return true
			end

			local target = 0
			param = param:trim()
			if(param == '') then
				pos = getPosByDir(pos, getCreatureLookDirection(cid))
				target = getTopCreature(pos).uid
			else
				target = getPlayerByNameWildcard(param)
				if(target ~= 0) then
					pos = getCreaturePosition(target)
					if(getDistanceBetween(getCreaturePosition(cid), pos) > 1) then
						return true
					end
				end
			end

			if(target == 0 or getTileInfo(pos).protection or getPlayerCustomFlagValue(target, PlayerCustomFlag_GamemasterPrivileges)) then
				return true
			end

			if(getPlayerLevel(cid) < config.protectionLevel or getPlayerLevel(target) >= config.protectionLevel) then
				return true
			end

			local tmp = getCreaturePosition(cid)
			if(doTeleportThing(cid, pos, true) and not isPlayerGhost(cid)) then
				doSendMagicEffect(tmp, CONST_ME_POFF)
				doSendMagicEffect(pos, CONST_ME_TELEPORT)
			end
			return false
		end
	]]></talkaction>
</mod>

i dont want that it sends a normal mensage in default! :s
 
Last edited:
Lua:
function onStepIn(cid, item, position, fromPosition)

if getPlayerLevel(cid) < 100 then
doPlayerSendCancel(cid,"Somente Level 100+ evitar NoobChars.")
    doTeleportThing(cid, fromPosition)
    return true
    end
    end
or
actionid 1100 :p
 
Back
Top