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

Post Reply 
 
Thread Rating:
  • 4 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
quest scavenger ajuda
Author Message
bothoryu Offline
Goblin Grave Robber
*

Posts: 11
Joined: May 2013
Reputation: -3
Version: 1.4.1.118
Post: #1
quest scavenger ajuda

alguem poderia me dizer ou passar um script certo pra quest de scavenger ?

eu achei esse aqui no fórum mesmo, mas dá um erro expected near 'highlight'

bl = true;
-------------------------------------------------------------------
function TalkPippiGetQuest()
ShowToClient("Pippi","Quest");
Sleep(2000);
TargetNpc("Pippi", 30524);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Quest");
Sleep(2000);
ClickText("Say you want to become a Scavenger");
Sleep(2000);
invList = GetInventory();
for item in invList.list do
LetterOfRecommendationID = 1643;
if item.displayId == LetterOfRecommendationID then
Sleep(4000);
PippiGotoWirphy();
end;
end;
end;

function TalkWithMion()
ShowToClient("Mion","Search Letter");
Sleep(2000);
TargetNpc("Mion", 30519);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Quest");
Sleep(2000);
ClickText("[path to scavenger]");
Sleep(2000);
ClickText("Say you will help with the work" or "All right!");
Sleep(2000);
invList = GetInventory();
for item in invList.list do
LetterID = 1646;
if item.displayId == LetterID then
ShowToClient("Goto","Wirphy >> Toma");
WirphyGotoToma();
else
invList = GetInventory();
for item in invList.list do
IngotID = 1647;
if item.displayId == IngotID then
ShowToClient("Goto","Bronk");
WirphyGotoBronk();
end;
invList = GetInventory();
for item in invList.list do
AxeID = 1648;
if item.displayId == AxeID then
ShowToClient("Goto","Shari");
WirphyGotoShari();
end;
invList = GetInventory();
for item in invList.list do
PotionID = 1649;
if item.displayId == PotionID then
ShowToClient("Goto","Zimenf");
WirphyGotoZimen();
end;
end;
end;
end;

end;
end;
end;

function TalkWithBronk()
ShowToClient("Bronk","Pay Ingot");
Sleep(2000);
TargetNpc("Bronk", 30525);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Quest");
Sleep(2000);
BroknGotoWirphy();
end;

function TalkWithShari()
ShowToClient("Shari","Pay Axe");
Sleep(2000);
TargetNpc("Shari", 30517);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Quest");
Sleep(2000);
ShariGotoWirphy();
end;

function TalkWithZimen()
ShowToClient("Zimen","Pay Potion");
Sleep(2000);
TargetNpc("Shari", 30517);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Quest");
Sleep(2000);
ZimenGotoWirphy();
end;

function TalkWithWirphy()
ShowToClient("Teleport","Eastern");
Sleep(2000);
TargetNpc("Wirphy", 30540);
Sleep(2000);
Talk();
Sleep(4000);
ClickText("Teleportarse");
Sleep(2000);
end;
-------------------------------------------------------------------------

function WirphyGotoPippi()
ShowToClient("Goto","Pippi");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy --This is the line 124
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
MoveTo(115835, -183332, -1484, moveDistance); -- Bronze Key Guild
TalkPippiGetQuest();
end;

function PippiGotoWirphy()
ShowToClient("Goto","Mion");
moveDistance = 30;
MoveTo(115835, -183332, -1484, moveDistance); -- Bronze Key Guild
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithMion();
end;

function WirphyGotoBronk()
ShowToClient("Goto","Bronk");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
TalkWithBronk();
end;

function BroknGotoWirphy()
ShowToClient("Goto","Mion");
moveDistance = 30;
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithMion();
end;

function WirphyGotoShari()
ShowToClient("Goto","Shari");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
TalkWithShari();
end;

function ShariGotoWirphy()
ShowToClient("Goto","Mion");
moveDistance = 30;
MoveTo(116657, -181415, -1411, moveDistance); -- Down Town
MoveTo(116631, -179934, -1162, moveDistance); -- Center Town
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithMion();
end;

function WirphyGotoZimen()
ShowToClient("Goto","Zimen");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithZimen();
end;

function ZimenGotoWirphy()
ShowToClient("Goto","Mion");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithMion();
end;

function WirphyGotoToma()
ShowToClient("Goto","Toma");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithWirphy();
end;

function TomaGotoWirphy()
ShowToClient("Goto","Mion");
moveDistance = 30;
MoveTo(115411, -178490, -934, moveDistance); -- GK Wirphy
TalkWithMion();
end;
----------------------------------------------------------------------------------
do
ShowToClient(">>> Quest","Path to Scavenger <<<");
Sleep(8000);
WirphyGotoPippi();
end;
---------------------------------------------------------------------------------
Sleep(3000);
ShowToClient(">>>Ver","Alfa. To be continue ...<<<");[/code]
05-20-2013 17:32 PM
Find all posts by this user Quote this message in a reply
sento2011 Offline
VIP Member
***

Posts: 4
Joined: Dec 2011
Reputation: 0
Version: 1.4.1.128
Post: #2
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.)
05-21-2013 14:11 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information Tópico de Ajuda NaoJogoMais 73 194,837 01-19-2021 10:57 AM
Last Post: rodrigosg3
Thumbs Up Script - Quest The Finest Food mavaloes 1 2,568 11-03-2020 05:39 AM
Last Post: nestorgok
Information AJUDA POR FAVOR! pcompt 2 2,706 02-22-2019 19:16 PM
Last Post: suporte33
  Npc Mob ajuda SmiiD 1 2,406 08-22-2018 21:31 PM
Last Post: canaldextiger
Smile Ajuda L2BT.com zamurite 1 3,332 07-17-2018 15:05 PM
Last Post: maiconbarbex
  Ajuda 1 funciona outro trava twisterfire 0 1,979 12-04-2017 02:50 AM
Last Post: twisterfire
  Ajuda com Script Auto Farm( Help Auto Farm ) daviddps 0 4,338 10-28-2017 22:48 PM
Last Post: daviddps
  Ajuda com l2tower dokddraw 1 3,108 02-20-2017 00:37 AM
Last Post: RYUREY553
  Ajuda como burlar captcha Junior021 0 4,595 11-25-2016 19:12 PM
Last Post: Junior021
  ajuda pelo amor de deus server kosglad killerkpo 0 2,555 05-01-2016 12:45 PM
Last Post: killerkpo



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