PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
POL96.3 - NPC swing speed

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096
Display posts from previous:   

Author Message
Repsak



Joined: 05 Feb 2006
Posts: 91
Location: Denmark

PostPosted: Tue Jan 02, 2007 5:39 pm    Post subject: POL96.3 - NPC swing speed Reply with quote

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?

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Tue Jan 02, 2007 5:48 pm    Post subject: Reply with quote

Dunno, Would have to ask Shini on that one if it is by design or not.

Author Message
Repsak



Joined: 05 Feb 2006
Posts: 91
Location: Denmark

PostPosted: Wed Jan 03, 2007 1:02 pm    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Tue Apr 10, 2007 10:21 pm    Post subject: Reply with quote

Are you using AttackSpeed in the template for the npc also?

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Tue Apr 10, 2007 10:23 pm    Post subject: Reply with quote

AttackSpeed is what is checked to build the NPC Intrinsic weapon off the NPCTemplate itself.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Tue Apr 10, 2007 11:46 pm    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Apr 11, 2007 12:11 am    Post subject: Reply with quote

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.

Author Message
Repsak



Joined: 05 Feb 2006
Posts: 91
Location: Denmark

PostPosted: Wed Apr 11, 2007 5:17 am    Post subject: Reply with quote

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 )


Last edited by Repsak on Wed Apr 11, 2007 2:01 pm; edited 1 time in total

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Apr 11, 2007 1:47 pm    Post subject: Reply with quote

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). Smile

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Fri Apr 13, 2007 8:24 am    Post subject: Reply with quote

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.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty