06-08-2015, 15:47 PM
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
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;