My Questions

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Whity
New User
Posts: 5
Joined: Wed May 30, 2007 5:14 pm

My Questions

Post by Whity »

Hello everybody!

I am going to have a lot of questions in the next time i think.
Using Pol im trying to rescript the Rp-Shard im Playing on , since 2003.
Because of the problems with TUS and the greater possibilities with other Emulatora like POL I thought it is time to move forward. In fact im just a player of that Shard not even a Staffmember but because of skill lacking in the Staff I decided to do the work and give it to them once its done.

I would like to begin with the Charcreating.
Well beginning with that my first Question appeared.

Code: Select all

#
#  PCS.TXT: Player-Character Data
#
#  In addition to PC data, this also contains hair, beards, death shrouds,
#  and backpacks, but not the contents of each backpack.
#

Character
{
	Account	admin
	CharIdx	0
	Name	Admin
	Serial	0x1a0edb
	ObjType	0x190
	Graphic	0x3db
	Color	0x83ea
	X	6133
	Y	1214
	Z	0
	Revision	0
	Realm	britannia
	CProp	Equip i1
	CProp	Fame i0
	CProp	HighSkill i43
	CProp	HungerLevel i10
	CProp	HungerTimer i23
	CProp	Karma i0
	CProp	LastLog i25148827
	CProp	LoggedIn i1
	CProp	OnCreate i25065898
	CProp	Poisons d0:
	CProp	cap_pid i23293
	CProp	guardkill i1
	CProp	logontime i25148827
	CProp	mailkeeper i51
	CProp	onlinetimer i566580
	CmdLevel	test
	TrueColor	0x83ea
	TrueObjtype	0x190
	Gender	0
	Race	0
	Strength	100
	Intelligence	100
	Dexterity	100
	Alchemy	100
	Anatomy	100
	AnimalLore	100
	ItemId	100
	ArmsLore	100
	Parry	100
	Begging	100
	Blacksmithy	100
	Bowcraft	100
	Peacemaking	100
	Camping	100
	Carpentry	100
	Cartography	100
	Cooking	100
	DetectingHidden	100
	Enticement	100
	EvaluatingIntelligence	100
	Healing	100
	Fishing	100
	ForensicEvaluation	100
	Herding	100
	Hiding	100
	Provocation	100
	Inscription	100
	Lockpicking	100
	Magery	100
	MagicResistance	100
	Tactics	100
	Snooping	100
	Musicianship	100
	Poisoning	100
	Archery	100
	SpiritSpeak	100
	Stealing	100
	Tailoring	100
	AnimalTaming	100
	TasteIdentification	100
	Tinkering	100
	Tracking	100
	Veterinary	100
	Swordsmanship	100
	Macefighting	100
	Fencing	100
	Wrestling	100
	Lumberjacking	100
	Mining	100
	Meditation	100
	Stealth	100
	RemoveTrap	100
	Life	12
	Mana	26
	Stamina	10
	Privs	clotheany dblclickany hearghosts losany moveany seeghosts seehidden seeinvisitems 
	Settings	clotheany dblclickany hearghosts losany seeghosts seehidden seeinvisitems 
	CreatedAt	25065898
}

Item
{
	Serial	0x6adbb1b8
	ObjType	0x966c
	Graphic	0xe75
	X	5851
	Y	1162
	Z	0
	Revision	0
	Realm	britannia
	CProp	Owner i1707739
	Layer	21
	Container	0x1a0edb
	DecayAt	25145330
}
I want to add two attributes to a Character the first one would save the Class a Player choosed (Fighter/Craftsman/Mage) and the second one should save the Points a player is given to Create his char ( that means i want to create an own system in which points can be given to raise the Attributes or to enable new Skills to learn)
I already found the Attributes files which contain each attribute and skill but i was wondering which script is saving the Characters so my two new attributes would be saved too.

Btw. I'm german and i want to apologize if my engslish isn't good. Im trying to get better.

But now back to the Topic, I can unterstand if your wondering why im trying things like that still beeing a bloody noob in POL but im trying to do as much as I can on my own and for now my questions simply would be:
Is it possible to add these two attribute to every new created character?
And: Which file would i have to change, so the new Attributes get saved , too?

Greetings !
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Post by mr bubbles »

Well that file you don't edit.

You probably want to edit the oncreate.src, located in scripts/misc/oncreate.src.

There you can just set the properties you want onto the character.
Whity
New User
Posts: 5
Joined: Wed May 30, 2007 5:14 pm

Post by Whity »

Heh, well let's say i didn't thought the easy way. Big Thanks mr bubbles until next time ;)

Greetings
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

Yes one big rule to live by is to never directly edit anything in the /data path. If you do it while the shard is booted, everything you do will be deleted on the next world save anyway since all of those are already in memory and just rewritten from memory. If you edit them while the shard is offline, you may cause your shard to fail to boot.
Post Reply