I am currently working on a waypointfile that camps near a WB spawning point and alarms another player if he saws the boss spawning.
It is currently made to camps Wodjin, Hackman, Mandara and Lagusen.
But i have an issue while i was testing it.
Anyhow i tried to fix it, to write some "--" to delete some lines, an error instantly occcurs when i load the WPF :
2014-10-04 02:39:07 - ...iquettes/micromacro/scripts/rom/classes/waypointlist.lu
a:84: Failed to compile and run Lua code for waypointlist onLoad event.
This is the following script.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onload>
--=== User Option ===--
local Main = "";
-- Set the name of the character you want to whisp.
--===================--
local function evalClickable(address)
return memoryReadByte(getProc(), address + 0x2F0) ~= 0
end
local Boss = nil;
local BossNormal = nil;
local BossFurax = nil;
local Pilier = nil;
local Alarme = soundLoad(getExecutionPath() .. "/alarm.wav");
local ZoneID = getZoneId();
if ZoneID = 15 then
Boss = "Wodjin";
BossNormal = 103580;
BossFurax = 107183;
elseif ZoneID = 16 then
Boss = "Hackman";
BossNormal = 103583;
BossFurax = 107185;
elseif ZoneID = 19 then
Boss = "Mandara";
BossNormal = 104705;
BossFurax = 107792;
elseif ZoneID = 21 then
Boss = "Lagusen";
Pilier = player:findNearestNameOrId(118923)
end
while Boss == "Lagusen"
if evalClickable(Pilier.address) then
sendMacro( "SendChatMessage('" .. Boss .. " pop !!', 'WHISPER' , 0 ,'" .. Main .. "')" );
soundPlay(Alarme);
yrest(50000);
end
yrest(10000);
end
while Boss ~= nil
if player:findNearestNameOrId(BossNormal,BossFurax) then
sendMacro( "SendChatMessage('" .. Boss .. " pop !!', 'WHISPER' , 0 ,'" .. Main .. "')" );
soundPlay(Alarme);
yrest(50000);
end
yrest(10000);
end
</onload>
</waypoints>