PenUltima Online

It is currently Fri Aug 29, 2008 2:34 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: POL96.3 - NPC swing speed
PostPosted: Tue Jan 02, 2007 1:39 pm 
Offline

Joined: Sun Feb 05, 2006 2:00 am
Posts: 91
Location: Denmark
From what I have been able to test, the NPC swing/attack speed are not afflicted at all by AttackDelay in NPCDesc.cfg, nor by npc.delay_mod := ms, but are controlled solely by the intrinsic weapons Speed in Itemdesc.cfg.

Did I misunderstand something, or is this a bug?

_________________
When was the last time, you did something for the first time?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 02, 2007 1:48 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Dunno, Would have to ask Shini on that one if it is by design or not.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 9:02 am 
Offline

Joined: Sun Feb 05, 2006 2:00 am
Posts: 91
Location: Denmark
I believe the same problem applies to AttackMinRange and AttackMaxRange, since all NPC with "AttackMinRange 0" and "AttackMaxRange 2" has a range of 0 to 1.

_________________
When was the last time, you did something for the first time?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 6:21 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Are you using AttackSpeed in the template for the npc also?

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 6:23 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
AttackSpeed is what is checked to build the NPC Intrinsic weapon off the NPCTemplate itself.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 7:46 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
Since we're somewhat on the subject, what exactly does the core check for the projectile that goes between the NPC and its target? I've tried just about every combination I can think of and its still shooting invisible stuff.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 8:11 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Basically, you create a bow/etc, then mark it as intrinsic for that npc type

If i remember right, my LBR/AOS package i made years ago, included examples for multiple types of intrinsic weapons and how to link them.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 1:17 am 
Offline

Joined: Sun Feb 05, 2006 2:00 am
Posts: 91
Location: Denmark
MuadDib wrote:
Are you using AttackSpeed in the template for the npc also?


Here is my setup, let me know if you need more info.

In package 'freaks' I have this npcdesc.cfg:
Code:
NpcTemplate ravager
{
   Name         a ravager
   script         :hostiles:ai_killpcs_normal_default
   ObjType         0x02
.
.
.
   AttackSpeed      15
   AttackMinRange           1
   AttackMaxRange           2
.
.
}



In package 'weapons' I have this itemdesc.cfg:
Code:
Weapon 0xF020
{
       Name            Wrestling
       Speed           38
       Damage          1d8
       Attribute       Wrestling
       Graphic         1
       Anim            0x9
       MissSound       0x234
       HitSound        0x13E
       MaxHP           1
       Intrinsic       1
       skill          -1
       SaveOnExit    0
}


I of course have many NPC with different AttackSpeed, AttackMinRange, AttackMaxRange in the NPCdesc.cfg but all NPC are using the same speed and range (range 0 to 1 and what seem to fit speed 38 )

_________________
When was the last time, you did something for the first time?


Last edited by Repsak on Wed Apr 11, 2007 10:01 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 9:47 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Nice to know.

Next, what if you change the intrinsic weapon's entry? Will that affect them all? (Without searching, trying to see if intrinsic weapon entry overrides template). :)

_________________
POL Developer - The Penguin Scripter


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

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Austin has made changes with the NPCDesc entry so that Projectiles are supported directly for the template-built intrinsic weapon now.

I will also look into fix for speed/delay porting over like it should.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 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