Ir para conteúdo

[Encerrado] Fishing


Daniel Bighouse

Posts Recomendados

Oi tenho um sistema de Fishing no meu server mais dá este erro:

[Error - Action Interface]
data/actions/scripts/tools/fishing.lua:onUse
Description:
data/actions/scripts/tools/fishing.lua:45: attempt to perform arithmetic on field 'level' <a nil value>
atack traceback:
data/actions/scripts/tools/fishing.lua:45: in function 'doFish'
data/actions/scripts/tools/fishing.lua:126: in function <data/actions/scripts/tools/fishing.lua:71>

 

 

Script:

 

 

local fishing = {

["Squirtle"] = {skill = 0},

}

 

local storage = 15458

local bonus = 1

local limite = 80

 

 

local function doFish(cid, pos, ppos, chance, interval, number)

if not isCreature(cid) then return false end

 

if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then

return false end

 

if getPlayerStorageValue(cid, storage) ~= number then return false end

 

doSendMagicEffect(pos, CONST_ME_LOSEENERGY)

 

local peixe = 0

local playerpos = getClosestFreeTile(cid, getThingPos(cid))

local level = 1

local fishes = {}

local randomfish = ""

 

 

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

 

for a, b in pairs (fishing) do

if getPlayerSkillLevel(cid, 6) >= b.skill then

table.insert(fishes, a)

end

end

 

if math.random(1, 100) <= chance then

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

randomfish = fishes[math.random(#fishes)]

level = getPlayerSkillLevel(cid, 6) / 3

level = level + getPlayerLevel(cid) / 5

level = math.random(level * 0.6, level)

level = level + fishing[randomfish].level

peixe = doSummonCreature(randomfish, playerpos)

if level <= 0 then

level = math.random(getPlayerLevel(cid))

end

if not isCreature(peixe) then

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

setWildPokemonLevel(peixe, level)

doSetMonsterPassive(peixe)

doWildAttackPlayer(peixe, cid)

if #getCreatureSummons(cid) >= 1 then

doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173)

doChallengeCreature(getCreatureSummons(cid)[1], peixe)

else

doSendMagicEffect(getThingPos(cid), 173)

doChallengeCreature(cid, peixe)

end

return true

end

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

 

local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

if getPlayerGroupId(cid) == 11 then

return true

end

 

local checkPos = toPos

checkPos.stackpos = 0

 

if getTileThingByPos(checkPos).itemid <= 0 then

doPlayerSendCancel(cid, '!')

return true

end

 

if not isInArray(waters, getTileInfo(toPos).itemid) then

return true

end

 

if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then

doPlayerSendCancel(cid, "You can't fish while surfing/flying.")

return true

end

 

if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then

doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.")

return true

end

 

if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then

doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.")

return true

end

 

if not tonumber(getPlayerStorageValue(cid, storage)) then

local test = io.open("data/sendtobrun123.txt", "a+")

local read = ""

if test then

read = test:read("*all")

test:close()

end

read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage)..""

local reopen = io.open("data/sendtobrun123.txt", "w")

reopen:write(read)

reopen:close()

setPlayerStorageValue(cid, storage, 1)

end

 

setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)

if getPlayerStorageValue(cid, storage) >= 800 then

setPlayerStorageValue(cid, storage, 1)

end

 

local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25

local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5

 

doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage))

 

return true

end

 

 

 

É alguma função faltando aonde?

Se é sources eu tenho elas aqui!

Editado por DanielBadhu
Link para o comentário
Compartilhar em outros sites

Tenta esse

local fishing = {

["Squirtle"] = {skill = 0},

}

 

local storage = 15458

local bonus = 1

local limite = 80

 

 

local function doFish(cid, pos, ppos, chance, interval, number)

if not isCreature(cid) then return false end

 

if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then

return false end

 

if getPlayerStorageValue(cid, storage) ~= number then return false end

 

doSendMagicEffect(pos, CONST_ME_LOSEENERGY)

 

local peixe = 0

local playerpos = getClosestFreeTile(cid, getThingPos(cid))

local fishes = {}

local randomfish = ""

 

--alterado!!

-- if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

-- end

 

for a, b in pairs (fishing) do

if getPlayerSkillLevel(cid, 6) >= b.skill then

table.insert(fishes, a)

end

end

 

if math.random(1, 100) <= chance then

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

