summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-23 13:57:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-23 13:57:54 +0000
commitc61ca3727be3a366a593248a862f37063937fda2 (patch)
treefa0f22fa11862f30a550622e1fefefe1e47f2de0
parent4f51d1366ebb57bf2ac8a3ea0238bc39af796665 (diff)
downloadhercules-c61ca3727be3a366a593248a862f37063937fda2.tar.gz
hercules-c61ca3727be3a366a593248a862f37063937fda2.tar.bz2
hercules-c61ca3727be3a366a593248a862f37063937fda2.tar.xz
hercules-c61ca3727be3a366a593248a862f37063937fda2.zip
- Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got readded.
- When nonplayers use Cloaking, it will be forced to level 10 since mobs shouldn't have movement/attack restrictions while walking cloaked. - Should fix a warning in int_homun.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9043 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt6
-rw-r--r--src/char_sql/int_homun.c2
-rw-r--r--src/map/battle.c4
-rw-r--r--src/map/mob.c3
-rw-r--r--src/map/script.c4
-rw-r--r--src/map/status.c2
6 files changed, 13 insertions, 8 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index af731ee4d..2d181edb2 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,12 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2006/10/23
+ * Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got
+ readded. [Skotlex]
+ * When nonplayers use Cloaking, it will be forced to level 10 since mobs
+ shouldn't have movement/attack restrictions while walking cloaked.
+ [Skotlex]
2006/10/20
* Made HAMI_CASTLE use clif_slide rather than clif_fixpos. This should
fix clientside problems when castling between two positions the (client)
diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c
index 9f5fd24d4..29d8a561b 100644
--- a/src/char_sql/int_homun.c
+++ b/src/char_sql/int_homun.c
@@ -232,7 +232,7 @@ int mapif_delete_homunculus(int fd)
return mapif_homunculus_deleted(fd, 1);
}
-int mapif_rename_homun_ack(int fd, int account_id, int char_id, int flag, char *name){
+int mapif_rename_homun_ack(int fd, int account_id, int char_id, unsigned char flag, char *name){
WFIFOW(fd, 0) =0x3894;
WFIFOL(fd, 2) =account_id;
WFIFOL(fd, 6) =char_id;
diff --git a/src/map/battle.c b/src/map/battle.c
index 95a4ac49f..0469fea0f 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -649,10 +649,6 @@ int battle_addmastery(struct map_session_data *sd,struct block_list *target,int
if((skill = pc_checkskill(sd,AS_KATAR)) > 0)
damage += (skill * 3);
break;
- case W_HUUMA:
- if((skill = pc_checkskill(sd,NJ_TOBIDOUGU)) >0)
- damage += (skill * 3);
- break;
}
return damage;
diff --git a/src/map/mob.c b/src/map/mob.c
index e8d2a5b81..6f73433c7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2132,7 +2132,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if(md->nd)
mob_script_callback(md, src, CALLBACK_DEAD);
- else if(md->npc_event[0]){
+ else
+ if(md->npc_event[0]){
md->status.hp = 0; //So that npc_event invoked functions KNOW that I am dead.
if(src)
switch (src->type) {
diff --git a/src/map/script.c b/src/map/script.c
index eef5cac23..50c665086 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -4574,7 +4574,8 @@ int buildin_jobchange(struct script_state *st)
if( st->end>st->start+3 )
upper=conv_num(st,& (st->stack->stack_data[st->start+3]));
- if ((job >= 0 && job < MAX_PC_CLASS)){
+ if ((job >= 0 && job < MAX_PC_CLASS))
+ {
pc_jobchange(script_rid2sd(st),job, upper);
if(use_irc && irc_announce_jobchange_flag)
irc_announce_jobchange(script_rid2sd(st));
@@ -7140,7 +7141,6 @@ int buildin_initnpctimer(struct script_state *st)
else
nd=(struct npc_data *)map_id2bl(st->oid);
- //nd->u.scr.rid = st->rid; //NO, use npcattachtimer if you want a player-attached timer! [Skotlex]
npc_settimerevent_tick(nd,0);
npc_timerevent_start(nd, st->rid);
return 0;
diff --git a/src/map/status.c b/src/map/status.c
index 97c3cc6e3..bc30ada23 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5043,6 +5043,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if (map_flag_gvg(bl->m)) val4 *= 5;
break;
case SC_CLOAKING:
+ if (!sd) //Monsters should be able to walk no penalties. [Skotlex]
+ val1 = 10;
val2 = tick>0?tick:60000; //SP consumption rate.
val3 = 0;
if (sd && (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN &&