summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorChilly0123 <Chilly0123@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 14:44:43 +0000
committerChilly0123 <Chilly0123@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 14:44:43 +0000
commit45ba3918191ff7aa8ce3be40ddfae0927b0b507a (patch)
treed55fa5a3d46cd8de531053ee1ab0fb5a4383c6ff /src/map/skill.c
parent92ce1562699681d1b30d1a5c50d830cd1d396bc4 (diff)
downloadhercules-45ba3918191ff7aa8ce3be40ddfae0927b0b507a.tar.gz
hercules-45ba3918191ff7aa8ce3be40ddfae0927b0b507a.tar.bz2
hercules-45ba3918191ff7aa8ce3be40ddfae0927b0b507a.tar.xz
hercules-45ba3918191ff7aa8ce3be40ddfae0927b0b507a.zip
*Added 2 new accessory skills.
*Reverted some mob changes from 15387. *Updated @go list and locations. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15388 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4ad5a2f22..19815ad1c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -469,6 +469,8 @@ int skillnotok (int skillid, struct map_session_data *sd)
switch (skillid) {
case AL_WARP:
+ case RETURN_TO_ELDICASTES:
+ case ALL_GUARDIAN_RECALL:
if(map[m].flag.nowarp) {
clif_skill_teleportmessage(sd,0);
return 1;
@@ -7201,6 +7203,36 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
clif_skill_nodamage(src, bl, skillid, skilllv, 1);
}
break;
+
+ case RETURN_TO_ELDICASTES:
+ case ALL_GUARDIAN_RECALL:
+ if( sd )
+ {
+ short x, y; // Destiny position.
+ unsigned short mapindex;
+
+ if( skillid == RETURN_TO_ELDICASTES)
+ {
+ x = 198;
+ y = 187;
+ mapindex = mapindex_name2id(MAP_DICASTES);
+ }
+ else
+ {
+ x = 44;
+ y = 151;
+ mapindex = mapindex_name2id(MAP_MORA);
+ }
+
+ if(!mapindex)
+ { //Given map not found?
+ clif_skill_fail(sd,skillid,0,0,0);
+ return 0;
+ }
+ pc_setpos(sd, mapindex, x, y, CLR_TELEPORT);
+ }
+ break;
+
default:
ShowWarning("skill_castend_nodamage_id: Unknown skill used:%d\n",skillid);
clif_skill_nodamage(src,bl,skillid,skilllv,1);