I have this script:(LUA)
Code: Select all
-- LVersion 1.16
setExecutionPath(getExecutionPath().."/..")
--=================--
cprintf(cli.red,"\n\n Load DTG Waypoints \n\n")
yrest(500)
clearDG()
--=================--
if getZoneId() == 6 then
clearDG()
cprintf(cli.lightblue,"\n ZONE ID : %s \n\n", getZoneId())
travelDG("ObsidianCastle")
player:target_NPC(NPCGuild)
sendMacro("ChoiceOption(2);");
waitForLoadingScreen()
end
--=================--
if getZoneId() == 401 then
clearDG()
cprintf(cli.lightblue,"\n ZONE ID : %s \n\n", getZoneId())
GotoGuild("Drill Ground")
player:target_Object("Drill Ground");
sendMacro("ChoiceOption(1);");
waitForLoadingScreen()
end
--=================--
if getZoneId() == 354 then
clearDG()
if MaxHonor > getCurrency("honor") then
repeat
cprintf(cli.lightblue,"\n ZONE ID : %s \n", getZoneId())
cprintf(cli.lightgreen,"\n -- TOTAL HONOR : %s \n\n", comma_valueDG(getCurrency("honor")))
fly()
player:moveTo(CWaypoint(5121,2515,13),true)
player:moveTo(CWaypoint(5121,2651,111),true)
player:moveTo(CWaypoint(4754,2954,430),true)
player:moveTo(CWaypoint(2609,4302,430),true)
player:moveTo(CWaypoint(2120,4644,13),true)
player:moveTo(CWaypoint(2665,4160,430),true)
player:moveTo(CWaypoint(3443,4016,430),true)
yrestsystemDG()
clearDG()
until getCurrency("honor") == MaxHonor
else
clearDG()
flyoff()
player:target_NPC(NPCID)
sendMacro("ChoiceOption(7);");
waitForLoadingScreen()
checkgoldDG()
GotoGuild("Guild Castle Transport Point")
player:moveTo(CWaypoint(80,-568,6),true)
acceptmessageDG()
waitForLoadingScreen()
end
end
--=================--
if getZoneId() == 6 then
clearDG()
travelDG("MercenarySquare")
end
--=================--
if getZoneId() == 6 then
clearDG()
cprintf(cli.lightblue,"\n ZONE ID : %s \n\n", getZoneId())
player:moveTo(CWaypoint(-22062,3654,-179),true)
player:target_NPC(NPCStore)
yrest(500)
if StoreOption == 1 then
sendMacro("ChoiceOption(1);");
elseif StoreOption == 2 then
sendMacro("ChoiceOption(2);");
elseif StoreOption == 3 then
sendMacro("ChoiceOption(3);");
end
yrest(1000)
store:buyItem(ObjectBuy, AmountBuy)
yrest(500)
RoMScript("CloseAllWindows()")
GuildDonate("all", "green")
yrest(1000)
end
--=================--
clearDG()
travelDG("ObsidianCastle")
--=================--