TRokei Mais ^n Funfo
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Edo Tensei System
Edo Tensei System
Por Junior001, 24 de mar. de 2013 em Actions e Talkactions
info
Grupo: Campones
Registrado: 26/04/13
Posts: 45
Reputação: +2
Char no Tibia: [ADM]4Hokage

info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

Alguma coisa vc deve ta fazendo errada
info
Grupo: Campones
Registrado: 26/04/13
Posts: 45
Reputação: +2
Char no Tibia: [ADM]4Hokage

Fail a criar o pergaminho ajuda criar ae
Cara Eu Uso O Serve Nto RoobHood Ajuda ae Vo Manda as Script
Script Q Tá na espell
function onCastSpell(cid, var)
local playerpos = getPlayerPosition(cid)
local targetpos = getPlayerPosition(getCreatureTarget(cid))
local cloth = getCreatureOutfit(cid)
local health = getCreatureHealth(getCreatureTarget(cid))
if not isMonster(getCreatureTarget(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você so deve pegar o corpo para edo tensei de ninjas e monstros selvagens.")
return 0
end
if health >= getCreatureMaxHealth(getCreatureTarget(cid))/100*70 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ""..getCreatureName(getCreatureTarget(cid)).." esta resistindo ao edo tensei retire mais vida dele")
return 0
end
if getCreatureMaxHealth(getCreatureTarget(cid)) > getCreatureMaxHealth(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você so pode invocar criaturas com o poder mais baixo que o seu")
return 0
end
local item = doPlayerAddItem(cid, 2398)
doItemSetAttribute(item, "corpse", ""..getCreatureName(getCreatureTarget(cid)).."")
doItemSetAttribute(item, "health", ""..getCreatureMaxHealth(getCreatureTarget(cid)).."")
doSendMagicEffect(playerpos, 2)
doSendMagicEffect(targetpos, 2)
doItemSetAttribute(item, "name", "Edo tensei "..getCreatureName(getCreatureTarget(cid)).."")
doRemoveCreature(getCreatureTarget(cid))
return true
end
a Que Ta Na actions
function onUse(cid, item, frompos, item2, topos)
local monstro = getItemAttribute(item.uid, "corpse")
local health = getItemAttribute(item.uid, "health")
local name = getItemAttribute(item.uid, "monstro")
if #getCreatureSummons(cid) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ja esta usando uma reencarnação ou um pet")
return true
end
if getPlayerMana(cid) < health/100*70 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem chakra suficiente")
return true
end
if getPlayerStorageValue(cid, 24436) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode invocar mais de reanimação junto.")
return true
end
t = doCreateMonster(monstro, getThingPos(cid))
doConvinceCreature(cid, t)
setCreatureMaxHealth(t, health)
doCreatureAddHealth(t, health)
doPlayerAddMana(t, -getItemAttribute(item.uid, "health")/90)
setPlayerStorageValue(cid, 24436, name)
return true
end
Tá dando esses erros
[19/05/2013 22:18:08] [Error - Spell Interface]
[19/05/2013 22:18:08] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:08] Description:
[19/05/2013 22:18:08] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:08] [Error - Spell Interface]
[19/05/2013 22:18:08] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:08] Description:
[19/05/2013 22:18:08] (luaGetCreatureHealth) Creature not found
[19/05/2013 22:18:14] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: shop_history (SELECT * FROM shop_history WHERE "processed" = 0;)
[19/05/2013 22:18:16] [Error - Spell Interface]
[19/05/2013 22:18:16] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:16] Description:
[19/05/2013 22:18:16] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:16] [Error - Spell Interface]
[19/05/2013 22:18:16] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:16] Description:
[19/05/2013 22:18:16] (luaGetCreatureHealth) Creature not found
[19/05/2013 22:18:28] [Error - Spell Interface]
[19/05/2013 22:18:28] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:28] Description:
[19/05/2013 22:18:28] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:28] [Error - Spell Interface]
[19/05/2013 22:18:28] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:28] Description:
Quando uso meu edo tensei aparece e uma bota pq
Editado Maio 19 por VanWilder
info
Grupo: Herói
Registrado: 12/06/12
Posts: 1k
Reputação: +362
Gênero: Masculino
Char no Tibia: Aarow

