ata achei o erro tava na linha de baixo(o erro dis que era na linha 15,mais tava na 16 o.0),puriso n tava achando
---edit--
wtf?eu tinha colocado o ")" mais sumiu o.0
--config storage = 75757 -- storage, se for mudar mude no creaturescript tbm storagetime = 76765 --storage de tempo lv = 1 --level nessesario para usar money = 0 --dinheiro que gasta ao usar mana = 0 --mana gasta ao usar t = false --tem tempo de duração ture or false time = 10 --tempo que dura em minutos,caso acima estaja como true type = 35 --efeito function onSay(cid, words, param, channel) value = time* 1000*60+os.time() pos = getCreaturerPos(cid) if param == "on" or param == " " then if getPlayerStorageValue(cid, storage) == 1 or (getPlayerStorageValue(cid, storage) == 2 and getPlayerStorageValue(cid, storagetime) >= os.time) then doPlayerSendTextMessage(cid, 1, "voce ja esta ivuneravel") return true end if getPlayerLevel >= lv then if doPlayerRemoveMoney(cid, money) then if getCreatureMana(cid) >= mana and doCreatureAddMana(cid, mana) then if t == true then setPlayerStorageValue(cid, storage, 2) setPlayerStorageValue(cid, storagetime, value) doSendMagicEffect(pos, type) else setPlayerStorageValue(cid, storage, 1) doSendMagicEffect(pos, type) end else doPlayerSendTextMessage(cid, 1, "voce n tem mana suficiente") end else doPlayerSendTextMessage(cid, 1, "voce n tem dinheiro o suficiente") end else doPlayerSendTextMessage(cid, 1, "voce n tem level suficiente") end elseif strig.lower(param) == "off" then if getPlayerStorageValue(cid, storage) == 1 or (getPlayerStorageValue(cid, storage) == 2 and getPlayerStorageValue(cid, storagetime) >= os.time) then setPlayerStorageVlaue(cid, storage, 0) return true else doPlayerSendTextMessage(cid, 1, "voce n esta com ivunerabilidade ativada") end else doPlayerSendTextMessage(cid, 1, "parametro incorreto,os parametros validos são on e off") end return TRUE end




info
Grupo: Visconde
Registrado: 06/04/11
Posts: 350
Reputação: +8
Char no Tibia: Mulekepirado
ae cara diminuiu o erro olhai:
[08/04/2012 17:43:12] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/susanoo.lua)
[08/04/2012 17:43:16] data/talkactions/scripts/susanoo.lua:15: ')' expected near 'then'