I'm manually put Goddameit Reflect "Reflection Damage" in my server. I'm using already-made server by someone, and for some reason it didn't leave any clue what revision I use. I hope it's not major role in this problem. Anyway I think I did good job add/replace line according to this patch. But there are tiny little change that make me bamboozled I learned script by comparison with working one but I don't understand any language at all.
Please take a look in this battle.c....
===================================================================
--- src/map/battle.c (revision 17168)
+++ src/map/battle.c (working copy)
@@ -4688,7 +4688,7 @@
// Deals the same damage to targets in area. [pakpil]
int battle_damage_area( struct block_list *bl, va_list ap) {
unsigned int tick;
- int amotion, dmotion, damage;
+ int amotion, dmotion, damage, return_, damage_;
struct block_list *src;
nullpo_ret(bl);
According to this patch, I only just remove red one and add green one, and so I did. But, my battle.c has different line...
int battle_damage_area(struct block_list *bl, va_list ap) {
unsigned int tick;
int64 damage; <--- This one is new line.
// int amotion, dmotion; <--- And this one doesn't have "damage"
int amotion, dmotion, damage, return_, damage_;
struct block_list *src;
nullpo_ret(bl);
And other lines doesn't change much, so it's easy...
Error 1 error C2371: 'damage' : redefinition; different basic types ...rathena-master\src\map\battle.c 6967 1 map-server
Warning 2 warning C4244: '=' : conversion from 'int64' to 'int', possible loss of data .......rathena-master\src\map\battle.c 6995 1 map-server
Error 3 error C2198: 'battle_delay_damage' : too few arguments for call ...rathena-master\src\map\battle.c 6998 1 map-server
Error 4 error C2198: 'clif_damage' : too few arguments for call ...rathena-master\src\map\battle.c 6999 1 map-server
5 IntelliSense: too few arguments in function call ...rathena-master\src\map\battle.c 6998 89 map-server
6 IntelliSense: argument of type "damage_lv" is incompatible with parameter of type "e_damage_type" ...rathena-master\src\map\battle.c 6999 56 map-server
7 IntelliSense: too few arguments in function call ...\rathena-master\src\map\battle.c 6999 67 map-server
From this, I knew that that tiny change really mess it up. And I also uploaded my own version battle.h...... Please take a look. I would be grateful by any help I can get.
Question
yagamiraito
Hello,
I'm manually put Goddameit Reflect "Reflection Damage" in my server. I'm using already-made server by someone, and for some reason it didn't leave any clue what revision I use. I hope it's not major role in this problem. Anyway I think I did good job add/replace line according to this patch. But there are tiny little change that make me bamboozled I learned script by comparison with working one but I don't understand any language at all.
Please take a look in this battle.c....
According to this patch, I only just remove red one and add green one, and so I did. But, my battle.c has different line...
And other lines doesn't change much, so it's easy...
And when I compiled it, it bring this error.
From this, I knew that that tiny change really mess it up. And I also uploaded my own version battle.h...... Please take a look. I would be grateful by any help I can get.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.