summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 08:16:25 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 08:16:25 +0000
commitee93ce7a37a5ea542ecc5ec32bc8a9499b75a739 (patch)
tree40ab56e3843177e6b83e651b80c89d2b7915c4b0 /src/map/script.c
parent1df4d8745da1cfdfa7d2dd24632074fab5234a6b (diff)
downloadhercules-ee93ce7a37a5ea542ecc5ec32bc8a9499b75a739.tar.gz
hercules-ee93ce7a37a5ea542ecc5ec32bc8a9499b75a739.tar.bz2
hercules-ee93ce7a37a5ea542ecc5ec32bc8a9499b75a739.tar.xz
hercules-ee93ce7a37a5ea542ecc5ec32bc8a9499b75a739.zip
- Shooting skills will now need arrows
* Added 'guildgetexp' script command * Added bLongAtkRate item effect * Updated Bow Thimble, Archer Skeleton Card, Tribal Solidarity, Sleipnir, Brisingamen, Mjolnir, Megingord, Counter Dagger, Poison Knife * Updated SP requirements for Full Strip, Full Chemical Protection, Cannibalize git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@485 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7e8fe020a..750ef4d0c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -291,6 +291,7 @@ int buildin_npcstop(struct script_state *st); // [Valaris]
int buildin_getmapxy(struct script_state *st); //get map position for player/npc/pet/mob by Lorky [Lupus]
int buildin_checkoption1(struct script_state *st); // [celest]
int buildin_checkoption2(struct script_state *st); // [celest]
+int buildin_guildgetexp(struct script_state *st); // [celest]
void push_val(struct script_stack *stack,int type,int val);
int run_func(struct script_state *st);
@@ -501,7 +502,8 @@ struct {
{buildin_npcstop,"npcstop",""}, // [Valaris]
{buildin_getmapxy,"getmapxy","siii*"}, //by Lorky [Lupus]
{buildin_checkoption1,"checkoption1","i"},
- {buildin_checkoption2,"checkoption2","i"},
+ {buildin_checkoption2,"checkoption2","i"},
+ {buildin_guildgetexp,"guildgetexp","i"},
{NULL,NULL,NULL},
};
int buildin_message(struct script_state *st); // [MouseJstr]
@@ -3681,6 +3683,24 @@ int buildin_getexp(struct script_state *st)
}
/*==========================================
+ * Gain guild exp [Celest]
+ *------------------------------------------
+ */
+int buildin_guildgetexp(struct script_state *st)
+{
+ struct map_session_data *sd = script_rid2sd(st);
+ int exp;
+
+ exp = conv_num(st,& (st->stack->stack_data[st->start+2]));
+ if(exp < 0)
+ return 0;
+ if(sd && sd->status.guild_id > 0)
+ guild_getexp (sd, exp);
+
+ return 0;
+}
+
+/*==========================================
* モンスター発生
*------------------------------------------
*/