Jump to content
Close
You need to be logged in to see additionnal information and be able to contact the advertiser!

Summon em PZ (Pokémon)

   (0 reviews)

Summon em PZ (Pokémon)

   (0 reviews)

NO VALUE SPECIFIED


  • Advertiser
  • Type of Advert Looking for Freelancers
  • Item Condition To combine
  • Time Left 2 months and 12 days -
  • Price NO VALUE SPECIFIED
1 Question
0 Reviews
277 views

Description

Procuro programador lua pra remover problema do goback do meu servidor de pokémon:

 

.Qual servidor ou website você utiliza como base? 

Pokémon Flash

Qual o motivo deste tópico? 

Pokémon não sai da balls em área com PZ

Está surgindo algum erro? Se sim coloque-o aqui. 

[16/08/2019 16:40:37] [Error - Action Interface] 
[16/08/2019 16:40:37] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:40:37] Description: 
[16/08/2019 16:40:37] (luaDoConvinceCreature) Creature not found

[16/08/2019 16:40:37] [Error - Action Interface] 
[16/08/2019 16:40:37] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:40:37] Description: 
[16/08/2019 16:40:37] (luaRegisterCreatureEvent) Creature not found

[16/08/2019 16:40:37] [Error - Action Interface] 
[16/08/2019 16:40:37] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:40:37] Description: 
[16/08/2019 16:40:37] (luaGetThingPosition) Thing not found

[16/08/2019 16:40:37] [Error - Action Interface] 
[16/08/2019 16:40:37] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:40:37] Description: 
[16/08/2019 16:40:37] (luaDoCreatureAddHealth) Creature not found

[16/08/2019 16:44:51] [Error - Action Interface] 
[16/08/2019 16:44:51] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:51] Description: 
[16/08/2019 16:44:51] (luaDoConvinceCreature) Creature not found

[16/08/2019 16:44:51] [Error - Action Interface] 
[16/08/2019 16:44:51] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:51] Description: 
[16/08/2019 16:44:51] (luaRegisterCreatureEvent) Creature not found

[16/08/2019 16:44:51] [Error - Action Interface] 
[16/08/2019 16:44:51] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:51] Description: 
[16/08/2019 16:44:51] (luaGetThingPosition) Thing not found

[16/08/2019 16:44:51] [Error - Action Interface] 
[16/08/2019 16:44:51] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:51] Description: 
[16/08/2019 16:44:51] (luaDoCreatureAddHealth) Creature not found
[16/08/2019 16:44:56] Reloaded actions.

[16/08/2019 16:44:57] [Error - Action Interface] 
[16/08/2019 16:44:57] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:57] Description: 
[16/08/2019 16:44:57] (luaDoConvinceCreature) Creature not found

[16/08/2019 16:44:57] [Error - Action Interface] 
[16/08/2019 16:44:57] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:57] Description: 
[16/08/2019 16:44:57] (luaRegisterCreatureEvent) Creature not found

[16/08/2019 16:44:57] [Error - Action Interface] 
[16/08/2019 16:44:57] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:57] Description: 
[16/08/2019 16:44:57] (luaGetThingPosition) Thing not found

[16/08/2019 16:44:57] [Error - Action Interface] 
[16/08/2019 16:44:57] data/actions/scripts/masterball.lua:onUse
[16/08/2019 16:44:57] Description: 
[16/08/2019 16:44:57] (luaDoCreatureAddHealth) Creature not found
 

Você tem o código disponível? Se tiver publique-o aqui: 

function onUse(cid, item, fromPosition, itemEx, toPosition)
function getPokemonMaxLife(name)
		local file = io.open('data/monster/monsters.xml','r')
		local arquivo = file:read(-1):lower():match('<monster name="'..name:lower()..'" file="(.-)"/>')
		file:close()
		local data = io.open('data/monster/'..(arquivo or ''),'r')
		if not data then
			return 100
		end
		local maximo = data:read(-1):match('max%s*=%s*"(%d+)"')
		data:close()
		return maximo
end
----- Config -----
local MaximoSummon = 1
local nome = getItemName(item.uid)
local poke_name = nome:match('(.-) Masterball')
local summons = getCreatureSummons(cid)
local action_id = getItemAttribute(item.uid, "aid")
----- Config -----
	if getPlayerStorageValue(cid, 25000) == 5 then       
	return doPlayerSendCancel(cid, "You are riding.")
	end
	if getPlayerStorageValue(cid, 23000) == 5 then
	return doPlayerSendCancel(cid, "You are flying.")
	end
	if getItemAttribute(item.uid, "aid") == -1 then
	return doPlayerSendCancel(cid, "Your Pokemon Is Dead.")
	end	
local summons = getCreatureSummons(cid)
if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then
doPlayerSendCancel(cid, "Sorry, you must put your pokeball in the pokeball place.")
return TRUE
end
if(table.maxn(summons) < MaximoSummon) then -- no summons
creature = doSummonCreature(poke_name, getCreaturePosition(cid))
doConvinceCreature(cid, creature)
registerCreatureEvent(creature, "Masterball")
registerCreatureEvent(cid, "PlayerPokeDeath")
registerCreatureEvent(cid, "LogoutPoke")
doPlayerSay(cid, "Go,"..poke_name.."!!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(creature), 196)
doTransformItem(getPlayerSlotItem(cid,8).uid, 2523, 1)
doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Masterball")
		if action_id ~= 0 then
doCreatureAddHealth(creature, -(tonumber(getPokemonMaxLife(poke_name) - action_id)))
		else
		doCreatureAddHealth(creature, getPokemonMaxLife(poke_name))
		end
else
for _, pid in ipairs(summons) do
if (table.maxn(summons) >= 1) then
doItemSetAttribute(item.uid, "aid", getCreatureHealth(summons[1]))
doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), 196)
doPlayerSay(cid,"Back, "..poke_name.."", TALKTYPE_ORANGE_1)
doRemoveCreature(pid)
doTransformItem(getPlayerSlotItem(cid,8).uid, 2195, 1)
doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Masterball")
end
end
end
return true
end

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

https://prnt.sc/otnfcy

 

---------------------------------------

Quem souber arrumar por favor deixar o DISCORD e valor do orçamento nos comentários. Obrigado



Recommended Questions


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Ask a Question

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


Other adverts from procura-se-freelancers


Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!

×
×
  • Create New...