Postado Outubro 15, 2012 12 anos Bom, como o topico ja diz, queria uma ajuda... No meu ot quando crio um char ele vem pelado, ( sem nada ), queria mudar isso pra vir com um p-set, alguma coisa que eu queira,
Postado Outubro 15, 2012 12 anos Vá em data/creaturescripts/creaturescripts.xml la coloque a seguinte tag <event type="login" name="First" script="first_items.lua"/> agora em data/creaturescripts/scripts crie um arquivo com o nome de first_items.lua e coloque isso dentro Lembrando que precisa configurar para os ids dos itens que você quer Mostrar conteúdo oculto local firstItems = {} firstItems[0] = { 8850, 2168, 2502, 2504, 2646, 2547 } firstItems[1] = { 2131, 8850, 2168, 2502, 2504, 2646, 2547 } firstItems[2] = { 2131, 3961, 2168, 2502, 2504, 2646 } firstItems[3] = { 2131, 8850, 2168, 2502, 2504, 2646, 2547 } firstItems[4] = { 2131, 2388, 2388, 2168, 2502, 2504, 2646 } function onLogin(cid) if getPlayerStorageValue(cid, 30001) == -1 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1) end if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2464, 1) else doPlayerAddItem(cid, 2464, 1) end if(getPlayerVocation(cid) == 2) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 2672, 3) setPlayerStorageValue(cid, 30001, 1) end if(getPlayerVocation(cid) == 3) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 2672, 3) doAddContainerItem(bag, 2547, 99) doAddContainerItem(bag, 2407, 1) setPlayerStorageValue(cid, 30001, 1) end if(getPlayerVocation(cid) == 4) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 2672, 3) setPlayerStorageValue(cid, 30001, 1) end if(getPlayerVocation(cid) ~= 2 and getPlayerVocation(cid) ~= 3 and getPlayerVocation(cid) ~= 4) then local bag = doPlayerAddItem(cid, 1988, 1) setPlayerStorageValue(cid, 30001, 1) end end return TRUE end [center][url=http://bit.ly/denkorpg]
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.