function testaddresses() player:update() inventory:update() --=== staticbase_char ===-- local classtable = {[1] = "Warrior",[2] = "Scout",[3] = "Rogue",[4] = "Mage",[5] = "Priest",[6] = "Knight",[7] = "Warden",[8] = "Druid",} local gameclass = RoMScript('UnitClass("player")') if string.find(classtable[player.Class1], gameclass) then cprintf(cli.green,"staticbase_char: Confirmed\n") else cprintf(cli.red,"staticbase_char: Incorrect\n") end --=== staticInventory ===-- local inventoryIndex, icon, name = RoMScript('GetBagItemInfo(1)') if name == inventory.BagSlot[61].Name then cprintf(cli.green,"staticInventory: Confirmed\n") else cprintf(cli.red,"staticInventory: Incorrect\n") end --=== moneyPtr ===-- if inventory.Money == RoMScript('GetPlayerMoney("copper")') then cprintf(cli.green,"moneyPtr: Confirmed\n") else cprintf(cli.red,"moneyPtr: Incorrect\n") end --=== eggPetBaseAddress ===-- local pet = CEggPet(1) if RoMScript('GetPetItemName(1)') ~= nil then if pet.Name == RoMScript('GetPetItemName(1)') then cprintf(cli.green,"eggPetBaseAddress: Confirmed\n") else cprintf(cli.red,"eggPetBaseAddress: Incorrect\n") end else cprintf(cli.red,"eggPetBaseAddress: No pet to test with\n") end --=== zoneId ===-- if getZoneId() == RoMScript('GetZoneID()') then cprintf(cli.green,"zoneId: Confirmed\n") else cprintf(cli.red,"zoneId: Incorrect\n") end --=== partyMemberList_address and partyIconList_base ===-- if RoMScript("GetNumPartyMembers()") >= 2 then if GetPartyMemberName(1) == RoMScript('GetPartyMember(1)') then cprintf(cli.green,"partyMemberList_address: Confirmed\n") else cprintf(cli.red,"partyMemberList_address: Incorrect\n") end if RoMScript('IsPartyLeader()') then RoMScript('SetRaidTarget("party1", 3);') yrest(500) party1 = CPawn(GetPartyMemberAddress(1).Address) if party1:GetPartyIcon() == 3 then cprintf(cli.green,"partyIconList_base: Confirmed\n") else cprintf(cli.red,"partyIconList_base: Incorrect\n") end else cprintf(cli.yellow,"partyIconList_base: Unconfirmed as not party leader\n") end else cprintf(cli.yellow,"partyMemberList_address: Unconfirmed as not in a party\n") end --=== swimAddress ===-- keyboardBufferClear(); io.stdin:flush(); fly() cprintf(cli.yellow,"Am I flying??\n>>") _answer = io.stdin:read() if string.find(string.lower(_answer),"y") then cprintf(cli.green,"swimAddress: Confirmed\n") else cprintf(cli.red,"swimAddress: Incorrect\n") end flyoff() end