randomfish = fishes[math.random(#fishes)]

peixe = doSummonCreature(randomfish, playerpos)

if not isCreature(peixe) then

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

doSetMonsterPassive(peixe)

doWildAttackPlayer(peixe, cid)

if #getCreatureSummons(cid) >= 1 then

doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173)

doChallengeCreature(getCreatureSummons(cid)[1], peixe)

else

doSendMagicEffect(getThingPos(cid), 173)

doChallengeCreature(cid, peixe)

end

return true

end

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

 

local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

if getPlayerGroupId(cid) == 11 then

return true

end

 

local checkPos = toPos

checkPos.stackpos = 0

 

if getTileThingByPos(checkPos).itemid <= 0 then

doPlayerSendCancel(cid, '!')

return true

end

 

if not isInArray(waters, getTileInfo(toPos).itemid) then

return true

end

 

if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then

doPlayerSendCancel(cid, "You can't fish while surfing/flying.")

return true

end

 

if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then

doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.")

return true

end

 

if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then

doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.")

return true

end

 

if not tonumber(getPlayerStorageValue(cid, storage)) then

local test = io.open("data/sendtobrun123.txt", "a+")

local read = ""

if test then

read = test:read("*all")

test:close()

end

read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage)..""

local reopen = io.open("data/sendtobrun123.txt", "w")

reopen:write(read)

reopen:close()

setPlayerStorageValue(cid, storage, 1)

end

 

setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)

if getPlayerStorageValue(cid, storage) >= 800 then

setPlayerStorageValue(cid, storage, 1)

end

 

local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25

local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5

 

doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage))

 

return true

end

 

Link para o comentário
Compartilhar em outros sites

Novo erro:

[Error - Action Interface]
In a timer event called from:
data/actions/scripts/tools/fishing.lua:onUse
Description:
data/actions/scripts/tools/fishing.lua:46: attempt to call global 'doSetMonsterPassive' <a nil value>
atack traceback:
data/actions/scripts/tools/fishing.lua:46: in function <data/actions/scripts/tools/fishing.lua:10>

Link para o comentário
Compartilhar em outros sites

Tente esse ja que seu seve nao tme passive(o.O)

 

local fishing = {

["Squirtle"] = {skill = 0},

}

 

local storage = 15458

local bonus = 1

local limite = 80

 

 

local function doFish(cid, pos, ppos, chance, interval, number)

if not isCreature(cid) then return false end

 

if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then

return false end

 

if getPlayerStorageValue(cid, storage) ~= number then return false end

 

doSendMagicEffect(pos, CONST_ME_LOSEENERGY)

 

local peixe = 0

local playerpos = getClosestFreeTile(cid, getThingPos(cid))

local fishes = {}

local randomfish = ""

 

--alterado!!

-- if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

-- end

 

for a, b in pairs (fishing) do

if getPlayerSkillLevel(cid, 6) >= b.skill then

table.insert(fishes, a)

end

end

 

if math.random(1, 100) <= chance then

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

randomfish = fishes[math.random(#fishes)]

peixe = doSummonCreature(randomfish, playerpos)

if not isCreature(peixe) then

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

doWildAttackPlayer(peixe, cid)

if #getCreatureSummons(cid) >= 1 then

doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173)

doChallengeCreature(getCreatureSummons(cid)[1], peixe)

else

doSendMagicEffect(getThingPos(cid), 173)

doChallengeCreature(cid, peixe)

end

return true

end

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

 

local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

if getPlayerGroupId(cid) == 11 then

return true

end

 

local checkPos = toPos

checkPos.stackpos = 0

 

if getTileThingByPos(checkPos).itemid <= 0 then

doPlayerSendCancel(cid, '!')

return true

end

 

if not isInArray(waters, getTileInfo(toPos).itemid) then

return true

end

 

if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then

doPlayerSendCancel(cid, "You can't fish while surfing/flying.")

return true

end

 

if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then

doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.")

return true

end

 

if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then

doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.")

return true

end

 

if not tonumber(getPlayerStorageValue(cid, storage)) then

local test = io.open("data/sendtobrun123.txt", "a+")

local read = ""

if test then

read = test:read("*all")

test:close()

end

read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage)..""

local reopen = io.open("data/sendtobrun123.txt", "w")

reopen:write(read)

reopen:close()

setPlayerStorageValue(cid, storage, 1)

end

 

setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)

if getPlayerStorageValue(cid, storage) >= 800 then

setPlayerStorageValue(cid, storage, 1)

end

 

local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25

local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5

 

doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage))

 

return true

end

 

 

Oou tente esse:

 

function onUse(cid, item, fromPos, itemEx, toPos)

if #getCreatureSummons(cid) <= 0 then

return doPlayerSendCancel(cid, "voce nao pode pescar sem pokemons.")

end

if getTilePzInfo(getCreaturePosition(cid)) then

return doPlayerSendCancel(cid, "You can't use Fishing Rod in Protection Zones.")

end

if getTilePzInfo(getCreaturePosition(getCreatureSummons(cid)[1])) then

return doPlayerSendCancel(cid, "You can't use Fishing Rod in Protection Zones.")

end

 

d0 =

