SH
dúvida

[Encerrado] Como mudo o Set dos Sample!

Por shuzin, 07 de mar. de 2013 em Tópicos Sem Resposta

resolvido
8
721
shuzinS
07 de março de 2013 às 22:06

Quero que venha tbm com 30k, procurei e não achei!

 

obg

fredpaduaF
07 de março de 2013 às 22:09

Já tentou no script do first itens ? ..

shuzinS
07 de março de 2013 às 22:15

Sabe me dizer em que local fica?

mkbrabsoluteM
07 de março de 2013 às 22:23

Shuzin, vá na sua pasta mods e adicione um arquivo .xml contendo:

 

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<mod name="First Items" version="1.0" author="MKBRABSOLUTE" contact="lu.lukinha" enabled="yes">

<config name="firstitems_config"><![CDATA[

config = {

storage = 30001,

items = {2173, 2168, 2554, 2120}

}

]]></config>

<event type="login" name="FirstItems" event="buffer"><![CDATA[

domodlib('firstitems_config')

if(getPlayerStorageValue(cid, config.storage) > 0) then

return

end

 

for _, id in ipairs(config.items) do

doPlayerAddItem(cid, id, 1)

end

 

if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then

doPlayerAddItem(cid, 2651, 1)

else

doPlayerAddItem(cid, 2650, 1)

end

 

doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2160, 3 )

setPlayerStorageValue(cid, config.storage, 1)

]]></event>

</mod>

 

 

 

 

 

 

Está para começar com 30k e items simples.

 

O nome do arquivo tem que ser firstitems.xml

 

 

Duvidas me fale!

shuzinS
07 de março de 2013 às 22:44

Mas eu apago o que tem dentro?

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<mod name="First Items" version="1.0" author="Kaiser" contact="marranas6@gmail.com" enabled="yes">

<description><![CDATA[

Custom Fist Items

]]></description>

<config name="firstitems_config"><![CDATA[

config = {

storage = 40046,

items = {}

}

]]></config>

<event type="login" name="FirstItems" event="buffer"><![CDATA[

domodlib('firstitems_config')

if(getPlayerStorageValue(cid, config.storage) > 0) then

return

end

 

for _, id in ipairs(config.items) do

doPlayerAddItem(cid, id, 1)

end

 

-- All Vocation

-- BackPack -- Rope -- in Backpack

doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)

-- Brass Armor -- Body

doPlayerAddItem(cid, 2465, 1)

-- Steel Helmet -- Head

doPlayerAddItem(cid, 2457, 1)

-- Bonelord Shield -- Right Hand

doPlayerAddItem(cid, 2518, 1)

 

-- Sorcerer (Weapon) -- Hand

if isSorcerer(cid) then

doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

 

-- Druid (Weapon) -- Hand

elseif isDruid(cid) then

doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

 

-- Paladin - Warrior (Weapon) -- Hand

elseif isPaladin(cid) then

doPlayerAddItem(cid, 2389, 20) -- Spear -- Left Hand

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

 

-- Knight (Weapon) -- Hand

elseif isKnight(cid) then

doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

end

 

-- All Vocation

-- Brass Legs -- in Feet

doPlayerAddItem(cid, 2478, 1)

-- Leather Boots -- in Boots

doPlayerAddItem(cid, 2643, 1)

-- Scarf -- in Necklacke

doPlayerAddItem(cid, 2661, 1)

-- Platinum Coin -- in Arrows

doPlayerAddItem(cid, 2152, 1)

-- Health Potion -- in Backpack

doPlayerAddItem(cid, 7618, 10)

-- Shovel -- in Backpack

doPlayerAddItem(cid, 2554, 1)

-- Crystal Ring -- in Ring

doPlayerAddItem(cid, 2124, 1)

-- Mana Potion -- in Backpack

doPlayerAddItem(cid, 7620, 15)

 

-- Knight (Weapon) -- in Backpack

if isKnight(cid) then

doPlayerAddItem(cid, 8601, 1) -- Steel Axe

doPlayerAddItem(cid, 2439, 1) -- Daramanian mace

end

 

setPlayerStorageValue(cid, config.storage, 1)

]]></event>

</mod>

 

 

 

Consegui! Pode fechar!

ThiagoBjiT
09 de março de 2013 às 15:41

Dúvida Sanada - Reportado.

10 de março de 2013 às 08:50

Tópico movido para a seção de dúvidas e pedidos resolvidos.

5 anos depois...
StigalS
21 de abril de 2018 às 02:42
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.