TI
bug

bug no fistitem

Por tiagodj16, 17 de fev. de 2016 em Scripts

4
1.1k
tiagodj16T
17 de fevereiro de 2016 às 09:04

alguem saber resolver pois ja mexi no fistitem e nada

 

post-360812-0-11617100-1455706922_thumb.png


item da bag e do coin estao trocados

DarkrausD
17 de fevereiro de 2016 às 10:14

mande o script do firstitem.lua.

e a versão do seu distro.

 

Especifique também se o personagem novo é criado a partir do account manager ou não...

em muitos servidores os personagens criados pelo account manager "herdam" os items do account manager.

 

Editado Fevereiro 17 por Darkraus

tiagodj16T
18 de fevereiro de 2016 às 00:18

ditro e t.f.s 0.3.6

personagem e account managem no caso sql futuramente pensando coloca em mysql

 

 

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config">
<![CDATA[ config = {
storage = 30001,
items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547}
-- 7385 (pokeinfo)
-- 2395 (portfoil) ok
-- 2382 (pokedex) ok
-- 2547 (coin case) ok
-- 2550 (order) ok
-- 1987 (bag) ok
-- 1988 (badge case) ok
-- 2120 (rope) ok
-- 2580 (fishing rod) ok
}
]]>
</config>
<event type="login" name="FirstItems" event="script">
<![CDATA[
domodlib('firstitems_config')
function onLogin(cid)
if getCreatureName(cid) == "Account Manager" then
doSetCreatureOutfit(cid, {lookType = 655}, -1)
return true
end
if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
return true
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
local bag = getPlayerItemById(cid, false, 1988).uid
doAddContainerItem(bag, 12267, 1)
doAddContainerItem(bag, 12266, 1)
doAddContainerItem(bag, 12264, 1)
doAddContainerItem(bag, 12265, 1)
doAddContainerItem(bag, 12263, 1)
doAddContainerItem(bag, 12262, 1)
doAddContainerItem(bag, 12261, 1)
doAddContainerItem(bag, 12260, 1)
return true
end
]]></event>
</mod>

galera quem tive mesmo problema e so troca as id do casino coin pelo da bag tava vendo aqui testei e deu certo

 

 

topico resolvido

CaronteC
18 de fevereiro de 2016 às 00:41
Melhor resposta

Tópico Movido
Este tópico foi movido de "OTServScriptingSuporte Scripting"
para "OTServScriptingSuporte ScriptingPedidos e dúvidas resolvidos - Scripting".