Adding a cprop to newly created characters?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.

Moderator: POL Developer

Post Reply
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Adding a cprop to newly created characters?

Post 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?
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib »

scripts/misc/onCreate.src
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post 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
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post 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 :)
Post Reply