Mass-clearing of spell books
Is there a way to update all characters' spell book like they have none in there? (Same goes with discs)
Not sure where they are stored? (blob somewhere) and is there a way to whipe them? |
The data are defined in common/eq_packet_structs.h
Code:
static const uint32 MAX_PP_SPELLBOOK = 400; /*2584*/ int32 spell_book[400]; /*4632*/ int32 mem_spells[9]; I think putting 0's in byte 2584 to 2584-1+1600=4183 will do it. uint32=4 bytes? So the question is how do you write sql for writing bytes back to the DB? Code:
struct PlayerProfile_Struct |
..so to continue, AndMetal's SQL for modifying BLOBS in profile can be done according to
Code:
UPDATE character_ SET profile = INSERT "In theory, you can change 4720 to any field # in the profile blob & the 100 to whatever numeric value you want it set to. You would then need to change the 4's to correspond with however many characters the data takes up (32-bit integers are 4, for example), otherwise the blob will become corrupt (too many/too few characters)." I think you can expand on this.. GeorgeS |
George - how about to add an actual char editor to your item/inventory editor =)
things like race, class, deity, gender, spells in spell book and so on =) |
I am thinking about it now, but the spells is a hard one to figure out exactly.
race, class, deity, gender and others are easy, so I may do it GeorgeS |
ok drop the spells for now, i will take rest anytime =)
|
All of the above (except AA editing) are coded into the new item editor.
clearing of spell books (1 toon at a time) is built in You can also edit the spell book and assign memmed spells GeorgeS |
All times are GMT -4. The time now is 08:34 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.