Page 1 of 1
Adding a cprop to newly created characters?
Posted: Mon Apr 23, 2007 4:16 am
by Terryl
I cannot find the script where characters are created. I want to add a prop to newly created chars. In which script do I do that?
Posted: Mon Apr 23, 2007 4:24 am
by MuadDib
scripts/misc/onCreate.src
Posted: Mon Apr 23, 2007 4:25 am
by Austin
pol/scripts/misc/oncreate.ecl is run after a character has been created and becomes accessible by script.
Example:
Code: Select all
use uo;
program onCreate(character)
SetObjProperty(character, "Birthday", polcore().systime);
return 1;
endprogram
Posted: Mon Apr 23, 2007 4:36 am
by Terryl
Thanks guys

I was in that folder looking and totally missed oncreate, lol. Yeah, thanks for the file, now I can finally fix this
