sento2011
VIP Member
Posts: 4
Joined: Dec 2011
Reputation: 0
Version:
1.4.1.128
|
RE: quest scavenger ajuda
Parte da Quest, para consegir Carta do Mion e depois ir para Tomas.
A segunda parte da missão está fazendo isso eu vou estar adicionando como você vai estes dias.
Para iniciar esse script só tem que deixar o PC (Char) QK perto da cidade natal dos anões.
LUA Programming
-------Variables--------
moveDistance = 30;
pippiLetter = 1643; -- ID: Pippi´s Letter of Recommendation
mionLetter = 1646; -- ID: Mion´s Letter
bronkIngot = 1647; -- ID: Bronk´s Ingot
shariAxe = 1648; -- ID: Shari´s Axe
zimenfPotion = 1649; -- ID: Zimenf´s Potion
----Funciones--------------------------------
-- Hablar con Pippi e inicio Quest Path to th Scavenger
function hablarPippi()
TargetNpc("Pippi", 30524);
Talk();
ClickAndWait("npc_268822693_Quest", "Quest");
ClickAndWait("Quest 417_PathToScavenger 1", "Say you want to become a Scavenger");
-- Get new quest item, ID: 1643, COUNT: 1 -- ID: Pippi´s Letter of Recommendation
ClearTargets();
end;
-------------------------------------------
-- Hablar con Mion y nos ofrece uno de los 3 items
function hablarMion()
TargetNpc("Mion", 30519);
Talk();
ClickAndWait("npc_268826393_Quest", "Quest");
ClickAndWait("npc_268826393_Quest 417_PathToScavenger", "[path to scavenger]");
ClickAndWait("Quest 417_PathToScavenger 30519_1", "Say you will help with the work");
-- Get new quest item, ID: 1646, COUNT: 1 -- ID: Mion´s Letter
-- Get new quest item, ID: 1647, COUNT: 1 -- ID: Bronk´s Ingot
-- Get new quest item, ID: 1648, COUNT: 1 -- ID: Shari´s Axe
-- Get new quest item, ID: 1649, COUNT: 1 -- ID: Zimenf´s Potion
ClearTargets();
end;
-- Hablar con Mion con cualquiera de los 3 items
function hablarMion2()
TargetNpc("Mion", 30519);
Talk();
ClickAndWait("npc_268826393_Quest", "Quest");
ClickAndWait("npc_268826393_Quest 417_PathToScavenger", "[path to scavenger]");
ClickAndWait("Quest 417_PathToScavenger 30519_6", "All right!");
ClearTargets();
end;
-------------------------------------------
-- Hablar con Bronk
function hablarBronk()
TargetNpc("Bronk", 30525);
Talk();
ClickAndWait("npc_268822696_Quest", "Quest.");
-- Get new quest item, ID: 1650, COUNT: 1 -- ID: Bronk´s Pay
ClearTargets();
end;
-------------------------------------------
-- Hablar con Shari
function hablarShari()
TargetNpc("Shari", 30517);
Talk();
ClickAndWait("npc_268822673_Quest", "Quest");
-- Get new quest item, ID: 1651, COUNT: 1 -- ID: Shari´s Pay
ClearTargets();
end;
-------------------------------------------
-- Hablar con Zimenf
function hablarZimenf()
TargetNpc("Zimenf", 30538);
Talk();
ClickAndWait("npc_268822724_Quest", "Quest");
-- Get new quest item, ID: 1652, COUNT: 1 -- ID: Zimenf´s Pay
ClearTargets();
end;
-------------------------------------------
function gkToPippi ()
moveDistance = 30;
MoveTo(115158, -178219, -911, moveDistance);
MoveTo(115643, -178867, -975, moveDistance);
MoveTo(116087, -179304, -1059, moveDistance);
MoveTo(116538, -179916, -1160, moveDistance);
MoveTo(116630, -180211, -1190, moveDistance);
MoveTo(116531, -181516, -1419, moveDistance);
MoveTo(116451, -182147, -1501, moveDistance);
MoveTo(116035, -183116, -1498, moveDistance);
MoveTo(115941, -183230, -1490, moveDistance);
MoveTo(115844, -183319, -1484, moveDistance);
MoveTo(115816, -183328, -1484, moveDistance);
MoveTo(115717, -183323, -1484, moveDistance);
MoveTo(115660, -183294, -1484, moveDistance);
end;
-------------------------------------------
function pippiToMion ()
moveDistance = 30;
MoveTo(115660, -183294, -1484, moveDistance);
MoveTo(115694, -183332, -1484, moveDistance);
MoveTo(115764, -183342, -1484, moveDistance);
MoveTo(115933, -183257, -1490, moveDistance);
MoveTo(116184, -182957, -1522, moveDistance);
MoveTo(116382, -182242, -1501, moveDistance);
MoveTo(116555, -181518, -1422, moveDistance);
MoveTo(116675, -180257, -1199, moveDistance);
MoveTo(116536, -179791, -1148, moveDistance);
MoveTo(115571, -178686, -953, moveDistance);
MoveTo(115561, -178280, -936, moveDistance);
MoveTo(115736, -177934, -901, moveDistance);
MoveTo(115932, -177759, -900, moveDistance);
MoveTo(116102, -177742, -890, moveDistance);
MoveTo(116157, -177670, -890, moveDistance);
MoveTo(116187, -177557, -890, moveDistance);
MoveTo(116245, -177537, -890, moveDistance);
end;
-------------------------------------------
function mionToBronk()
moveDistance = 30;
MoveTo(116253, -177535, -890, moveDistance);
MoveTo(116218, -177558, -890, moveDistance);
MoveTo(116178, -177679, -890, moveDistance);
MoveTo(116122, -177726, -890, moveDistance);
MoveTo(116106, -177742, -890, moveDistance);
MoveTo(116009, -177745, -900, moveDistance);
MoveTo(115867, -177843, -900, moveDistance);
MoveTo(115647, -178261, -937, moveDistance);
MoveTo(115691, -178773, -969, moveDistance);
MoveTo(116131, -179371, -1069, moveDistance);
MoveTo(116550, -180005, -1167, moveDistance);
MoveTo(116636, -180382, -1211, moveDistance);
MoveTo(116563, -181495, -1420, moveDistance);
MoveTo(116464, -181938, -1478, moveDistance);
MoveTo(116233, -182171, -1492, moveDistance);
MoveTo(115982, -182211, -1474, moveDistance);
MoveTo(115661, -182194, -1453, moveDistance);
MoveTo(115412, -182231, -1447, moveDistance);
MoveTo(115360, -182339, -1447, moveDistance);
MoveTo(115370, -182426, -1447, moveDistance);
MoveTo(115436, -182446, -1445, moveDistance);
end;
function bronkToMion()
moveDistance = 30;
MoveTo(115436, -182446, -1445, moveDistance);
MoveTo(115401, -182436, -1447, moveDistance);
MoveTo(115371, -182342, -1447, moveDistance);
MoveTo(115438, -182235, -1447, moveDistance);
MoveTo(115629, -182208, -1453, moveDistance);
MoveTo(115970, -182120, -1460, moveDistance);
MoveTo(116398, -181968, -1475, moveDistance);
MoveTo(116616, -181586, -1437, moveDistance);
MoveTo(116713, -180938, -1323, moveDistance);
MoveTo(116635, -180009, -1169, moveDistance);
MoveTo(115793, -178968, -988, moveDistance);
MoveTo(115612, -178599, -950, moveDistance);
MoveTo(115686, -178146, -928, moveDistance);
MoveTo(115872, -177815, -900, moveDistance);
MoveTo(115977, -177751, -900, moveDistance);
MoveTo(116117, -177744, -890, moveDistance);
MoveTo(116167, -177667, -890, moveDistance);
MoveTo(116214, -177549, -890, moveDistance);
MoveTo(116254, -177533, -890, moveDistance);
end;
-------------------------------------------
function mionToShari()
moveDistance = 30;
MoveTo(116246, -177533, -890, moveDistance);
MoveTo(116216, -177553, -890, moveDistance);
MoveTo(116192, -177659, -890, moveDistance);
MoveTo(116121, -177723, -890, moveDistance);
MoveTo(116098, -177749, -890, moveDistance);
MoveTo(115969, -177762, -900, moveDistance);
MoveTo(115828, -177940, -902, moveDistance);
MoveTo(115603, -178462, -945, moveDistance);
MoveTo(115654, -178843, -973, moveDistance);
MoveTo(116507, -179932, -1161, moveDistance);
MoveTo(116642, -180316, -1202, moveDistance);
MoveTo(116589, -181120, -1361, moveDistance);
MoveTo(116358, -181488, -1388, moveDistance);
MoveTo(116236, -181469, -1364, moveDistance);
MoveTo(116180, -181376, -1355, moveDistance);
MoveTo(116168, -181233, -1345, moveDistance);
MoveTo(116176, -181146, -1345, moveDistance);
MoveTo(116191, -181101, -1345, moveDistance);
end;
function shariToMion()
moveDistance = 30;
MoveTo(116191, -181101, -1345, moveDistance);
MoveTo(116176, -181164, -1345, moveDistance);
MoveTo(116163, -181362, -1355, moveDistance);
MoveTo(116270, -181432, -1365, moveDistance);
MoveTo(116603, -181233, -1377, moveDistance);
MoveTo(116696, -180897, -1316, moveDistance);
MoveTo(116605, -179940, -1162, moveDistance);
MoveTo(115988, -179173, -1028, moveDistance);
MoveTo(115566, -178597, -946, moveDistance);
MoveTo(115658, -178228, -935, moveDistance);
MoveTo(115814, -177893, -900, moveDistance);
MoveTo(115937, -177772, -900, moveDistance);
MoveTo(116084, -177737, -890, moveDistance);
MoveTo(116162, -177668, -890, moveDistance);
MoveTo(116208, -177553, -890, moveDistance);
MoveTo(116253, -177535, -890, moveDistance);
end;
-------------------------------------------
function mionToZimenf()
moveDistance = 30;
MoveTo(116245, -177537, -890, moveDistance);
MoveTo(116221, -177540, -890, moveDistance);
MoveTo(116177, -177661, -890, moveDistance);
MoveTo(116113, -177725, -890, moveDistance);
MoveTo(116091, -177743, -890, moveDistance);
MoveTo(115970, -177746, -900, moveDistance);
MoveTo(115852, -177910, -900, moveDistance);
MoveTo(115321, -178439, -933, moveDistance);
MoveTo(115127, -178538, -901, moveDistance);
MoveTo(114925, -178549, -844, moveDistance);
MoveTo(114755, -178541, -825, moveDistance);
MoveTo(114577, -178554, -819, moveDistance);
MoveTo(114490, -178603, -819, moveDistance);
MoveTo(114449, -178650, -819, moveDistance);
end;
function zimenfToMion()
moveDistance = 30;
MoveTo(114442, -178656, -819, moveDistance);
MoveTo(114455, -178612, -819, moveDistance);
MoveTo(114566, -178562, -819, moveDistance);
MoveTo(114794, -178540, -826, moveDistance);
MoveTo(115513, -178190, -933, moveDistance);
MoveTo(115705, -178017, -912, moveDistance);
MoveTo(115819, -177866, -900, moveDistance);
MoveTo(115932, -177764, -900, moveDistance);
MoveTo(116124, -177726, -890, moveDistance);
MoveTo(116172, -177617, -890, moveDistance);
MoveTo(116220, -177540, -890, moveDistance);
MoveTo(116246, -177533, -890, moveDistance);
end;
function getItemCount(name)
invList = GetInventory();
lol=0;
for item in invList.list do
if (item.displayId == name or item.objectId==name or item.Name==name) then
lol=item.ItemNum
end
end
return lol;
end;
-------------------------------------------
---------------Iniciando------------------
gkToPippi ();
hablarPippi();
pippiToMion ();
hablarMion();
repeat
if (getItemCount("Bronk's Ingot") == 1) then
ShowToClient("St", " Bronk");
mionToBronk();
hablarBronk();
bronkToMion();
hablarMion2();
elseif (getItemCount("Shari's Axe") == 1) then
ShowToClient("St", " Shari");
mionToShari();
hablarShari();
shariToMion();
hablarMion2();
elseif (getItemCount("Zimenf's Potion") == 1) then
ShowToClient("St", " Zimenf");
mionToZimenf();
hablarZimenf();
zimenfToMion();
hablarMion2();
end;
until getItemCount("Mion's Letter") == 1;
ShowToClient("St", " fin");
Eu uso o Google Translate para se comunicar com você.
--
Importante para mí, en las siguientes partes de la quest:
Agradecería muchísimo que algún codificador experto de L2Tower, diese un vistazo a mi mierda de código y lo convirtiese en arte.
--
Importante para mim, nas seguintes partes da quest:
Eu apreciaria muito que alguns L2Tower programador especialista, dar a minha merda e código de usá-lo como arte.
--
Important for me, in the following parts of the quest:
I would appreciate very much that some L2Tower expert coder, give my shit out and code from using it as art.
--
--
Estoy enseñandome a codificar y me sería de gran ayuda, para entender cosas que a día de hoy desconozco.
Gracias por los códigos que puedo ir leyendo y gravemente entendiendo a base de practicar en el juego.
Ya me han baneado varias veces PJ´s por meter demasiadas cosas (y seguramente por no estar muy bien hechas) en un server donde suelo practicar.
--
Estou me ensinando ao código e que iria me ajudar a entender as coisas hoje conhecemos.
Graças para os códigos que eu possa ir a sério a leitura e compreensão prática baseada no jogo.
Eu já fui banido várias vezes PJ para furar muito (e certamente não ser muito bem feito) em um servidor onde eu pratico.
--
I am teaching me to code and it would help me to understand things today know.
Thanks for the codes I can go seriously reading and practice-based understanding in the game.
I have already been banned several times PJ's for sticking too much (and certainly not to be very well made) on a server where I practice.
--
(This post was last modified: 05-21-2013 14:39 PM by sento2011.)
|
|