Jump to content


Nirran

Member Since 19 Oct 2011
Offline Last Active Today, 01:21 AM

Topics I've Started

whats wrong wiht this code?

06 April 2018 - 09:33 AM


BEGIN ~Extract File Names of Learn Spell items~ 
     
COPY_EXISTING_REGEXP GLOB ~^.+\.itm$~ ~override~ 
   PATCH_IF ("%SOURCE_SIZE%" > "0x0") BEGIN
     READ_LONG  0x64 "abil_off"
     READ_SHORT 0x68 "abil_num"
     READ_SHORT  0x1C "type"
     SET "stack" = 0
     FOR (index = 0; index < abil_num ; index = index + 1) BEGIN
        READ_BYTE ("%abil_off%" + 0x00 + ("%index%" * 0x36)) "effect_type"
        PATCH_IF ("%effect_type%" == 147) BEGIN
           PATCH_PRINT ~%SOURCE_FILE%~
        END   
     END
   END
   BUT_ONLY_IF_IT_CHANGES

I want to extract all spell scroll item names that have learn spell (147),is my method wrong?

 

 

 


how to copy paste into post?

06 April 2018 - 07:55 AM

tital says it,wnata post some code

 

 

 

 


treasure in ee

05 April 2018 - 04:34 PM


rndtreas.2da is it stil limited to 20 items per line?does it have a max number of lines?

 

thnx in advance

 

Nirran

 

edit : found the info I was after

 

cannot delete thread -_-