PenUltima Online

It is currently Sat Aug 30, 2008 2:56 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Script to players see protections
PostPosted: Wed Aug 01, 2007 3:12 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 46
Location: Brazil
like .status or .prots to see damage of weapons and protections os armors i need this scripts i have running war shard with modified Zuluhotel scripts...

my msn is westrupp@hotmail.com


Thanks...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 9:42 am 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1120
Location: Southern Central USA
You could always write one if no one has one to give away.

It's a fairly easy thing to read the damage modifiers and AR mods from weaps and armour and then display that.

The mods are [i]members[/] of the objects.

As an example for reading damage modifiers you would do something like this in a script:

Code:
var dmgmod;

dmgmod := weap.dmg_mod


You can find the info on these and other members of items in the docs directory of your POL folder in the file objref.html.

As for any special effects and protections such as the lightning effect Lunar ore produces or cold rersistance, those are probably CProps on the weapons or armour and that will be dependant on the scriptset you are using but it's still fairly easy to add that into your script as well. You'll have to look at the scripts that create the weapons/armour and see what CProps they add to the item. My scripts add a CProp called "icedamage" and then another one "dmg_amount" (which is then used as a multiplier to a "d" string random number) to the wepons for the ice damage effect. So in that example you'd want to read the damage type and amount and display that. Your scripts are probably different though. It really helps to know your scripts.

Ofcourse it's always nicer if someone else does it for you but if not maybe this will help you do it yourself.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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