A leveling guide for WoW 1.12 players of pfQuest, based on Easy Route by stealthzi (MIT). See README.md and CHANGES.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XfR1apt9f3R7SxBKB2FF2D
11 lines
432 B
Python
11 lines
432 B
Python
import struct, glob, sys, os
|
|
from PIL import Image
|
|
os.chdir(sys.argv[1])
|
|
for n in glob.glob("*.tga"):
|
|
if not n.startswith(("Icon","Chain")): continue
|
|
im=Image.open(n).convert("RGBA"); w,hh=im.size; px=im.load(); data=bytearray()
|
|
for y in range(hh-1,-1,-1):
|
|
for x in range(w):
|
|
r,g,b,a=px[x,y]; data+=bytes((b,g,r,a))
|
|
open(n,"wb").write(struct.pack("<BBBHHBHHHHBB",0,0,2,0,0,0,0,0,w,hh,32,8)+data)
|