Scrip simples porem eu nao sei fazer PAGO SE FOR PRESISO

Idealizador
em Scripts

Idealizador

“Tá putinho por que, entrou areia na sua vagina?”
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/07/13Posts: 18

ola xtibia estou com um scrip com problema

 

esse e o script em questão ele e usado em um ot de war 8.6 o TheForgottenServerV8.2

 

e simples aqui no script mostra os items iniciais ate ai tudo bem porem quando eu crio um char novo esses items não são adquiridos pelo player entra otros items eu ja revirei de ponta cabeça a pasta do ot e não achei

 

e um outro erro simples se alguém puder me falar onde alterar , assim o ek se inicia com skills 107 queria baixar isso

 

 

se alguém poder ajuda ganha REP++

 

 

Quote

Quote

<?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 = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"> <![CDATA[
domodlib('firstitems_config')
function onLogin(cid)
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1}, -- shovel
{itemid=2420, count=1}, -- machete
{itemid=2789, count=100}, -- brown mushrooms
{itemid=2305, count=1}, -- fire bomb rune
{itemid=2261, count=1}, -- destroy field rune
}
local firstItems = {
{ -- SORC ITEMS
{itemid=9778, count=1}, --
{itemid=8871, count=1}, -- focus cape
{itemid=7894, count=1}, --
{itemid=2195, count=1}, -- boots of haste
{itemid=8918, count=1}, --
{itemid=8922, count=1}, --
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7590, count=1}, -- gmp
{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
{itemid=9778, count=1}, --
{itemid=8871, count=1}, -- focus cape
{itemid=7894, count=1}, --
{itemid=2195, count=1}, -- boots of haste
{itemid=8918, count=1}, --
{itemid=8910, count=1}, -- hailstorm rod
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7590, count=1}, -- gmp
{itemid=2293, count=1}, -- mw
{itemid=2269, count=1}, -- wg
{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=8888, count=1}, -- paladin armor
{itemid=2470, count=1}, -- blue legs
{itemid=2195, count=1}, -- boots of haste
{itemid=8851, count=1}, -- mastermind shield
{itemid=6529, count=1}, -- assassin stars
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=8472, count=1}, -- gsp
{itemid=7589, count=1}, -- smp
{itemid=7588, count=1}, -- shp
{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=8882, count=1}, -- magic plate armor
{itemid=2470, count=1}, -- golden legs
{itemid=2195, count=1}, -- boots of haste
{itemid=6391, count=1}, -- mastermind shield
{itemid=8925, count=1}, -- magic sword
{itemid=7620, count=1}, -- mp
{itemid=7591, count=1}, -- ghp
{itemid=8473, count=1}, -- uhp
{itemid=2313, count=1}, -- explosion
{itemid=2293, count=1}, -- mw
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
if getPlayerGroupId(cid) < 2 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)
if hasReceivedFirstItems == -1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
local giveItems = firstItems[getPlayerVocation(cid)]
if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Website: http://bigwar.sytes.net")
setPlayerStorageValue(cid, 67708, 1)
end
end
end
return TRUE
end
]]></event>
</mod>

Ajudei ? REP+

 

 

tumblr_meqlrx3rUI1qcro1do1_r1_500_zps16f34xev4h_zpsc15d520c.png

allex9213

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 23/02/08Posts: 58

Amigo, pelo que vi ali, alguns dos IDS dos itens não correspondem com o nome que está na frente, faz assim, verifica no seu items.xml o id de cada item que você quer que o char comece e altera ai mesmo.

 

Sobre o lvl do char, passa seu vocations.xml pra eu dar uma olhadinha :)

 

Abaixo eu arrumei pra você os itens, testa ae!

 

<?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 = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"> <![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1}, -- shovel
{itemid=2420, count=1}, -- machete
{itemid=2789, count=100}, -- brown mushrooms
{itemid=2305, count=1}, -- fire bomb rune
{itemid=2261, count=1}, -- destroy field rune
}

local firstItems = {
{ -- SORC ITEMS
{itemid=9778, count=1}, --
{itemid=8871, count=1}, -- focus cape
{itemid=7894, count=1}, --
{itemid=2195, count=1}, -- boots of haste
{itemid=8918, count=1}, --
{itemid=8922, count=1}, --

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7590, count=1}, -- gmp
{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
{itemid=9778, count=1}, --
{itemid=8871, count=1}, -- focus cape
{itemid=7894, count=1}, --
{itemid=2195, count=1}, -- boots of haste
{itemid=8918, count=1}, --
{itemid=8910, count=1}, -- hailstorm rod

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7590, count=1}, -- gmp
{itemid=2293, count=1}, -- mw
{itemid=2269, count=1}, -- wg
{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=8891, count=1}, -- paladin armor
{itemid=7730, count=1}, -- blue legs
{itemid=2195, count=1}, -- boots of haste
{itemid=2514, count=1}, -- mastermind shield
{itemid=6529, count=1}, -- assassin stars

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=8472, count=1}, -- gsp
{itemid=7589, count=1}, -- smp
{itemid=7588, count=1}, -- shp
{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=2472, count=1}, -- magic plate armor
{itemid=2470, count=1}, -- golden legs
{itemid=2195, count=1}, -- boots of haste
{itemid=2514, count=1}, -- mastermind shield
{itemid=2400, count=1}, -- magic sword

{itemid=7620, count=1}, -- mp
{itemid=7591, count=1}, -- ghp
{itemid=8473, count=1}, -- uhp
{itemid=2313, count=1}, -- explosion
{itemid=2293, count=1}, -- mw
}
}

for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end


if getPlayerGroupId(cid) < 2 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

if hasReceivedFirstItems == -1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)

local giveItems = firstItems[getPlayerVocation(cid)]

if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Website: http://bigwar.sytes.net")
setPlayerStorageValue(cid, 67708, 1)
end
end
end
return TRUE
end
]]></event>
</mod>

 


teresa_palmer3.gif
 

Idealizador

“Tá putinho por que, entrou areia na sua vagina?”
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/07/13Posts: 18

caralho mano se ajudo demais deixa eu passa o vocation para voce aqui

 

Quote

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Elder Druid" description="a elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="3" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.4" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Elite Knight" description="a elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="15" gainmanaticks="2" gainmanaamount="10" manamultiplier="3.0" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="5" name="Soul Master" description="a soul master" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="15" gainmanaticks="2" gainmanaamount="40" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="6" name="Spellsinger" description="an spellsinger" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="15" gainmanaticks="2" gainmanaamount="40" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="7" name="Assassin" description="a assassin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="25" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.4" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="8" name="Gladiator" description="an gladiator" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="25" manamultiplier="3.0" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
</vocations>

 

ta ai irmão , viu deixa eu pergunta eu tenho masi ums scrips asim para arrumar se tu quiser me add no facebook skype eu pago pelo trampo mano e que eu preciso mesmo porem sao ascrips fáceis para se arrumar


DUVIDA SANADA TOPICO FECHADO

Ajudei ? REP+

 

 

tumblr_meqlrx3rUI1qcro1do1_r1_500_zps16f34xev4h_zpsc15d520c.png

Alexclusive

Um bom Veterano...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 25/10/12Posts: 2399Gênero: MasculinoChar no Tibia: Nuncative

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

 

CURTA O FACEBOOK DO Ekz.

graphic_design.png  Seja um incentivador de pessoas. O mundo já tem críticos demais.  hardware_19.png