03-06-2015, 03:43 PM
Hi there! I just want a script to reactivate all the Worldgem bits in the world (double click all the Worldgem in the world) because I have changed the names of all NPC's and others.
How can I do?
I tried something from the Wiki but it didn't work
Thanks
BTW [I always search in the forums first but I don't get this :'(]
How can I do?
I tried something from the Wiki but it didn't work
Code:
[FUNCTION redospawns]
GO 1,1
FOR 0 1 //make loop through all 5 maps
MAP = <LOCAL._FOR> //set the map
FORCHARS 8000 //loop through all chars in the world (unless EA makes a map bigger than 8000x8000 squares)
REF1 = <MEMORYFINDTYPE.memory_ispawned.LINK> //set REF1 to the spawngem of that npc
IF (<REF1>) //checks if the npc has the spawn memory
REF1.TIMER = <EVAL {<REF1.MOREX> <REF1.MOREY>} * 60> //set the spawn memory timer to the values specified when creating it
ENDIF
ENDFOR
ENDFOR
Thanks

BTW [I always search in the forums first but I don't get this :'(]