08-03-2014, 03:23 AM
Buenas Alguien Sabe como crear un Scripts? especificamente de mana potion.. ya que estoy en un server puedo usar todo con el tower.. menos el Mp..! se les agradece la ayuda
(08-08-2014 12:00 PM)jonathan915 Wrote: [ -> ]MMmm te recomiendo si keres ir viendo el tema de scripts,,, agarras uno basico como el de pick up,,, y utilizas el shortcut para posiciioner las potas de mana,, o lo modificas por un slot en ua de las barras ke menos uses,,,
(08-03-2014 03:23 AM)heartseen2 Wrote: [ -> ]Buenas Alguien Sabe como crear un Scripts? especificamente de mana potion.. ya que estoy en un server puedo usar todo con el tower.. menos el Mp..! se les agradece la ayuda
MPpotion = 00001 -- Codigo obtenido antes
repeat
-- Alguna condicion:
me = GetME();
if me:GetMpPorcent() < 40 then
UseItem(MPpotion)
end
until false
MPpotion = 00001 -- Codigo obtenido antes
repeat
-- Alguna condicion:
me = GetME();
if me:GetMpPorcent() < 40 then
UseSkillRaw(MPpotion,false,false); -- O diretamente UseItem(MPpotion)
end
until false
(08-03-2014 03:23 AM)heartseen2 Wrote: [ -> ]Buenas Alguien Sabe como crear un Scripts? especificamente de mana potion.. ya que estoy en un server puedo usar todo con el tower.. menos el Mp..! se les agradece la ayuda
(08-18-2014 21:30 PM)Greko Wrote: [ -> ](08-03-2014 03:23 AM)heartseen2 Wrote: [ -> ]Buenas Alguien Sabe como crear un Scripts? especificamente de mana potion.. ya que estoy en un server puedo usar todo con el tower.. menos el Mp..! se les agradece la ayuda
hey heartseen pudiste solucionar tu prolema?? yo tengo el mismo me funciona todo bien menos las pot de mana y hp....me podes indicar que hiciste porfavor
repeat
if (GetMe() ~= nil) and (GetMe():GetMpPercent() < 40) then
UseItem(AQUI VA EL ID DE LA MANA POTION);
end;
Sleep(1000);
until false;
ShowToClient(tostring(os.date("%X")),"MP pots");
PN = "manapotname"; -- edit pot name (Large Mana Potion is not equal to large mana potion), so type it correct
percentouse = 80; -- percent to stsrt use MP pots
function GetItemAmountByName(name) -- getting id of pot to use them
local invList = GetInventory();
for item in invList.list do
if (item.Name == name) then
PNID = item.displayId;
return item.ItemNum;
end;
end;
return 0;
end;
repeat
if(GetMe():GetMpPercent() < percentouse) and (GetItemAmountByName(PN) > 0) then -- percent to use and we got items
UseItem(PNID);
Sleep(250);
end;
Sleep(200);
until false;