It is currently Wed Oct 15, 2008 10:55 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Adding a cprop to newly created characters?
PostPosted: Mon Apr 23, 2007 4:16 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 4:24 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 836
Location: Indiana, USA
scripts/misc/onCreate.src

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 4:25 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 422
Location: San Diego, California
pol/scripts/misc/oncreate.ecl is run after a character has been created and becomes accessible by script.

Example:
Code:
use uo;

program onCreate(character)
     SetObjProperty(character, "Birthday", polcore().systime);
     
     return 1;
endprogram

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 4:36 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
Thanks guys :) I was in that folder looking and totally missed oncreate, lol. Yeah, thanks for the file, now I can finally fix this :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl