L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ayuda con script
Author Message
fanshop Offline
Elpy
*

Posts: 1
Joined: Jun 2015
Reputation: 0
Version: 1.4.2.133
Post: #1
Ayuda con script

hola, este es mi primer post, asi que perdon si cometo algun error.
estuve buscando script para que un cantante cante y apenas se fueran los cantos volviera a cantar el que falta (juego en un server Hi5), como no encontre me base en un script que se llama Tyni ISS que encontre en el foro, la cosa es que cuando corro el programa el pj no hace nada, de antemano gracias por su ayuda


Code:
ShowToClient("GOD", "TinyISS ACTIVE", 3);
----aca defino los cantos
SongOfRenwalID = 349;
SongOfChampionID = 364;
SongOfVitalityID = 304;
SongOfHunterID = 269;
SongOfWardingID=267;
SongOfEarthID=264;

function CheckIssBuff()
local me = GetMe();
end;
-- Solo
if (me ~= nil) and not (me:IsAlikeDeath()) then
ISSSonata1(me);
ISSSonata2(me);
ISSSonata3(me);
ISSSonata4(me);
ISSSonata5(me);
ISSSonata6(me);

end;

-------------aca deberian ir las funciones para los cantos--------------------
function ISSSonata1(me)
local me = GetMe(); -- No Global
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (member:GotBuff(CheckSonataID2)) then
Command("/useshortcut 5 1");
Sleep(5*1000); -- 5sec
end;
end;    
end;

function ISSSonata2(me)
local me = GetMe();
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (me:GotBuff(CheckSonataID2)) then
Command("/useshortcut 5 2");
Sleep(5*1000); -- 5sec
end;
end;    
end;

function ISSSonata3(me)
local me = GetMe(); -- No Global
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (me:GotBuff(CheckSonataID3)) then
Command("/useshortcut 5 3");
Sleep(5*1000); -- 5sec
end;
end;    
end;

function ISSSonata4(me)
local me = GetMe(); -- No Global
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (me:GotBuff(CheckSonataID4)) then
Command("/useshortcut 5 4");
Sleep(5*1000); -- 5sec
end;
end;    
end;

function ISSSonata5(me)
local me = GetMe(); -- No Global
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (me:GotBuff(CheckSonataID5)) then
Command("/useshortcut 5 5");
Sleep(5*1000); -- 5sec
end;
end;    
end;

function ISSSonata6(me)
local me = GetMe(); -- No Global
if (me ~= nil) and not (me:IsAlikeDeath()) then
if not (me:GotBuff(CheckSonataID6)) then
Command("/useshortcut 5 6");
Sleep(5*1000); -- 5sec
end;
end;    
end;
------------------------------------------------------

------------------------------------------------------
function MainTinyIss()
local me = GetMe(); -- No Global

-- cantante = 100
    if (GetMe():GetClass() == 100) then

CheckSonataID1 = SongOfRenwalID;
CheckSonataID2 = SongOfChampionID;
CheckSonataID3 = SongOfVitalityID;
CheckSonataID4 = SongOfHunterID;
CheckSonataID5 = SongOfWardingID;
CheckSonataID6 = SongOfEarthID;

    end;
    
    CheckIssBuff(); -- Let Check Buff
end;    
    
--End-TinyIss-----------------------------------------

repeat
    if not IsPaused() then

--Check Clase: |SwordMuse = 100
if (GetMe():GetClass() == 100) then

if not (GetMe():IsBlocked(true)) then -- and not (GetMe():GetMpPercent() == 100)
MainTinyIss();
Sleep(250);
end;
else
ShowToClient("ERROR", "CLASE ERRONEA: SCRIPT EQUIVOCADO", 3);
Sleep(30*1000); -- 30sec
end;
    end; --not paused
until false;
06-08-2015 15:47 PM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #2
RE: Ayuda con script

Como estas, TyniIss es mi iss. No testie tu codigo, pero veo lo siguiente, yo hago que si te quedas "sin buff" se precione originalmente, F1: Buff, F2: Sonatas, F3, Harmonys.

Vos estas colocando:

    LUA Programming
Command("/useshortcut 5 6");



Eso significa, que el programa esta actuando el skill numero 6, de la barra 5. Hay que ver que tenes ahi.
06-09-2015 06:18 AM
Find all posts by this user Quote this message in a reply
metalsolid Offline
VIP Member
***

Posts: 178
Joined: May 2012
Reputation: 0
Version: 1.4.3.143
Post: #3
RE: Ayuda con script

pq no usas mejor la interfaz de tower para eso???
06-09-2015 08:26 AM
Find all posts by this user Quote this message in a reply
windurst Offline
Expired VIP Member
**

Posts: 17
Joined: May 2015
Reputation: 0
Version: 1.4.2.135
Post: #4
RE: Ayuda con script

Lo que yo te puedo decir con la poca experiencia que tengo es que lo hagas desde dentro del juego pulsando el boton "Inicio" de tu teclaso, se te abre un submenu diferente al de //cfg mucho mas sencillo para esto y mas intuitivo, simplemente abres la pestaƱa "Buff" y ahi empiezas a agrear por nombres el buff que quieras, puedes ponerle auto detectable, par que cuando se quede sin ello se eche solo el mismo y al que tengas en party (lo que no se hacer es que apunte a otro pj y le de buff especificas a el...) una vez lo tengas pulsas arriba Enable y ya se hace el solo la funcion.

Espero que te sirva de ayuda ^^

Sl2
06-09-2015 09:23 AM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #5
RE: Ayuda con script

Vi la funciones del nuevo menu cargado con home. Yo lo usaba solamente para realisar el "save" de las configuraciones al personaje. Hay una opcion para auto buff. Seria cuestion de probarlas.
06-11-2015 02:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ayuda general protection fault Aggresivnes 1 2,974 09-06-2021 23:06 PM
Last Post: markos2515
  Consulta/Ayuda shoeddy 0 1,200 05-18-2021 09:15 AM
Last Post: shoeddy
Star AYUDA CONFIGURARRR alaniz 0 1,385 01-02-2021 03:06 AM
Last Post: alaniz
  Ayuda para abrir mas de 3 cuentas kairos30 7 7,886 06-04-2020 05:36 AM
Last Post: studiotan
  Ayuda por favor ? me tira critical error lauchita92 0 1,622 10-30-2019 16:25 PM
Last Post: lauchita92
  Ayuda! Has sido desconectado del servidor madbytes 2 2,862 04-19-2018 20:28 PM
Last Post: madbytes
  Necesito ayuda porque me da critical error yigi1 5 5,210 01-26-2018 14:32 PM
Last Post: sousseky
Information Ayuda.. Load: general Error: call to loadLibrary N4N023 13 12,884 10-27-2017 01:19 AM
Last Post: smedina2005
Information (AYUDA) ERROR! Su cliente contiene archivos incorrectos Sustainer 0 1,851 10-13-2016 00:55 AM
Last Post: Sustainer
F.A.Q. Ayuda con un script Pls vannsito 0 2,053 07-23-2016 01:02 AM
Last Post: vannsito



User(s) browsing this thread: 1 Guest(s)