Re: Party Bot as at 7th oct 2011
Posted: Wed Nov 02, 2011 8:54 pm
Ahh, I was hoping it would be the same flag duel and pvp.
I'll have to do some testing in seige =(
I'll have to do some testing in seige =(
MicroMacro home
https://www.solarstrike.net/phpBB3/
Code: Select all
function pawnlog(_name,_comment)
local found = false
local objectList = CObjectList();
objectList:update();
local objSize = objectList:size()
filename = getExecutionPath() .. "/logs/pawnlog.txt";
file, err = io.open(filename, "a+");
if( not file ) then
error(err, 0);
end
_offset = 904
--repeat
--_offset = _offset + 4
for i = 0,objSize do
obj = objectList:getObject(i);
if obj.Name == _name then -- edited out char name of course
found = true
local flags = memoryReadRepeat("int", proc, obj.Address + _offset) or 0;
local bitnum=0x80000000
local bitstring=""
if bitAnd(flags,0x80000000) then
file:write("Bits,1,")
else
file:write("Bits,0,")
end
repeat
bitnum = bitnum / 2
if bitAnd(flags,bitnum) then
bitstring = bitstring .. "1,"
else
bitstring = bitstring .. "0,"
end
until bitnum == 1
file:write(bitstring)
if _comment ~= nil then
file:write(obj.Name..",".._comment.."\n")
else
file:write(obj.Name.." ".._offset.."\n\n")
end
end
end
--until _offset == 764
file:close();
if found ~= true then printf("\n no such pawn name \n") end
end
Code: Select all
Bits,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,1,1,0,0,0,
Code: Select all
if not bitAnd(inp,0x4000000) and bitAnd(inp,0x20000) then -- Invisible/attackable?
Code: Select all
Bits,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,0,0,0,1,0,1,1,1,1,0,0,0,
Bits,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,0,0,0,1,0,0,1,1,1,0,0,0,
Bits,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,0,0,1,0,0,0,1,0,0,1,1,1,0,0,0,
Code: Select all
<!-- Party Bot options -->
<!-- <option name="PARTY" value="true" /> -->
<!-- <option name="PARTY_ICONS" value="true" /> --> <!-- For party leader to place "I" Icon on the target Mob -->
<!-- <option name="PARTY_INSTANCE" value="true" /> --> <!-- For party bot to enable the killing of mobs with high HP -->
<!-- <option name="ICON_FIGHT" value="true" /> --> <!-- For party bot to only attack mobs with "I" Icon -->
<!-- <option name="PARTY_FOLLOW_NAME" value="charname" /> --> <!-- For party bot name of character to follow -->
<!-- <option name="HEAL_FIGHT" value="true" /> --> <!-- For party bot if you want healer to also fight -->
Code: Select all
<!-- Party Bot options -->
<option name="PARTY" value="true" />
<option name="PARTY_ICONS" value="true" /> <!-- For party leader to place "I" Icon on the target Mob -->
<option name="PARTY_INSTANCE" value="true" /> <!-- For party bot to enable the killing of mobs with high HP -->
<option name="ICON_FIGHT" value="true" /> --> <!-- For party bot to only attack mobs with "I" Icon -->
<option name="PARTY_FOLLOW_NAME" value="charname" /> <!-- For party bot name of character to follow -->
<option name="HEAL_FIGHT" value="true" /> <!-- For party bot if you want healer to also fight -->
Code: Select all
<option name="ICON_FIGHT" value="true" /> --> <!-- For party bot to only attack mobs with "I" Icon -->
I disagree here. It's only about communicating, where to look for documentation. At least this works for people that are willing to read it. You will always have people that come to the forum and will ask. There will be no solution for those people.Writing it up in the party.lua was an interesting idea but to be honest the only people who would actually open the file are the ones who would also know what the code actually does just by looking at it.
Code: Select all
<!-- Party Bot options -->
<option name="PARTY" value="true" />
<option name="PARTY_ICONS" value="true" />
<option name="PARTY_INSTANCE" value="true" />
<option name="ICON_FIGHT" value="true" />
<option name="PARTY_FOLLOW_NAME" value="" />
<option name="HEAL_FIGHT" value="false" />
<friends>
<!-- [some friends defined here] -->
</friends>
<mobs>
<mob name="" />
</mobs>
Code: Select all
<option name="PARTY_ICONS" value="false" />