{

[0] = {pokemon = 'Magikarp'},

[1] = {pokemon = 'Krabby'},

[2] = {pokemon = 'Poliwag'},

[3] = {pokemon = 'Goldeen'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Magikarp'},

[7] = {pokemon = 'Krabby'},

[8] = {pokemon = 'Poliwag'},

[9] = {pokemon = 'Goldeen'},

[10] = {pokemon = 'Horsea'},

[11] = {pokemon = 'Tentacool'},

[12] = {pokemon = 'Magikarp'},

[13] = {pokemon = 'Krabby'},

[14] = {pokemon = 'Poliwag'},

[15] = {pokemon = 'Goldeen'},

[16] = {pokemon = 'Horsea'},

[17] = {pokemon = 'Tentacool'},

[18] = {pokemon = 'Magikarp'},

[19] = {pokemon = 'Krabby'},

[20] = {pokemon = 'Poliwag'},

[21] = {pokemon = 'Goldeen'},

[22] = {pokemon = 'Horsea'},

[23] = {pokemon = 'Tentacool'},

 

}

 

d20 =

{

[0] = {pokemon = 'Magikarp'},

[1] = {pokemon = 'Krabby'},

[2] = {pokemon = 'Poliwag'},

[3] = {pokemon = 'Goldeen'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Magikarp'},

[7] = {pokemon = 'Krabby'},

[8] = {pokemon = 'Poliwag'},

[9] = {pokemon = 'Goldeen'},

[10] = {pokemon = 'Horsea'},

[11] = {pokemon = 'Tentacool'},

[12] = {pokemon = 'Magikarp'},

[13] = {pokemon = 'Krabby'},

[14] = {pokemon = 'Poliwag'},

[15] = {pokemon = 'Seaking'},

[16] = {pokemon = 'Horsea'},

[17] = {pokemon = 'Tentacool'},

[18] = {pokemon = 'Magikarp'},

[19] = {pokemon = 'Shiny Krabby'},

[20] = {pokemon = 'Poliwag'},

[21] = {pokemon = 'Goldeen'},

[22] = {pokemon = 'Horsea'},

[23] = {pokemon = 'Tentacool'},

}

 

d40 =

{

[0] = {pokemon = 'Magikarp'},

[1] = {pokemon = 'Krabby'},

[2] = {pokemon = 'Poliwhirl'},

[3] = {pokemon = 'Seaking'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Magikarp'},

[7] = {pokemon = 'Krabby'},

[8] = {pokemon = 'Poliwag'},

[9] = {pokemon = 'Goldeen'},

[10] = {pokemon = 'Horsea'},

[11] = {pokemon = 'Tentacool'},

[12] = {pokemon = 'Magikarp'},

[13] = {pokemon = 'Shiny Krabby'},

[14] = {pokemon = 'Poliwag'},

[15] = {pokemon = 'Goldeen'},

[16] = {pokemon = 'Shiny Horsea'},

[17] = {pokemon = 'Tentacool'},

[18] = {pokemon = 'Magikarp'},

[19] = {pokemon = 'Krabby'},

[20] = {pokemon = 'Poliwag'},

[21] = {pokemon = 'Goldeen'},

[22] = {pokemon = 'Horsea'},

[23] = {pokemon = 'Tentacool'},

}

 

d60 =

{

[0] = {pokemon = 'Magikarp'},

[1] = {pokemon = 'Krabby'},

[2] = {pokemon = 'Poliwhirl'},

[3] = {pokemon = 'Seaking'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Magikarp'},

[7] = {pokemon = 'Krabby'},

[8] = {pokemon = 'Poliwag'},

[9] = {pokemon = 'Goldeen'},

[10] = {pokemon = 'Horsea'},

[11] = {pokemon = 'Tentacool'},

[12] = {pokemon = 'Magikarp'},

[13] = {pokemon = 'Shiny Krabby'},

[14] = {pokemon = 'Poliwag'},

[15] = {pokemon = 'Goldeen'},

[16] = {pokemon = 'Shiny Horsea'},

[17] = {pokemon = 'Tentacool'},

[18] = {pokemon = 'Magikarp'},

[19] = {pokemon = 'Krabby'},

[20] = {pokemon = 'Poliwhirl'},

[21] = {pokemon = 'Seaking'},

[22] = {pokemon = 'Seadra'},

[23] = {pokemon = 'Shiny Tentacool'},

}

 

d80 =

{

[0] = {pokemon = 'Magikarp'},

[1] = {pokemon = 'Krabby'},

[2] = {pokemon = 'Poliwhirl'},

[3] = {pokemon = 'Seaking'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Magikarp'},

[7] = {pokemon = 'Krabby'},

[8] = {pokemon = 'Poliwag'},

[9] = {pokemon = 'Goldeen'},

[10] = {pokemon = 'Horsea'},

[11] = {pokemon = 'Tentacool'},

[12] = {pokemon = 'Shiny Kingler'},

[13] = {pokemon = 'Shiny Krabby'},

[14] = {pokemon = 'Poliwhirl'},

[15] = {pokemon = 'Seaking'},

[16] = {pokemon = 'Shiny Horsea'},

[17] = {pokemon = 'Tentacool'},

[18] = {pokemon = 'Magikarp'},

[19] = {pokemon = 'Kingler'},

[20] = {pokemon = 'Poliwhirl'},

[21] = {pokemon = 'Seaking'},

[22] = {pokemon = 'Seadra'},

[23] = {pokemon = 'Shiny Tentacool'},

[24] = {pokemon = 'Shiny Magikarp'},

[25] = {pokemon = 'Krabby'},

[26] = {pokemon = 'Poliwhirl'},

[27] = {pokemon = 'Seaking'},

[28] = {pokemon = 'Horsea'},

[29] = {pokemon = 'Tentacool'},

[30] = {pokemon = 'Magikarp'},

[31] = {pokemon = 'Krabby'},

[32] = {pokemon = 'Poliwag'},

[33] = {pokemon = 'Goldeen'},

[34] = {pokemon = 'Horsea'},

[35] = {pokemon = 'Tentacool'},

}

 

d100 =

{

[0] = {pokemon = 'Staryu'},

[1] = {pokemon = 'Starmie'},

[2] = {pokemon = 'Starmie'},

[3] = {pokemon = 'Staryu'},

[4] = {pokemon = 'Horsea'},

[5] = {pokemon = 'Tentacool'},

[6] = {pokemon = 'Shiny Magikarp'},

[7] = {pokemon = 'Kingler'},

[8] = {pokemon = 'Poliwhirl'},

[9] = {pokemon = 'Seaking'},

[10] = {pokemon = 'Seadra'},

[11] = {pokemon = 'Tentacruel'},

[12] = {pokemon = 'Shiny Magikarp'},

[13] = {pokemon = 'Shiny Krabby'},

[14] = {pokemon = 'Gyarados'},

[15] = {pokemon = 'Seaking'},

[16] = {pokemon = 'Shiny Horsea'},

[17] = {pokemon = 'Tentacruel'},

[18] = {pokemon = 'Gyarados'},

[19] = {pokemon = 'Kingler'},

[20] = {pokemon = 'Tentacruel'},

[21] = {pokemon = 'Seaking'},

[22] = {pokemon = 'Shiny Seadra'},

[23] = {pokemon = 'Shiny Tentacool'},

[24] = {pokemon = 'Shiny Magikarp'},

[25] = {pokemon = 'Shiny Krabby'},

[26] = {pokemon = 'Shiny Seadra'},

[27] = {pokemon = 'Seaking'},

[28] = {pokemon = 'Shiny Horsea'},

[29] = {pokemon = 'Tentacruel'},

[30] = {pokemon = 'Magikarp'},

[31] = {pokemon = 'Kingler'},

[32] = {pokemon = 'Poliwhirl'},

[33] = {pokemon = 'Seaking'},

[34] = {pokemon = 'Shiny Seadra'},

[35] = {pokemon = 'Tentacruel'},

[36] = {pokemon = 'Shiny Magikarp'},

 

}

local config = {

waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825},

}

 

local skill = getPlayerSkillLevel(cid, 6)

local playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z}

 

if(isInArray(config.waters, itemEx.itemid)) then

doSendMagicEffect(toPos, CONST_ME_LOSEENERGY)

doPlayerAddSkillTry(cid, 6, 1)

 

if skill >= 100 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d100[random].pokemon, playerpos)

return true

end

else

if skill >= 80 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d80[random].pokemon, playerpos)

return true

end

else

if skill >= 60 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d60[random].pokemon, playerpos)

return true

end

else

if skill >= 40 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d40[random].pokemon, playerpos)

return true

end

else

if skill >= 20 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d20[random].pokemon, playerpos)

return true

end

else

if skill >= 0 and skill < 20 then

local random = math.random(0, 80)

if random <= 23 then

doSummonCreature(d0[random].pokemon, playerpos)

return true

end

return true

end

return true

end

return true

end

end

end

end

end

end

 

 

Link para o comentário
Compartilhar em outros sites

O primeiro script funciona ele summona o pokemon, mais ele da erro porque ainda tem o sistema de Pokemons Selvagens.

Já o segundo script nem summona o pokemon.wacko.png

 

Tirei o erro deixando sem a função doWildAttckPlayer(peixe,cid)happy.png

 

REP+ pela ajuda! já sei que embreve tarei pedindo ajuda em outro script '-' fazer o que poucos script se conditadam para ajudar!

É tenso a vida. kkkkkkkk mais eu curto ela:P

Editado por DanielBadhu
Link para o comentário
Compartilhar em outros sites

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...