无聊之士
全控
级别: 火花会员
编号: 49952
精华: 5
发帖: 432
威望: 25 点
配偶: 单身
火 花 币: 4092 HHB
注册时间:2006-02-10
最后登陆:2024-06-28
|
让你知道什么是有用主角,什么是强悍的BOSS!(圣魔)
好象发错地方了。。。。。斑竹帮移一下。。。。。。
虽然只是贴代码,但是各位只要照改就能体会到了~,当然懒得改的可以去我的U盘哦,不过我U盘里的那个很变态哦,技能一大堆的说~当然现在写圣魔的攻击判定程序是越来越得心应手了,下面这个我是照顾主角们和BOSS的,想体验的就看看下面哦~
技能:指挥 效果: 0级:全地图一方人物,力量+0,命中+8 ,必杀+ 3 1级:周围 4格,1距离的人物力量+1,命中+5 ,必杀+ 0 2级:周围 4格,1距离的人物力量+1,命中+10,必杀+ 5 3级:周围12格,1距离的人物力量+2,命中+10,必杀+ 5,2距离的人物力量+1,命中+ 5,必杀+ 0 4级:周围12格,1距离的人物力量+2,命中+15,必杀+10,2距离的人物力量+1,命中+10,必杀+ 5 5级:周围24格,1距离的人物力量+3,命中+15,必杀+10,2距离的人物力量+2,命中+10,必杀+ 5,3距离的人物力量+1,命中+ 5,必杀+ 0 1-5级别指挥之间干扰(0级指挥不算在内),当指挥重叠的时候,取单个人物指挥能力追加的最大值减干扰的人数,1人干扰,命中和必杀都减5,2人干扰,命中和必杀都减5*2,最多不追加,不会出现负干扰 自身的指挥不会对自己起作用. 两个有指挥的人会得到对方的修正而不会发生干扰.注意只针对这两两之间! 敌人也有该技能,静态修改人物在083791E0. 要修改指针则在: 083790F8 91E0 str r1, [sp, 380h] 083790FA 0837 lsr r7, r6, 0
------------------------ 0802A908 F9FAF000 bl 0802AD00h《-------指环附加初始化
0802A908 FBEAF34E bl 0802AD00h《-------修改
083790E0 B500 push , lr 083790E2 FE0DF4B1 bl 802AD00h<---指环附加程序,必须 083790E6 FF8BF7FF bl 8379000h<-----主程序 083790EA BC01 pop r0 083790EC 4700 bx r0 083790EE FFFF [???]
08379000 B4FF push r0-r7<-----主程序 08379002 B500 push , lr 08379004 4642 mov r2, r8 08379006 464B mov r3, r9 08379008 4654 mov r4, r10 0837900A B41C push r2-r4 0837900C 2000 mov r0, 0h 0837900E 4680 mov r8, r0 08379010 4681 mov r9, r0 08379012 4682 mov r10, r0 08379014 1C0C mov r4, r1<------是否强制处理一方----->08379014 4C00 ldr r4, [pc, 0h] ([00379018]=0203A4E8) 08379016 E001 b 837901Ch 08379018 A4E8 add r4, [pc, 3A0h] (=083793BCh) 0837901A 0203 lsl r3, r0, 8h 0837901C 6825 ldr r5, [r4, 0h] 0837901E 2300 mov r3, 0h 08379020 1C18 mov r0, r3 08379022 1C5B add r3, r3, 1h 08379024 2BFF cmp r3, FFh 08379026 DC53 bgt 83790D0h 08379028 F86EF4A0 bl 8019108h 0837902C 6800 ldr r0, [r0, 0h] 0837902E 42A8 cmp r0, r5 08379030 D1F6 bne 8379020h 08379032 2B80 cmp r3, 80h 08379034 DA01 bge 837903Ah 08379036 2300 mov r3, 0h 08379038 E000 b 837903Ch 0837903A 2380 mov r3, 80h 0837903C 2500 mov r5, 0h 0837903E 1C6D add r5, r5, 1h 08379040 2D40 cmp r5, 40h 08379042 DC15 bgt 8379070h 08379044 18E8 add r0, r5, r3 08379046 F85FF4A0 bl 8019108h 0837904A 1C00 mov r0, r0 0837904C F850F000 bl 83790F0h 08379050 0000 lsl r0, r0, 0 08379052 0000 lsl r0, r0, 0 08379054 2A0F cmp r2, Fh 08379056 D0F2 beq 837903Eh 08379058 2A00 cmp r2, 0h 0837905A D002 beq 8379062h 0837905C 4642 mov r2, r8 0837905E 3201 add r2, 1h 08379060 4690 mov r8, r2 08379062 454E cmp r6, r9 08379064 DD00 ble 8379068h 08379066 46B1 mov r9, r6 08379068 4557 cmp r7, r10 0837906A DD00 ble 837906Eh 0837906C 46BA mov r10, r7 0837906E E7E6 b 837903Eh
08379070 4640 mov r0, r8 08379072 3801 sub r0, 1h 08379074 2305 mov r3, 5h 08379076 2800 cmp r0, 0h 08379078 DA00 bge 837907Ch 0837907A 2000 mov r0, 0h 0837907C 4358 mul r0, r3 0837907E 4649 mov r1, r9 08379080 4652 mov r2, r10 08379082 1A09 sub r1, r1, r0 08379084 2900 cmp r1, 0h 08379086 DA00 bge 837908Ah 08379088 2100 mov r1, 0h 0837908A 1ACB sub r3, r1, r3 0837908C 2B00 cmp r3, 0h 0837908E DA00 bge 8379092h 08379090 2300 mov r3, 0h 08379092 205A mov r0, 5Ah 08379094 5A25 ldrh r5, [r4, r0] 08379096 18AA add r2, r5, r2 08379098 5222 strh r2, [r4, r0] 0837909A 2060 mov r0, 60h 0837909C 5A25 ldrh r5, [r4, r0] 0837909E 1869 add r1, r5, r1 083790A0 5221 strh r1, [r4, r0] 083790A2 2066 mov r0, 66h 083790A4 5A25 ldrh r5, [r4, r0] 083790A6 18EB add r3, r5, r3 083790A8 5223 strh r3, [r4, r0]《------------能力追加 083790AA 0000 lsl r0, r0, 0 083790AC 0000 lsl r0, r0, 0 083790AE 0000 lsl r0, r0, 0 083790B0 0000 lsl r0, r0, 0 083790B2 0000 lsl r0, r0, 0 083790B4 0000 lsl r0, r0, 0 083790B6 0000 lsl r0, r0, 0 083790B8 0000 lsl r0, r0, 0 083790BA 0000 lsl r0, r0, 0 083790BC 0000 lsl r0, r0, 0 083790BE 0000 lsl r0, r0, 0 083790C0 0000 lsl r0, r0, 0 083790C2 0000 lsl r0, r0, 0 083790C4 0000 lsl r0, r0, 0 083790C6 0000 lsl r0, r0, 0 083790C8 0000 lsl r0, r0, 0 083790CA 0000 lsl r0, r0, 0 083790CC 0000 lsl r0, r0, 0 083790CE 0000 lsl r0, r0, 0 083790D0 BC1C pop r2-r4 083790D2 4690 mov r8, r2 083790D4 4699 mov r9, r3 083790D6 46A2 mov r10, r4 083790D8 BC02 pop r1 083790DA 468E mov lr, r1 083790DC BCFF pop r0-r7 083790DE 4770 bx lr
-------------------------------- 083790F0 B538 push r3-r5, lr<-----副程序 083790F2 0000 lsl r0, r0, 0 083790F4 4900 ldr r1, [pc, 0h] ([003790F8]=083791E0)<----人物数据指针表 083790F6 E001 b 83790FCh 083790F8 91E0 str r1, [sp, 380h] 083790FA 0837 lsr r7, r6, 0 083790FC 6847 ldr r7, [r0, 4h] 083790FE 793B ldrb r3, [r7, 4h] 08379100 2BEE cmp r3, EEh 08379102 D101 bne 8379108h 08379104 2501 mov r5, 1h 08379106 E021 b 837914Ch 08379108 2BEE cmp r3, EEh 0837910A D101 bne 8379110h 0837910C 2503 mov r5, 3h 0837910E E01D b 837914Ch 08379110 0000 lsl r0, r0, 0 08379112 0000 lsl r0, r0, 0
08379114 6803 ldr r3, [r0, 0h]<-------人物判定 08379116 791B ldrb r3, [r3, 4h] 08379118 780D ldrb r5, [r1, 0h] 0837911A 2D00 cmp r5, 0h 0837911C D059 beq 83791D2h 0837911E 42AB cmp r3, r5 08379120 D001 beq 8379126h 08379122 1D89 add r1, r1, 6h 08379124 E7F8 b 8379118h
08379126 6ABF ldr r7, [r7, 28h]<-----级别判定计算 08379128 2508 mov r5, 8h 0837912A 016B lsl r3, r5, 5h 0837912C 401F and r7, r3 0837912E 2F00 cmp r7, 0h 08379130 D000 beq 8379134h 08379132 2714 mov r7, 14h 08379134 5D63 ldrb r3, [r4, r5] 08379136 19DB add r3, r3, r7 08379138 2505 mov r5, 5h 0837913A 5D4F ldrb r7, [r1, r5] 0837913C 2F00 cmp r7, 0h 0837913E D103 bne 8379148h 08379140 1E6D sub r5, r5, 1h 08379142 2D00 cmp r5, 0h 08379144 D002 beq 837914Ch 08379146 E7F8 b 837913Ah 08379148 42BB cmp r3, r7 0837914A DBF9 blt 8379140h
0837914C 2210 mov r2, 10h<-----坐标计算 0837914E 2311 mov r3, 11h 08379150 5CA6 ldrb r6, [r4, r2] 08379152 5CE7 ldrb r7, [r4, r3] 08379154 5C82 ldrb r2, [r0, r2] 08379156 5CC3 ldrb r3, [r0, r3] 08379158 42B2 cmp r2, r6 0837915A DD01 ble 8379160h 0837915C 1B92 sub r2, r2, r6 0837915E E000 b 8379162h 08379160 1AB2 sub r2, r6, r2 08379162 42BB cmp r3, r7 08379164 DD01 ble 837916Ah 08379166 1BDB sub r3, r3, r7 08379168 E000 b 837916Ch 0837916A 1AFB sub r3, r7, r3 0837916C 18D2 add r2, r2, r3 0837916E 2A00 cmp r2, 0h 08379170 D02F beq 83791D2h
08379172 27FF mov r7, FFh<----技能成立数据追加分离计算 08379174 2600 mov r6, 0h 08379176 2100 mov r1, 0h 08379178 2D05 cmp r5, 5h 0837917A D101 bne 8379180h 0837917C 2703 mov r7, 3h 0837917E E010 b 83791A2h 08379180 2D04 cmp r5, 4h 08379182 D102 bne 837918Ah 08379184 2702 mov r7, 2h 08379186 2605 mov r6, 5h 08379188 E00B b 83791A2h 0837918A 2D03 cmp r5, 3h 0837918C D101 bne 8379192h 0837918E 2702 mov r7, 2h 08379190 E007 b 83791A2h 08379192 2D02 cmp r5, 2h 08379194 D102 bne 837919Ch 08379196 2701 mov r7, 1h 08379198 2605 mov r6, 5h 0837919A E002 b 83791A2h 0837919C 2D01 cmp r5, 1h 0837919E D100 bne 83791A2h 083791A0 2701 mov r7, 1h 083791A2 42BA cmp r2, r7 083791A4 DC15 bgt 83791D2h 083791A6 D008 beq 83791BAh 083791A8 1E79 sub r1, r7, 1h 083791AA 4291 cmp r1, r2 083791AC D007 beq 83791BEh 083791AE 1EB9 sub r1, r7, 2h 083791B0 4291 cmp r1, r2 083791B2 D006 beq 83791C2h 083791B4 2700 mov r7, 0h 083791B6 3608 add r6, 8h<-----命中追加 083791B8 E004 b 83791C4h 083791BA 3605 add r6, 5h<-----命中追加 083791BC E002 b 83791C4h 083791BE 360A add r6, Ah<-----命中追加 083791C0 E000 b 83791C4h 083791C2 360F add r6, Fh<-----命中追加 083791C4 1ABF sub r7, r7, r2 083791C6 3701 add r7, 1h<-----力量追加 083791C8 E006 b 83791D8h 083791CA 0000 lsl r0, r0, 0 083791CC 0000 lsl r0, r0, 0 083791CE 0000 lsl r0, r0, 0 083791D0 0000 lsl r0, r0, 0 083791D2 250F mov r5, Fh<------没有指挥,控制数据赋0F 083791D4 2600 mov r6, 0h 083791D6 2700 mov r7, 0h 083791D8 1C2A mov r2, r5<------是否有指挥转移数据 083791DA BC38 pop r3-r5 083791DC BC02 pop r1 083791DE 4708 bx r1
083791E0 0101 <--------人物数据,第0位为人物指针,12345为指挥技能级别控制位,全为0则表示为全局指挥;如果1位为02,则表示人物2级的时候有1级指挥;如果2位为03,则表示人物3级的时候有2级指挥;如果5位为08,则表示人物8级的时候有5级指挥!!! 083791E2 150B 083791E4 281C 083791E6 010F 083791E8 0B05 083791EA 1F15
083791E0~083791Eb :01 01 0b 15 1c 28 0F 01 05 0b 15 1F 位 :00 01 02 03 04 05 06 07 08 09 0A 0B 00和06位为职业指针. 01和07位为1级指挥控制级别.
083791EC 00000000 083791F0 FFFFFFFF bl 837A04Eh 083791F4 FFFFFFFF bl 837A04Eh 083791F8 FFFFFFFF bl 837A04Eh 083791FC FFFFFFFF bl 837A04Eh 08379200 FFFFFFFF bl 837A04Eh 08379204 FFFFFFFF bl 837A04Eh 08379208 FFFFFFFF bl 837A04Eh 0837920C FFFFFFFF bl 837A04Eh 08379210 FFFFFFFF bl 837A04Eh 08379214 FFFFFFFF bl 837A04Eh 08379218 FFFFFFFF bl 837A04Eh 0837921C FFFFFFFF bl 837A04Eh 08379220 FFFFFFFF bl 837A04Eh 08379224 FFFFFFFF bl 837A04Eh 08379228 FFFFFFFF bl 837A04Eh 0837922C FFFFFFFF bl 837A04Eh 08379230 FFFFFFFF bl 837A04Eh 08379234 FFFFFFFF bl 837A04Eh 08379238 FFFFFFFF bl 837A04Eh 0837923C FFFFFFFF bl 837A04Eh 08379240 FFFFFFFF bl 837A04Eh 08379244 FFFFFFFF bl 837A04Eh 08379248 FFFFFFFF bl 837A04Eh 0837924C FFFFFFFF bl 837A04Eh 08379250 FFFFFFFF bl 837A04Eh 08379254 FFFFFFFF bl 837A04Eh 08379258 FFFFFFFF bl 837A04Eh 0837925C FFFFFFFF bl 837A04Eh 08379260 FFFFFFFF bl 837A04Eh 08379264 FFFFFFFF bl 837A04Eh 08379268 FFFFFFFF bl 837A04Eh 0837926C FFFFFFFF bl 837A04Eh 08379270 FFFFFFFF bl 837A04Eh 08379274 FFFFFFFF bl 837A04Eh 08379278 FFFFFFFF bl 837A04Eh 0837927C FFFFFFFF bl 837A04Eh
[ 此贴被无聊之士在2008-01-15 21:44重新编辑 ]
|
姓:郑 名:长春 号:无聊之士! 欢迎到网络U盘地址:http://zhengchangchun.ys168.com/ 来~ 个人空间http://i.cn.yahoo.com/zhengchangchun2003
|
[楼 主]
|
Posted:2008-01-15 20:56| |
顶端
| |