-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By daniel.braga989
Desde já agradeço se alguém conseguir arrumar, pois eu tentei por dias.
Spells:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_PINK)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -34.0, 0, -49.5, 0)
local function onCastSpell1(parameters)
if isCreature(parameters.cid) and getCreatureTarget(parameters.cid) then
if getPlayerStorageValue(parameters.cid, 58482) >= 1 then
local position1 = {x = getThingPosition(getCreatureTarget(parameters.cid)).x + 0, y = getThingPosition(getCreatureTarget(parameters.cid)).y + 0, z = getCreaturePosition(getCreatureTarget(parameters.cid)).z}
doSendMagicEffect(position1, 4)
end
setPlayerStorageValue(parameters.cid, 58482, 1)
return doCombat(parameters.cid, parameters.combat1, parameters.var)
end
end
function onCastSpell(cid, var)
local parameters = {cid = cid, var = var, combat1 = combat1}
local waittime = 1 -- Tempo de exhaustion
local storage = 12001
if(isPlayer(cid) and exhaustion.check(cid, 12001)) then
return false
end
exhaustion.set(cid, storage, waittime)
for k = 1, 4 do
addEvent(function()
if isCreature(cid) then
addEvent(onCastSpell1, 1, parameters)
end
end, 1 + ((k-1) * 525))
end
return true
end
Erro:
[17:14:22.256] [Error - Spell Interface]
[17:14:22.258] In a timer event called from:
[17:14:22.259] data/spells/scripts/LvL100/kaioken brust.lua:onCastSpell
[17:14:22.260] Description:
[17:14:22.260] (LuaInterface::luaGetThingPosition) Thing not found
[17:14:22.261] [Error - Spell Interface]
[17:14:22.262] In a timer event called from:
[17:14:22.263] data/spells/scripts/LvL100/kaioken brust.lua:onCastSpell
[17:14:22.263] Description:
[17:14:22.263] data/spells/scripts/LvL100/kaioken brust.lua:9: attempt to index a boolean value
[17:14:22.264] stack traceback:
[17:14:22.264] data/spells/scripts/LvL100/kaioken brust.lua:9: in function <data/spells/scripts/LvL100/kaioken brust.lua:6>
Esse erro acontece ao matar o monstro, ou ao sair da tela do alvo enquanto tem animação da spell.
-
By usoparagames
Meu servidor é uma base cyan (pda) tsf 0.4
eu tenho um held system mt bom e funcional ,porem o único que eu não consegui colocar pra funcionar bem é o y-Ghost ,
que eu creio que seja configurado no somefunctions.lua , porem eu não tenho o conhecimento suficiente para desenvolver .( ja tentei ).
o item já é utilizável porem quando eu coloco no Pokémon ele não muda nada e não da a característica de Ghost (atravessar paredes e itens) que deveria .
se alguém puder me ajudar ficarei muito grato !
-
By TheFrost
Alguém poderia colocar uma certa quantidade de item nesse script, para ser forjado. Como já ta no script, é de 1 em 1.
Exemplo:
1- necessita de 1 item
2- necessita de 10 item
3- necessita de 10 item
function onUse(cid, item, fromPosition, itemEx, toPosition)
local Configs = {
----------------------------- Rare ---------------------------------------
pos_bancada1 = {x=983,y=965,z=8},
pos_bancada2 = {x=984,y=965,z=8},
pos_bancada3 = {x=985,y=965,z=8},
pos_premio1 = {x=983,y=967,z=8},
item1_craft = {item1=7463},
item2_craft = {item2=11388},
item3_craft = {item3=11387},
item4_craft = {premio=11215, nome_do_item='Pink Hard'},
----------------------------- End ---------------------------------------
}
local Script = {
stack1 = getItemStackpos(Configs.pos_bancada1,Configs.item1_craft.item1),
stack2 = getItemStackpos(Configs.pos_bancada2,Configs.item2_craft.item2),
stack3 = getItemStackpos(Configs.pos_bancada3,Configs.item3_craft.item3),
}
if Script.stack1 and Script.stack2 and Script.stack3 then
doCleanTile(Configs.pos_bancada1)
doCleanTile(Configs.pos_bancada2)
doCleanTile(Configs.pos_bancada3)
addEvent(doCreateItem, 100, Configs.item4_craft.premio, 1, Configs.pos_premio1)
doPlayerSendTextMessage(cid, 22, "Parabens, Voce Forjou uma"..Configs.item4_craft.nome_do_item.." .")
doSendMagicEffect(Configs.pos_bancada1, 122)
doSendMagicEffect(Configs.pos_bancada2, 122)
doSendMagicEffect(Configs.pos_bancada3, 122)
return true
end
doPlayerSendTextMessage(cid, 28, "Voce nao tem os 3 itens, para Craftar!")
return true
end
function getItemStackpos(position, id)
if getTileItemById(position, id).itemid == 0 then
return nil
end
for i = 0, 255 do
local pos = getThingFromPos({x=position.x, y=position.y, z=position.z, stackpos=i})
if pos.itemid == id then
return i
end
end
end
Up
-
By ericles
.Qual servidor ou website você utiliza como base?
Base pokeroxy
Qual o motivo deste tópico?
Esses erros acontecem e a caba derrubando o jogo
Está surgindo algum erro? Se sim coloque-o aqui.
Você tem o código disponível? Se tiver publique-o aqui:
Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
By huancaio
PESSOAL, CONSEGUI RESOLVER O PROBLEMA. O ERRO ESTAVA NA DATABASE OZ_OTS_COMUNICATION. HAVIA INTENS QUE NÃO ESTAVAM SENDO ENTREGADOS AOS PLAYERS. COM A EXCLUSÃO NA BASE DE DADOS, O PROBLEMA FOI SANADO.
Qual servidor ou website você utiliza como base?
Bom dia pessoal, estou utilizando um servidor Baiak com site Gesior.
Preciso da ajuda de vocês para solucionar um erro no shop.lua.
O erro que aparece é esse aqui:
Aqui está meu shop.lua:
local SHOP_MSG_TYPE = MESSAGE_STATUS_CONSOLE_RED local SQL_interval = 30 function generateSerial() --local lettersUsedToGenerateHash = "AaBbCcDdEeFfGgHhIiJjKkLlMmOoPpQqRrSsTtUuVvWwXxYyZz" local lettersUsedToGenerateHash = "ABCDEFGHIJKLMOPQRSTUVWXYZ" local newSerial = "!" for k = 1, 10 do local l = math.random(1, string.len(lettersUsedToGenerateHash)) newSerial = newSerial .. string.sub(lettersUsedToGenerateHash, l, l) end local newSerialInt = math.random(999999) newSerial = newSerial .."-" .. newSerialInt -- Set TIME -> newSerial = newSerialStr .. "-" .. os.time() .. "-" .. newSerialInt -- length: ![10 letters]-[10 numbers (unix date)]-[6 numbers] -- length = 29 [always!] return newSerial end function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do local id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) --doItemSetAttribute(new_item, "description", "Name: ".. getPlayerName(cid) ..". Data: ".. os.date("%d %B %Y Hora: %X. ").."Serial: "..generateSerial().."") doItemSetAttribute(new_item, "description", "Serial: "..generateSerial().."") --doItemSetAttribute(new_item, "description", "This item was purchased at the shop by the player ".. getPlayerName(cid) ..".") --doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '{Shopping System} Entrega do Item '.. add_item_name ..' Feita com Sucesso!.') db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, ' {Shopping System} Sua Backpack Nao Tem Espaco Para Receber o Item '.. add_item_name ..' Por Favor Abra Espaco em Sua Backpack, Estaremos Tentando Entregar o Item Em '.. SQL_interval ..' Segundos!.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end
Desde já agradeço a ajuda de vocês
O erro que ocorre é esse:
-
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.