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

Ir abajo
°ஃŠﺕρξŘθஃ°
°ஃŠﺕρξŘθஃ°
Aportador
Mensajes Mensajes : 213

[Addon]Fuente Con Addon Empty [Addon]Fuente Con Addon

Sáb Sep 24, 2011 3:12 pm
Bueno en muchos ots la mayoria e visto que tienen para los addons el Script de hacerle Click a la fuente y que te de un addon entonces dije que para los que no tengan ese Script en su ot y les gustaria tenerlo para quets o algo haci aqui se los dejo Very Happy :

Ve primero A Data/Actions/Scripts Y copia y pega un archivo .lua le ponemos de nombre Addon.lua lo abrimos y borramos lo ke tiene dentro y le ponemos lo siguiente:


Código:
function onUse(cid, item, frompos, item2, topos)

if item.uid == 8023 then
queststatus = getPlayerStorageValue(cid,8023)
if queststatus == -1 then
doPlayerAddOutfit(cid, 147, 1)
doPlayerAddOutfit(cid, 143, 1)
doPlayerAddOutfit(cid, 147, 2)
doPlayerAddOutfit(cid, 143, 2)
doPlayerSendTextMessage(cid,22,"You Found Barbarian Addons")
setPlayerStorageValue(cid,8023,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8002 then
queststatus = getPlayerStorageValue(cid,8002)
if queststatus == -1 then
doPlayerAddOutfit(cid, 128, 1)
doPlayerAddOutfit(cid, 136, 1)
doPlayerAddOutfit(cid, 128, 2)
doPlayerAddOutfit(cid, 136, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Citizen Addons.")
setPlayerStorageValue(cid,8002, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8003 then
queststatus = getPlayerStorageValue(cid,8003)
if queststatus == -1 then
doPlayerAddOutfit(cid, 129, 1)
doPlayerAddOutfit(cid, 137, 1)
doPlayerAddOutfit(cid, 129, 2)
doPlayerAddOutfit(cid, 137, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Hunter Addons.")
setPlayerStorageValue(cid,8003, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8004 then
queststatus = getPlayerStorageValue(cid,8004)
if queststatus == -1 then
doPlayerAddOutfit(cid, 131, 1)
doPlayerAddOutfit(cid, 139, 1)
doPlayerAddOutfit(cid, 131, 2)
doPlayerAddOutfit(cid, 139, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Knight Addons.")
setPlayerStorageValue(cid,8004, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8005 then
queststatus = getPlayerStorageValue(cid,8005)
if queststatus == -1 then
doPlayerAddOutfit(cid, 130, 1)
doPlayerAddOutfit(cid, 138, 1)
doPlayerAddOutfit(cid, 138, 2)
doPlayerAddOutfit(cid, 130, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Mage Addons.")
setPlayerStorageValue(cid,8005, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8006 then
queststatus = getPlayerStorageValue(cid,8006)
if queststatus == -1 then
doPlayerAddOutfit(cid, 133, 1)
doPlayerAddOutfit(cid, 141, 1)
doPlayerAddOutfit(cid, 141, 2)
doPlayerAddOutfit(cid, 133, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Summoner Addons.")
setPlayerStorageValue(cid,8006, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8007 then
queststatus = getPlayerStorageValue(cid,8007)
if queststatus == -1 then
doPlayerAddOutfit(cid, 144, 1)
doPlayerAddOutfit(cid, 148, 1)
doPlayerAddOutfit(cid, 144, 2)
doPlayerAddOutfit(cid, 148, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Druid Addons.")
setPlayerStorageValue(cid,8007, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8008 then
queststatus = getPlayerStorageValue(cid,8008)
if queststatus == -1 then
doPlayerAddOutfit(cid, 132, 1)
doPlayerAddOutfit(cid, 140, 1)
doPlayerAddOutfit(cid, 132, 2)
doPlayerAddOutfit(cid, 140, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Nobleman Addons.")
setPlayerStorageValue(cid,8008, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8009 then
queststatus = getPlayerStorageValue(cid,8009)
if queststatus == -1 then
doPlayerAddOutfit(cid, 146, 1)
doPlayerAddOutfit(cid, 150, 1)
doPlayerAddOutfit(cid, 146, 2)
doPlayerAddOutfit(cid, 150, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Oriental Addons.")
setPlayerStorageValue(cid,8009, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8010 then
queststatus = getPlayerStorageValue(cid,8010)
if queststatus == -1 then
doPlayerAddOutfit(cid, 134, 1)
doPlayerAddOutfit(cid, 142, 1)
doPlayerAddOutfit(cid, 134, 2)
doPlayerAddOutfit(cid, 142, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Warrior Addons.")
setPlayerStorageValue(cid,8010, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8011 then
queststatus = getPlayerStorageValue(cid,8011)
if queststatus == -1 then
doPlayerAddOutfit(cid, 145, 1)
doPlayerAddOutfit(cid, 149, 1)
doPlayerAddOutfit(cid, 145, 2)
doPlayerAddOutfit(cid, 149, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Wizard Addons.")
setPlayerStorageValue(cid,8011, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8012 then
queststatus = getPlayerStorageValue(cid,8012)
if queststatus == -1 then
doPlayerAddOutfit(cid, 152, 1)
doPlayerAddOutfit(cid, 156, 1)
doPlayerAddOutfit(cid, 152, 2)
doPlayerAddOutfit(cid, 156, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Assassin Addons.")
setPlayerStorageValue(cid,8012, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8013 then
queststatus = getPlayerStorageValue(cid,8013)
if queststatus == -1 then
doPlayerAddOutfit(cid, 153, 1)
doPlayerAddOutfit(cid, 157, 1)
doPlayerAddOutfit(cid, 153, 2)
doPlayerAddOutfit(cid, 157, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Beggar Addons.")
setPlayerStorageValue(cid,8013, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8014 then
queststatus = getPlayerStorageValue(cid,8014)
if queststatus == -1 then
doPlayerAddOutfit(cid, 151, 1)
doPlayerAddOutfit(cid, 155, 1)
doPlayerAddOutfit(cid, 151, 2)
doPlayerAddOutfit(cid, 155, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Pirate Addons.")
setPlayerStorageValue(cid,8014, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8015 then
queststatus = getPlayerStorageValue(cid,8015)
if queststatus == -1 then
doPlayerAddOutfit(cid, 154, 1)
doPlayerAddOutfit(cid, 158, 1)
doPlayerAddOutfit(cid, 154, 2)
doPlayerAddOutfit(cid, 158, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Shaman Addons.")
setPlayerStorageValue(cid,8015, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8016 then
queststatus = getPlayerStorageValue(cid,8016)
if queststatus == -1 then
doPlayerAddOutfit(cid, 251, 1)
doPlayerAddOutfit(cid, 252, 1)
doPlayerAddOutfit(cid, 251, 2)
doPlayerAddOutfit(cid, 252, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Norseman Addons.")
setPlayerStorageValue(cid,8016, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8017 then
queststatus = getPlayerStorageValue(cid,8017)
if queststatus == -1 then
doPlayerAddOutfit(cid, 269, 1)
doPlayerAddOutfit(cid, 268, 1)
doPlayerAddOutfit(cid, 269, 2)
doPlayerAddOutfit(cid, 268, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Nightmare Addons.")
setPlayerStorageValue(cid,8017, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8018 then
queststatus = getPlayerStorageValue(cid,8018)
if queststatus == -1 then
doPlayerAddOutfit(cid, 270, 1)
doPlayerAddOutfit(cid, 273, 1)
doPlayerAddOutfit(cid, 270, 2)
doPlayerAddOutfit(cid, 273, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Jester Addons.")
setPlayerStorageValue(cid,8018, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8019 then
queststatus = getPlayerStorageValue(cid,8019)
if queststatus == -1 then
doPlayerAddOutfit(cid, 279, 1)
doPlayerAddOutfit(cid, 278, 1)
doPlayerAddOutfit(cid, 279, 2)
doPlayerAddOutfit(cid, 278, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Brotherhood Addons.")
setPlayerStorageValue(cid,8019, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8020 then
queststatus = getPlayerStorageValue(cid,8020)
if queststatus == -1 then
doPlayerAddOutfit(cid, 288, 1)
doPlayerAddOutfit(cid, 289, 1)
doPlayerAddOutfit(cid, 288, 2)
doPlayerAddOutfit(cid, 289, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Demonhunter Addons.")
setPlayerStorageValue(cid,8020, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

elseif item.actionid == 8021 then
queststatus = getPlayerStorageValue(cid,8021)
if queststatus == -1 then
doPlayerAddOutfit(cid, 324, 1)
doPlayerAddOutfit(cid, 325, 1)
doPlayerAddOutfit(cid, 324, 2)
doPlayerAddOutfit(cid, 325, 2)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,25,"You Found Yalaharian Addons.")
setPlayerStorageValue(cid,8021, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

end

return 1
end

Ahora Ve A Data/Actions/Actions.xml & En Actions.xml Coloca esto.

Código:
<!-- Addon Quest -->
<action actionid="8001" event="script" value="addon.lua"/> <!-- Barbarian -->
<action actionid="8002" event="script" value="addon.lua"/> <!-- Citizen -->
<action actionid="8003" event="script" value="addon.lua"/> <!-- Hunter -->
<action actionid="8004" event="script" value="addon.lua"/> <!-- Knight -->
<action actionid="8005" event="script" value="addon.lua"/> <!-- Mage -->
<action actionid="8006" event="script" value="addon.lua"/> <!-- Summoner -->
<action actionid="8007" event="script" value="addon.lua"/> <!-- Druid -->
<action actionid="8008" event="script" value="addon.lua"/> <!-- Nobleman -->
<action actionid="8009" event="script" value="addon.lua"/> <!-- Oriental -->
<action actionid="8010" event="script" value="addon.lua"/> <!-- Warrior -->
<action actionid="8011" event="script" value="addon.lua"/> <!-- Wizard -->
<action actionid="8012" event="script" value="addon.lua"/> <!-- Assassin -->
<action actionid="8013" event="script" value="addon.lua"/> <!-- Beggar -->
<action actionid="8014" event="script" value="addon.lua"/> <!-- Pirate -->
<action actionid="8015" event="script" value="addon.lua"/> <!-- Shaman -->
<action actionid="8016" event="script" value="addon.lua"/> <!-- Norseman -->
<action actionid="8017" event="script" value="addon.lua"/> <!-- Nightmare -->
<action actionid="8018" event="script" value="addon.lua"/> <!-- Jester -->
<action actionid="8019" event="script" value="addon.lua"/> <!-- Brotherhood -->
<action actionid="8020" event="script" value="addon.lua"/> <!-- Demonhunter -->
<action actionid="8021" event="script" value="addon.lua"/> <!-- Yalaharian -->

Luego En Tu Map Editor Coloca La Fuente Que Quieras Que De El Addon Y Les Vamos Poniendo Sus Action ID Desde 8001 A 8021 Y Ve En El Script Anterior Los Action ID.

Este seria el Id Del Primero:
Código:
if item.uid == 8023 then

Bueno eso fue todo espero les alla gustado y me den Rep y comenten Very Happy
Creditos: 99% el que lo hizo y 1% yo Wink
[Addon]Fuente Con Addon 9uylN
"Ryukend"
Miembro
Mensajes Mensajes : 120

[Addon]Fuente Con Addon Empty Re: [Addon]Fuente Con Addon

Miér Nov 09, 2011 6:22 pm
Muy Bien Rep+ Very Happy
Adm Eddie
Adm Eddie
Aportador
Mensajes Mensajes : 134

[Addon]Fuente Con Addon Empty Re: [Addon]Fuente Con Addon

Jue Nov 10, 2011 6:19 pm
Jeje yo tambien lo tengo en mi server!
Pero lo quite y decidi hacer los addons vip Razz


Y ni idea de quien lo haya hecho pero es un genio Razz

Saludos
10/10
Contenido patrocinado

[Addon]Fuente Con Addon Empty Re: [Addon]Fuente Con Addon

Volver arriba
Permisos de este foro:
No puedes responder a temas en este foro.