Mass Apply Retiring After Spell At Current Club

mail@pastecode.io avatarunknown
xml
a month ago
829 B
8
Indexable
Never
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>24155</ID>
      <Description>"Mass Apply Retiring After Spell At Current Club to All Players in Current Club"</Description>
      <LastState/>
      <Color>DCDCDC</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{$lua}
if syntaxcheck then return end
[ENABLE]
local _updateFunc = function()
	local Club = readQword('ptrClub')
	if Club == nil or Club == 0 or not isClub(Club) then return end

	forEachPlayerInClub(Club, function(k, addr)
		local Person = getPersonFromPlayer(addr)
		writeBit(Person+pero.Pfl1, 7, true)
	end)

	return
end

_updateFunc()
enableAutoDisable(memrec, nil) 
[DISABLE]
</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
</CheatTable>