And noobbotter:
This is the part where I get lost, wich macro and where in the action bar I have to place.keyboardPress( key.VK_I ) <!-- Presses the i key which is where my macro is for this event -->
tyvm
regards
(sorry the noobness)
This is the part where I get lost, wich macro and where in the action bar I have to place.keyboardPress( key.VK_I ) <!-- Presses the i key which is where my macro is for this event -->
Code: Select all
'//put a timer on an interval to check every second......(1000) for event start
If ReadLongPointer(&H400000 + &H605AC8, &H0, 4) = 1768383826 Then '// jump on event start
'// pause timer1 and trigger a second timer for 30 seconds where what you want to do is acomplished
'//in my case sending keystrokes to the rom window to an already made macro cos i'm lazy.
'// that address will change so when the 30 seconds is completed simply reactivate the first timer and bam wait for it to trigger again
Code: Select all
if memoryReadStringPtr(getProc(), 0xA05Ac8,0) == "Time remaining" then
Code: Select all
-- private server
if memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728,0) == "Time remaining" then
--official server
if memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728 + 0x4,0) == "Time remaining" then
Code: Select all
Command> print(memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728 + 0x4,0))
Positive Effect
Code: Select all
function doquest()
local endmsg = getTEXT("SC_ZONE_PE_3TH_ST1OVER")
-- Keep doing quest until end message
repeat
yrest(10)
quest()
until getLastWarning(endmsg, 10)
-- Change to next active channel
local currentchannel = RoMScript("GetCurrentParallelID()")
local newChannel = currentchannel
repeat
newChannel = newChannel - 1
if newChannel > RoMScript("GetNumParalleZones()") then
newChannel = 1
end
until RoMScript("IsZoneChannelOnLine("..newChannel..")") or newChannel == currentchannel
-- New channel found. Change to it
if newChannel ~= currentchannel then
sendMacro("ChangeParallelID("..newChannel..");");
player:rest(30)
local id = RoMScript("GetCurrentParallelID()")
if id ~= newChannel then
RoMScript("ChangeChar(\"current\",nil,"..newChannel..")")
waitForLoadingScreen()
yrest(100)
end
end
end
Code: Select all
newChannel = newChannel - 1
Code: Select all
newChannel = newChannel - 1
if newChannel == 0 then newChannel = 3 end
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
function EOJCrysalia()
player:target_NPC(120273) -- Papp Hesof
AcceptQuestByName("Energía desconocida");
yrest(500)
AcceptQuestByName("Análisis definitivo");
yrest(500)
CompleteQuestByName("Energía desconocida");
RoMScript("DeleteQuestByID(425598)");
EOJCrysalia()
end
</onLoad>
<!-- # 1 --><waypoint x="-9407" z="-18349" y="945">
player:target(120273) -- Papp Hesof
EOJCrysalia()
</waypoint>
</waypoints>
Users browsing this forum: No registered users and 0 guests