o char começa level 8 mais nao importa qual vocaçao sempre começa com a mace feia,itens leather..e uma bag com uma maça..
sera que alguem pdoeria me enviar algum scripit que faça cada vocaçao começar com um set diferente?
ty
meus scripts atuais:
data\creaturescripts\scripts:
local firstItems_storage = 30001
local commonItems = {
{itemid=2554, inContainer = TRUE},
{itemid=2120, inContainer = TRUE},
{itemid=2160, count=2, inContainer = TRUE},
{itemid=2643}
}
local firstItems = {
{ -- Sorcerer
{itemid=1988, container = TRUE},
{itemid=2175},
{itemid=2190},
{itemid=8819},
{itemid=8820},
{itemid=2468} },
{ -- Druid
{itemid=1988, container = TRUE},
{itemid=2175},
{itemid=2182},
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2480, count=1}, -- legion helmet
{itemid=2464, count=1}, -- chain armor
{itemid=2468, count=1}, -- studded legs
{itemid=2643, count=1}, -- leather boots
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1} -- shovel
}
local firstItems = {
{ -- SORC ITEMS
{itemid=2190, count=1}, -- wand of vortex
{itemid=2175, count=1} -- spellbook
},
{ -- DRUID ITEMS
{itemid=2182, count=1}, -- snakebite rod
{itemid=2175, count=1} -- spellbook
},
{ -- PALADIN ITEMS
{itemid=2456, count=1}, -- bow
{itemid=2544, count=100} -- 100 arrows
},
{ -- KNIGHT ITEMS
{itemid=2412, count=1}, -- katana
{itemid=2530, count=1} -- copper shield
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
local storage = 35353
function onLogin(cid)
if getPlayerGroupId(cid) < 3 then
local receivedItems = getPlayerStorageValue(cid, storage)
if receivedItems == -1 then
--[[local backpack = ]]doPlayerAddItem(cid,1998, 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, "You have recieved your first items!")
end
setPlayerStorageValue(cid, storage, 1)
end
return true
end
------------------------------------------------------------------------------------------
\data\mods:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Dener Diegoli" contact="dener_d1@hotmail.com" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2050, 2382}
}
]]></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, 1987, 1), 2674, 1)
setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
------------------------
ty