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

Lua Pokemon moves

Core_

Well-Known Member
Joined
Jul 9, 2010
Messages
1,557
Solutions
1
Reaction score
50
Well i just bought a pokemon server from William in vapus, and well it was just shit ;/ i'll try to make it a little better but i suck at lua anyways, from lots of nonworking scripts this one is the most important i guess it seems to be a cool script easy to edit and that stuff but its not working.

Its a big script, so i just put the error
the console error:
Code:
[23/02/2011 22:37:55] [Error - TalkAction Interface] 
[23/02/2011 22:37:55] data/talkactions/scripts/moves.lua:onSay
[23/02/2011 22:37:55] Description: 
[23/02/2011 22:37:55] data/talkactions/scripts/moves.lua:953: attempt to index field '?' (a nil value)
[23/02/2011 22:37:55] stack traceback:
[23/02/2011 22:37:55] 	data/talkactions/scripts/moves.lua:953: in function <data/talkactions/scripts/moves.lua:947>

line 947 to 953:

Lua:
function onSay(cid, words, param)

if #getCreatureSummons(cid) == 0 then
return doPlayerSendCancel(cid, "You do not have any pokemon.")
end

local poke = d[getCreatureName(getCreatureSummons(cid)[1])][words]


so i hope some one can fix it and it will be free for all! well, i also dont think the guy who sell me the server made this script and it may be released somewhere but anyways :p
 
nvm :p i just play around with line 953 and i fixed it :p
local poke = d[getCreatureName(getCreatureSummons(cid)[1])][words]
that shall be
local poke = getCreatureName(getCreatureSummons(cid)[1])[words]
 
Back
Top