Fail a criar o pergaminho ajuda criar ae
Cara Eu Uso O Serve Nto RoobHood Ajuda ae Vo Manda as Script
Script Q Tá na espell
function onCastSpell(cid, var)
local playerpos = getPlayerPosition(cid)
local targetpos = getPlayerPosition(getCreatureTarget(cid))
local cloth = getCreatureOutfit(cid)
local health = getCreatureHealth(getCreatureTarget(cid))
if not isMonster(getCreatureTarget(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você so deve pegar o corpo para edo tensei de ninjas e monstros selvagens.")
return 0
end
if health >= getCreatureMaxHealth(getCreatureTarget(cid))/100*70 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ""..getCreatureName(getCreatureTarget(cid)).." esta resistindo ao edo tensei retire mais vida dele")
return 0
end
if getCreatureMaxHealth(getCreatureTarget(cid)) > getCreatureMaxHealth(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você so pode invocar criaturas com o poder mais baixo que o seu")
return 0
end
local item = doPlayerAddItem(cid, 2398)
doItemSetAttribute(item, "corpse", ""..getCreatureName(getCreatureTarget(cid)).."")
doItemSetAttribute(item, "health", ""..getCreatureMaxHealth(getCreatureTarget(cid)).."")
doSendMagicEffect(playerpos, 2)
doSendMagicEffect(targetpos, 2)
doItemSetAttribute(item, "name", "Edo tensei "..getCreatureName(getCreatureTarget(cid)).."")
doRemoveCreature(getCreatureTarget(cid))
return true
end
a Que Ta Na actions
function onUse(cid, item, frompos, item2, topos)
local monstro = getItemAttribute(item.uid, "corpse")
local health = getItemAttribute(item.uid, "health")
local name = getItemAttribute(item.uid, "monstro")
if #getCreatureSummons(cid) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ja esta usando uma reencarnação ou um pet")
return true
end
if getPlayerMana(cid) < health/100*70 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem chakra suficiente")
return true
end
if getPlayerStorageValue(cid, 24436) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode invocar mais de reanimação junto.")
return true
end
t = doCreateMonster(monstro, getThingPos(cid))
doConvinceCreature(cid, t)
setCreatureMaxHealth(t, health)
doCreatureAddHealth(t, health)
doPlayerAddMana(t, -getItemAttribute(item.uid, "health")/90)
setPlayerStorageValue(cid, 24436, name)
return true
end
Tá dando esses erros
[19/05/2013 22:18:08] [Error - Spell Interface]
[19/05/2013 22:18:08] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:08] Description:
[19/05/2013 22:18:08] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:08] [Error - Spell Interface]
[19/05/2013 22:18:08] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:08] Description:
[19/05/2013 22:18:08] (luaGetCreatureHealth) Creature not found
[19/05/2013 22:18:14] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: shop_history (SELECT * FROM shop_history WHERE "processed" = 0;)
[19/05/2013 22:18:16] [Error - Spell Interface]
[19/05/2013 22:18:16] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:16] Description:
[19/05/2013 22:18:16] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:16] [Error - Spell Interface]
[19/05/2013 22:18:16] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:16] Description:
[19/05/2013 22:18:16] (luaGetCreatureHealth) Creature not found
[19/05/2013 22:18:28] [Error - Spell Interface]
[19/05/2013 22:18:28] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:28] Description:
[19/05/2013 22:18:28] (luaGetThingPosition) Thing not found
[19/05/2013 22:18:28] [Error - Spell Interface]
[19/05/2013 22:18:28] data/spells/scripts/sasuke/edo tensei.lua:onCastSpell
[19/05/2013 22:18:28] Description:
Quando uso meu edo tensei aparece e uma bota pq
vc tem de trocar as ids la para a id do seu pergaminho
Tem como coloka pra pega corpse player
Coloquei o edo tensei no Orocgimaru porém quando eu falo edo tensei aparece em baixo You need to learn this jutsu first (Você precisa aprender este jutsu primeiro) como aprende ? Pode ajudar ? Se sim dou rep+






info
Grupo: Marquês
Registrado: 02/08/12
Posts: 1k
Reputação: +234
Char no Tibia: Maurolkit
Você deve alterar o id aqui
<action itemid="2525" event="script" value="edo tensei.lua"/>
e aqui
local item = doPlayerAddItem(cid, 2525)