MA

[Mods] Firstitems De Pokemon

Por mario21, 03 de mar. de 2012 em Mods, funções e outros

script
3
1.7k
mario21M
03 de março de 2012 às 22:27

Bom, vim aqui trazer um MOD simples, porém muito útil, a função dele é destribuir o First Itens por vocação.

 

Vá na pasta do seu servidor, abra a pasta mods e edite o arquivo "firstitems.xml" e substitua tudo por isto:

 

 

 

<!--?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) ok
-- 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>

 

o mano me ajuda ae com o rep+

Editado Março 3 por mario21

SkyDangerousS
03 de março de 2012 às 22:32

Ficaria melhor por em

[codes]
tipo assim
[/code]

 

para o intendimento do script .

mario21M
03 de março de 2012 às 22:43

ae valeu mano

Editado Março 3 por mario21