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

Error in my movement

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
40
Location
localhost
I have this error in console:

[19/01/2010 13:55:21] [Error - MoveEvents Interface]
[19/01/2010 13:55:21] data/movements/scripts/inq_bossowie.lua:onStepIn
[19/01/2010 13:55:21] Description:
[19/01/2010 13:55:21] (luaDoPlayerSendTextMessage) Player not found

and this is my script:

PHP:
local CONFIG =   {
    [30000]={storage = 30000, seal = "Ushuriela"},
    [30001]={storage = 30001, seal = "Zugurosha"},
    [30002]={storage = 30002, seal = "Madaretha"},
    [30003]={storage = 30003, seal = "Latrivana & Golgordana"},
    [30004]={storage = 30004, seal = "Annihilona"},
    [30005]={storage = 30005, seal = "Hellgoraka"}       
                  }

function onStepIn(cid, item, position, fromPosition)
    if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
        doPlayerSendTextMessage(cid, 22,"Pokonales moc " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
        setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
    else
        doPlayerSendTextMessage(cid, 22,"Obecnie zaliczyles " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
    end
  return TRUE
end

What wrong is here?
 
If you're too lazy or have no idea what's he talking about,
Code:
local config = {
	[30000] = {storage = 30000, seal = "Ushuriela"},
	[30001] = {storage = 30001, seal = "Zugurosha"},
	[30002] = {storage = 30002, seal = "Madaretha"},
	[30003] = {storage = 30003, seal = "Latrivana & Golgordana"},
	[30004] = {storage = 30004, seal = "Annihilona"},
	[30005] = {storage = 30005, seal = "Hellgoraka"}       
}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, config[item.actionid].storage) < 1 then
			doPlayerSendTextMessage(cid, 22,"Pokonales moc " .. config[item.actionid].seal .. " i absorbowales czesc jego energii.")
			setPlayerStorageValue(cid, config[item.actionid].storage, 1)
		else
			doPlayerSendTextMessage(cid, 22,"Obecnie zaliczyles " .. config[item.actionid].seal .. " i absorbowales czesc jego energii.")
		end
	end
end
 
Back
Top