Tibia Help
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.


aQii te ayudaremos con Tus Ot Servers
 
ÍndicePortalÚltimas imágenesRegistrarseConectarse
Conectarse
Nombre de Usuario:
Contraseña:
Entrar automáticamente en cada visita: 
:: Recuperar mi contraseña
Últimos temas
» TITULO: Mu Black Kindom | Season 6 | 3000x | 80% | Nuevos Ev
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeVie Oct 28, 2011 11:25 am por NAHUELLG

» (TUTORIAL) Como usar mage bomb =)
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeDom Oct 09, 2011 7:29 am por GOD Roca

» Mu Skzer l Season 6 l Exp: 1600x l Drop: 80%
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeJue Jul 07, 2011 2:57 am por NAHUELLG

» Mu Skzer l Season 6 l Exp: 1600x l Drop: 80%
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeMar Jun 28, 2011 10:49 am por dnange18

» Mu Online Season 6 Finallity, la batalla final comienza by sairenji
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeDom Jun 19, 2011 6:23 am por sairenji

» 9.x]-[8.7x]-[8.61/2]-[8.6]-[8.54/7] The Forgotten Server 0.3.6 - Crying Damson
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeMiér Jun 15, 2011 9:51 am por Orejon

» ayuda porfaah
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeJue Mayo 05, 2011 3:59 pm por Toniko

» Proyecto Dedicado Fennix Rl Map
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeJue Mayo 05, 2011 3:42 pm por Toniko

» Como uso mega magebomb 8.6
[TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeDom Mar 20, 2011 10:35 am por jasson

Mejores posteadores
God Sposo
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
Admin Necro
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
Admin Skit
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
Zir GaboX
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
Cubo
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
¤•~x Єℓ ώαtэr x~•¤
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
drawmarcos
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
chinodj
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
Toniko
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
meleq
[TUTORIAL] Como Poner Los Primeros Items Vote_lcap[TUTORIAL] Como Poner Los Primeros Items Voting_bar[TUTORIAL] Como Poner Los Primeros Items Vote_rcap 
¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado

Ninguno

El record de usuarios en línea fue de 19 durante el Sáb Jun 20, 2020 8:57 am

 

 [TUTORIAL] Como Poner Los Primeros Items

Ir abajo 
AutorMensaje
Admin Necro
ADMINISTRADOR
ADMINISTRADOR
Admin Necro


Mensajes : 64
Fecha de inscripción : 04/11/2010
Edad : 27
Localización : Mi Casa

[TUTORIAL] Como Poner Los Primeros Items Empty
MensajeTema: [TUTORIAL] Como Poner Los Primeros Items   [TUTORIAL] Como Poner Los Primeros Items I_icon_minitimeJue Nov 04, 2010 11:38 am

Buenoo este es un tutoriaal para algunoos server que no te daan items al iniciar y tampoco hay chest que te lo den bueno empesare con el tutorial

SERVER/data/creaturescripts/scripts

Y copian cualquier archivo de ahi y le cambian el nombre a firstitems.lua entran y borran todo y ponen estoo



Código:
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2173, count=1} -- amulet of loss
{itemid=2160, count=10} -- crystal coin
}

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=2383, count=1}, -- spike sword
{itemid=2428, count=1}, -- orcish axe
{itemid=2525, count=1} -- dwarven shield
}
}

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, "Recibiste Tus Primeros Items!")
end
setPlayerStorageValue(cid, 67708, 1)
end
end
return TRUE
end



Bueno ahora explicaree estoo yo puse los items mas utilizados que son plate armor,plate legs y esoo buenoo si lo quieren cambiar solo cambian lo ke kiereen cambiar asii

por ejemplo el armor si lo kieren cambiar le ponen

{itemid=2463, count=1}, -- plate armor
en itemid ponen el id del item ke kieren ke dee y en count la cantidad asi con todos,los pueden cambiaar,a lo demaas no le muevaan nada

CREDITOS:


Esthela Ramirez
Volver arriba Ir abajo
https://tibiahelp.foroactivo.mx
 
[TUTORIAL] Como Poner Los Primeros Items
Volver arriba 
Página 1 de 1.
 Temas similares
-
» [TUTORIAL] Como Editar Items
» [TUTORIAL] Como Poner Scroll En Tu Ot
» [TUTORIAL] Como Poner Vip System!
» [TUTORIAL] Como Poner Lottery System En Tu Ot
» [TUTORIAL] Como Poner Nuevos Groups En Tu Ot

Permisos de este foro:No puedes responder a temas en este foro.
Tibia Help :: Tutoriales-
Cambiar a: