StormRusher
New Member
- Joined
- Dec 23, 2009
- Messages
- 138
- Reaction score
- 0
Well i made that script but isnt working..
The command is /changeteam
Log error:
Someone know whats wrong?
Lua:
local time1 = { x = 501, y = 515, z = 7 }
local time2 = { x = 381, y = 452, z = 7 }
function onSay(cid, words, param, channel)
local p = string.explode(param, ",")
if (p[2] == "em/co") then
doTeleportThing(p[1], time1)
doSendMagicEffect(time1, 11)
setGlobalStorageValue(1, getGlobalStorageValue(1)+1)
setGlobalStorageValue(2, getGlobalStorageValue(2)-1)
setPlayerStorageValue(p[1], 10, 1)
doPlayerSendTextMessage(p[1], 20, "Você está no time: Eternal Match & Chosen Ones! (EM/CO)")
doSendAnimatedText(time1, "EM/CO", 129)
if getPlayerSex(p[1]) == 1 then
doCreatureChangeOutfit(p[1], {lookType = 128, lookHead = 116, lookBody = 30, lookLegs = 114, lookFeet = 76, lookTypeEx = 0, lookAddons = 0})
elseif getPlayerSex(p[1]) == 0 then
doCreatureChangeOutfit(p[1], {lookType = 136, lookHead = 116, lookBody = 30, lookLegs = 114, lookFeet = 76, lookTypeEx = 0, lookAddons = 0})
end
elseif (p[2] == "anima") then
doTeleportThing(p[1], time2)
doSendMagicEffect(time2, 11)
setGlobalStorageValue(2, getGlobalStorageValue(2)+1)
setGlobalStorageValue(1, getGlobalStorageValue(1)-1)
setPlayerStorageValue(p[1], 10, 2)
doPlayerSendTextMessage(p[1], 20, "Você está no time: Anima & Alies! (Ánima)")
doSendAnimatedText(time2, "ANIMA", 210)
if getPlayerSex(p[1]) == 1 then
doCreatureChangeOutfit(p[1], {lookType = 128, lookHead = 2, lookBody = 105, lookLegs = 79, lookFeet = 39, lookTypeEx = 0, lookAddons = 0})
elseif getPlayerSex(p[1]) == 0 then
doCreatureChangeOutfit(p[1], {lookType = 136, lookHead = 2, lookBody = 105, lookLegs = 79, lookFeet = 39, lookTypeEx = 0, lookAddons = 0})
end
end
return true
end
The command is /changeteam
Log error:
PHP:
[08/01/2010 21:48:32] Lua Script Error: [TalkAction Interface]
[08/01/2010 21:48:32] data/talkactions/scripts/changeteam.lua:onSay
[08/01/2010 21:48:32] luaDoTeleportThing(). Thing not found
[08/01/2010 21:48:32] Lua Script Error: [TalkAction Interface]
[08/01/2010 21:48:32] data/talkactions/scripts/changeteam.lua:onSay
[08/01/2010 21:48:32] luaDoPlayerSetStorageValue(). Player not found
[08/01/2010 21:48:32] Lua Script Error: [TalkAction Interface]
[08/01/2010 21:48:32] data/talkactions/scripts/changeteam.lua:onSay
[08/01/2010 21:48:32] luaDoPlayerSendTextMessage(). Player not found
[08/01/2010 21:48:32] Lua Script Error: [TalkAction Interface]
[08/01/2010 21:48:32] data/talkactions/scripts/changeteam.lua:onSay
[08/01/2010 21:48:32] luaGetPlayerSex(). Player not found
[08/01/2010 21:48:32] Lua Script Error: [TalkAction Interface]
[08/01/2010 21:48:32] data/talkactions/scripts/changeteam.lua:onSay
[08/01/2010 21:48:33] luaGetPlayerSex(). Player not found
Someone know whats wrong?