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 Puertas Por Vocacion I_icon_minitimeVie Oct 28, 2011 11:25 am por NAHUELLG

» (TUTORIAL) Como usar mage bomb =)
[TUTORIAL] Como Poner Puertas Por Vocacion 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 Puertas Por Vocacion 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 Puertas Por Vocacion 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 Puertas Por Vocacion 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 Puertas Por Vocacion I_icon_minitimeMiér Jun 15, 2011 9:51 am por Orejon

» ayuda porfaah
[TUTORIAL] Como Poner Puertas Por Vocacion I_icon_minitimeJue Mayo 05, 2011 3:59 pm por Toniko

» Proyecto Dedicado Fennix Rl Map
[TUTORIAL] Como Poner Puertas Por Vocacion I_icon_minitimeJue Mayo 05, 2011 3:42 pm por Toniko

» Como uso mega magebomb 8.6
[TUTORIAL] Como Poner Puertas Por Vocacion I_icon_minitimeDom Mar 20, 2011 10:35 am por jasson

Mejores posteadores
God Sposo
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
Admin Necro
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
Admin Skit
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
Zir GaboX
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
Cubo
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
¤•~x Єℓ ώαtэr x~•¤
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
drawmarcos
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
chinodj
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
Toniko
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion Vote_rcap 
meleq
[TUTORIAL] Como Poner Puertas Por Vocacion Vote_lcap[TUTORIAL] Como Poner Puertas Por Vocacion Voting_bar[TUTORIAL] Como Poner Puertas Por Vocacion 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 Puertas Por Vocacion

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 Puertas Por Vocacion Empty
MensajeTema: [TUTORIAL] Como Poner Puertas Por Vocacion   [TUTORIAL] Como Poner Puertas Por Vocacion I_icon_minitimeJue Nov 04, 2010 12:02 pm

Bueno ahora como poner puertas por vocacion desde hacer las actionsid, asta colocarla con remeres map editor ok empesemos.

primero explicare las id de las vocaciones para no batallar :

Código:
 Sorcer = vocation id="1"
Druid=vocation id="2"
Paladin=vocation id="3"
Knight=vocation id="4"


ahora empesemos con los scripts (;
data/actions/scripts

Empesemos con la Puerta para Sorcer:

Código:
function onUse(cid, item, frompos, item2, topos)
reqvoc = getPlayerVocation(cid)
if item.uid == 8201 then
if reqvoc == 5 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Ponte Enfrente de la Puerta.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Solamente Sorcerers entran aqui.')
end
return 1
else
return 0
end
end

Druid Door:

Código:
function onUse(cid, item, frompos, item2, topos)
reqvoc = getPlayerVocation(cid)
if item.uid == 8202 then
if reqvoc == 6 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Ponte Enfrente de la Puerta.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Solamente Druids entran aqui.')
end
return 1
else
return 0
end
end

Paladin Door:

Código:
function onUse(cid, item, frompos, item2, topos)
reqvoc = getPlayerVocation(cid)
if item.uid == 8200 then
if reqvoc == 7 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Ponte Enfrente de la Puerta.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Solamente Paladins entran aqui.')
end
return 1
else
return 0
end
end


Knight: Door:

Código:
function onUse(cid, item, frompos, item2, topos)
reqvoc = getPlayerVocation(cid)
if item.uid == 8203 then
if reqvoc == 8 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Ponte Enfrente de la Puerta.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Solamente Knights entran aqui.')
end
return 1
else
return 0
end
end

las guardamos con el nombre de cada vocacion ejemplo "sorcdoor.lua", ahora vamos a actions.xml y pegamos esto
Código:

<action uniqueid="8200" script="palador.lua" />
<action uniqueid="8201" script="sorcdor.lua" />
<action uniqueid="8202" script="druiddor.lua" />
<action uniqueid="8203" script="kinador.lua" />


las uniqueid dependen de ustedes pueden ser las que sean solo que no se repitan con otras, y las colocan tambien en el script que hicimos antes por ejemplo:
sorcer door, aqui modifican la uniqueid que ustedes elijieron .
Código:
if item.uid == 8201 then

sorcer door uniqeid

Código:
 <action uniqueid="8201" script="sorcdor.lua" />


bueno ya con eso tenemos listas las uniqueid de las puertas, ahora vamos a remeres map editor , ponemos una puerta cerrada (oviamente) y damos click derecho , propiedades, y en uniqueid ponemos la de la vocacion que querramos que entre por desir paladin , seria uniqueid: 8200 y listo ,solo entraria el paladin.

Esta guiaa fue echa por mi (:
si algo no entienden,aqui mismo les ayudo.


CREDITOS:

miisael ( de Black Tibia )
Volver arriba Ir abajo
https://tibiahelp.foroactivo.mx
 
[TUTORIAL] Como Poner Puertas Por Vocacion
Volver arriba 
Página 1 de 1.
 Temas similares
-
» [TUTORIAL] Como Poner Scroll En Tu Ot
» [TUTORIAL] Como Poner Vip System!
» [TUTORIAL] Como Poner Los Primeros Items
» [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: