Ir para conteúdo

[Pedido] Problemas Com O Firstitems Valendo Rep+


Faeelz

Posts Recomendados

Oi, eu sou o dono do SUPREME OTServer, meu ot está offline a alguns dias estou tendo problemas com o First Itens, mais eu ja olhei no CreatureScript é não é la o problema, está vindo itens duplicados é tambem esta vindo a wand vip "7735" peço que me ajudem aqui está o first itens do creature scripts :

local commonItems = {

-- ITEMS ALL VOCS RECEIVE

{itemid=2120, count=1}, -- rope

{itemid=5710, count=1}, -- shovel

{itemid=2160, count=1}, -- 10 k

{itemid=2173, count=1}, -- aol

{itemid=2789, count=10}, -- brown mushrooms

}

 

local firstItems = {

{ -- SORC ITEMS

{itemid=2323, count=1}, -- hat of the mad

{itemid=8870, count=1}, -- spirit cloak

{itemid=2647, count=1}, -- plate legs

{itemid=3982, count=1}, -- crocodile boots

{itemid=2175, count=1}, -- spellbook

{itemid=2190, count=1}, -- wand of vortex

 

{itemid=2268, count=1}, -- sd

{itemid=2273, count=1}, -- uh

{itemid=7620, count=1}, -- mapa potions

},

{ -- DRUID ITEMS

{itemid=2323, count=1}, -- hat of the mad

{itemid=8870, count=1}, -- spirit cloak

{itemid=2647, count=1}, -- plate legs

{itemid=3982, count=1}, -- crocodile boots

{itemid=2175, count=1}, -- spellbook

{itemid=2182, count=1}, -- snakebite rod

 

{itemid=2268, count=1}, -- sd

{itemid=2273, count=1}, -- uh

{itemid=7620, count=1}, -- mana potion

},

{ -- PALADIN ITEMS

{itemid=2457, count=1}, -- steel helmet

{itemid=8872, count=1}, -- belted cape

{itemid=2647, count=1}, -- plate legs

{itemid=3982, count=1}, -- crocodile boots

{itemid=2525, count=1}, -- dwarven shield

{itemid=2389, count=1}, -- spear

 

{itemid=2268, count=1}, -- sd

{itemid=2273, count=1}, -- uh

{itemid=7620, count=1}, -- mana potion

},

{ -- KNIGHT ITEMS

{itemid=2457, count=1}, -- steel helmet

{itemid=2463, count=1}, -- plate armor

{itemid=2647, count=1}, -- plate legs

{itemid=3982, count=1}, -- crocodile boots

{itemid=2525, count=1}, -- dwarven shield

{itemid=2409, count=1}, -- serpent sword

{itemid=2428, count=1}, -- orcish Axe

{itemid=2417, count=1}, -- battle hammer

 

{itemid=7620, count=1}, -- mana potion

{itemid=2273, count=1}, -- uh

}

}

 

for _, items in ipairs(firstItems) do

for _, item in ipairs(commonItems) do

table.insert(items, item)

end

end

 

function onLogin(cid)

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, "Bem Vindo você acaba de receber seus primeiros equipamentos,e promotion automaticamente")

setPlayerStorageValue(cid, 67708, 1)

end

end

end

return TRUE

end

Link para o comentário
Compartilhar em outros sites

tenta usa do meu sv

 

 

local firstItems = {}

firstItems[0] =

{

2173,

2525,

2428,

2124,

2460,

2478,

2643

}

firstItems[1] =

{

2173,

2525,

2190,

2124,

2460,

2478,

2643

}

firstItems[2] =

{

2173,

2525,

2182,

2124,

2460,

2478,

2643

}

firstItems[3] =

{

2173,

2525,

2389,

2124,

2460,

2478,

2643

}

firstItems[4] =

{

2173,

2525,

2428,

2124,

2460,

2478,

2643

}

 

function onLogin(cid)

if getPlayerStorageValue(cid, 30001) == -1 then

for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do

doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)

end

if getPlayerSex(cid) == 0 then

doPlayerAddItem(cid, 2465, 1)

else

doPlayerAddItem(cid, 2465, 1)

end

local bag = doPlayerAddItem(cid, 10518, 1)

doAddContainerItem(bag, 2160, 1)

doAddContainerItem(bag, 2554, 1)

doAddContainerItem(bag, 2120, 1)

doAddContainerItem(bag, 7618, 1)

doAddContainerItem(bag, 2383, 1)

setPlayerStorageValue(cid, 30001, 1)

end

return TRUE

end

 

 

espero ter ajudado.

flw :]

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...