Ir para conteúdo

[Encerrado] Erro quando usa o item


Koring4

Posts Recomendados

Olá, eu estou tentando passar um script de um server pro meu servidor mas 

estou tendo problema com esse script. (server que roda o script é antigo e o meu é 11.40)

TFs do meu servidor é 1.3

 

Alguém pode me ajuda ?

 

Obrigado!

 

o script é esse:

Spoiler

local function Blood15(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
end
end

local function Blood14(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood15, 1 * 2000, cid)
end
end

local function Blood13(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood14, 1 * 2000, cid)
end
end

local function Blood12(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood13, 1 * 2000, cid)
end
end

local function Blood11(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood12, 1 * 2000, cid)
end
end

local function Blood10(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood11, 1 * 2000, cid)
end
end

local function Blood9(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood10, 1 * 2000, cid)
end
end

local function Blood8(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood9, 1 * 2000, cid)
end
end

local function Blood7(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood8, 1 * 2000, cid)
end
end

local function Blood6(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood7, 1 * 2000, cid)
end
end

local function Blood5(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood6, 1 * 2000, cid)
end
end

local function Blood4(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood5, 1 * 2000, cid)
end
end

local function Blood3(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood4, 1 * 2000, cid)
end
end

local function Blood2(cid)
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2))
doPlayerAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2))
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood3, 1 * 2000, cid)
end
end

local function Blood1(cid)
if isPlayer(cid) == TRUE then
doSendMagicEffect(getCreaturePosition(cid), 51)
addEvent(Blood2, 1 * 2000, cid)
end
end

local Speed = createConditionObject(CONDITION_HASTE)
setConditionParam(Speed, CONDITION_PARAM_TICKS, 30000)
setConditionFormula(Speed, 0, 6000, 0, 6000)

local Immortal = createConditionObject(CONDITION_IMMORTAL)
setConditionParam(Immortal, CONDITION_PARAM_TICKS, 6000)

local Bog = createConditionObject(CONDITION_BLOOD)
setConditionParam(Bog, CONDITION_PARAM_TICKS, 30000)

function onUse(cid, item, frompos, item2, topos)

chronos = { lookType = 251,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } 
hazus = { lookType = 194,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } 
kazard = { lookType = 262,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } 
immortal = { lookType = getCreatureOutfit(cid).lookType,lookHead = 79,lookBody = 79,lookLegs = 79,lookFeet = 79, lookAddons = 3 } 
skill = getPlayerSkill(cid,0)
magic = getPlayerMagLevel(cid)
Blood = math.random(1,4)

-- Exhausted Settings --
local exhausted_seconds2 = 1 -- How many seconds 
local exhausted_storagevalue2 = 9893 -- Storage Value 

local exhausted_seconds3 = 2 -- How many seconds 
local exhausted_storagevalue3 = 8162 -- Storage Value 

local exhausted_seconds4 = 1 -- How many seconds 
local exhausted_storagevalue4 = 6245 -- Storage Value 

-- Exhausted Settings END --

if getPlayerSoul(cid) <= 49 then
doPlayerSendTextMessage(cid,20,'Desculpe, você não tem Souls suficiente.')
return TRUE
end

 if getCreatureCondition(cid, CONDITION_EXHAUSTED) == TRUE then
 doPlayerSendCancel(cid,"Está esgotado.")
  return TRUE
   end

if getCreatureCondition(cid, CONDITION_BLOOD) == TRUE then
doPlayerSendTextMessage(cid,20,'Você não pode usar um blood of gods durante o efeito de outro.')
return TRUE
end

if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue2)) then
 doPlayerSendCancel(cid,"Você está muito cansado.")
return TRUE
end

if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue3)) then
doPlayerSendCancel(cid,"Você está muito cansado.")
return TRUE
end

if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue4)) then
doPlayerSendCancel(cid,"Está esgotado.")
return TRUE
end

if Blood == 1 and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue2)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue3)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue4)) then
doTargetCombatCondition(cid, 0, Bog, 50)
doCreatureAddHealth(cid,10*getCreatureMaxHealth(cid)/100)
doPlayerAddMana(cid,10*getCreatureMaxHealth(cid)/100)
doSetCreatureOutfit(cid, immortal, 6000)
doSendMagicEffect(getCreaturePosition(cid), 12)
doTargetCombatCondition(cid, 0, Immortal, 51)
doPlayerSay(cid, "Muahaha!", TALKTYPE_ORANGE_1)
addEvent(Blood1, 1*2000,cid)
doPlayerAddSoul(cid,-50)
doRemoveItem(item.uid,1)

elseif Blood == 2 and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue2)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue3)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue4)) then
doTargetCombatCondition(cid, 0, Bog, 50)
doCreatureAddHealth(cid,10*getCreatureMaxHealth(cid)/100)
doPlayerAddMana(cid,10*getCreatureMaxHealth(cid)/100)
doSetCreatureOutfit(cid, immortal, 6000)
doSendMagicEffect(getCreaturePosition(cid), 12)
doTargetCombatCondition(cid, 0, Immortal, 51)
doPlayerSay(cid, "Muahaha!", TALKTYPE_ORANGE_1)
addEvent(Blood1, 1*2000,cid)
doPlayerAddSoul(cid,-50)
doRemoveItem(item.uid,1)

elseif Blood == 3 and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue2)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue3)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue4)) then
doTargetCombatCondition(cid, 0, Bog, 50)
doCreatureAddHealth(cid,10*getCreatureMaxHealth(cid)/100)
doPlayerAddMana(cid,10*getCreatureMaxHealth(cid)/100)
doSetCreatureOutfit(cid, immortal, 6000)
doSendMagicEffect(getCreaturePosition(cid), 12)
doTargetCombatCondition(cid, 0, Immortal, 51)
doPlayerSay(cid, "Muahaha!", TALKTYPE_ORANGE_1)
addEvent(Blood1, 1*2000,cid)
doPlayerAddSoul(cid,-50)
doRemoveItem(item.uid,1)

elseif Blood == 4 and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue2)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue3)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue4)) then
doTargetCombatCondition(cid, 0, Bog, 50)
doCreatureAddHealth(cid,10*getCreatureMaxHealth(cid)/100)
doPlayerAddMana(cid,10*getCreatureMaxHealth(cid)/100)
doSetCreatureOutfit(cid, immortal, 6000)
doSendMagicEffect(getCreaturePosition(cid), 12)
doTargetCombatCondition(cid, 0, Immortal, 51)
doPlayerSay(cid, "Muahaha!", TALKTYPE_ORANGE_1)
addEvent(Blood1, 1*2000,cid)
doPlayerAddSoul(cid,-50)
doRemoveItem(item.uid,1)
end
end

 

o erro que ta dando é esse:

Spoiler

bloodds.jpg.80cabd5ba6e04225434b11a87cffb568.jpg

 

bloodds.jpg.80cabd5ba6e04225434b11a87cffb568.jpg

Link para o comentário
Compartilhar em outros sites

  • 3 months later...
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...