diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-07 08:16:25 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-07 08:16:25 +0000 |
commit | ee93ce7a37a5ea542ecc5ec32bc8a9499b75a739 (patch) | |
tree | 40ab56e3843177e6b83e651b80c89d2b7915c4b0 /src/map/guild.c | |
parent | 1df4d8745da1cfdfa7d2dd24632074fab5234a6b (diff) | |
download | hercules-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/guild.c')
-rw-r--r-- | src/map/guild.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index f4ab77dfd..8d84705fd 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -952,6 +952,30 @@ int guild_payexp(struct map_session_data *sd,int exp) return exp2; } +// Celest +int guild_getexp(struct map_session_data *sd,int exp) +{ + struct guild *g; + struct guild_expcache *c; + + nullpo_retr(0, sd); + + if(sd->status.guild_id==0 || (g=guild_search(sd->status.guild_id))==NULL ) + return 0; + + if( (c=numdb_search(guild_expcache_db,sd->status.char_id))==NULL ){ + c=(struct guild_expcache *)aCalloc(1,sizeof(struct guild_expcache)); + c->guild_id=sd->status.guild_id; + c->account_id=sd->status.account_id; + c->char_id=sd->status.char_id; + c->exp=exp; + numdb_insert(guild_expcache_db,c->char_id,c); + }else{ + c->exp+=exp; + } + return exp; +} + // スキルポイント割り振り int guild_skillup(struct map_session_data *sd,int skill_num,int flag) { |