diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-09 17:31:13 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-09 17:31:13 +0000 |
commit | faa7a02a489886461cd039cc306f1fc55d81daa5 (patch) | |
tree | 07ba43506b1c277d7033855c5495dd0e7444ae39 /src/map/intif.c | |
parent | dde71c808130e2923b321561d3d772e0e734b725 (diff) | |
download | hercules-faa7a02a489886461cd039cc306f1fc55d81daa5.tar.gz hercules-faa7a02a489886461cd039cc306f1fc55d81daa5.tar.bz2 hercules-faa7a02a489886461cd039cc306f1fc55d81daa5.tar.xz hercules-faa7a02a489886461cd039cc306f1fc55d81daa5.zip |
- Changes to script buildin functions:
* functions checking if a player is attached as soon as possible.
* functions that required a player attached and would crash if none was
there terminate the script now. (others keep the current behaviour to
maintain full backward compatibility)
* removed the unused flag argument in guildskill.
* bonus,bonus2,bonus3,bonus4 use the same function now (remains the same
script-wise)
* added an optional parameter to setcart,setfalcon,setriding so it's
possible to remove the cart/falcon/mount or select a specific cart
* other cleanups
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9636 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 54c5bf73a..18a6cc81b 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -694,17 +694,16 @@ int intif_guild_position(int guild_id,int idx,struct guild_position *p) return 0; } // ギルドスキルアップ要求 -int intif_guild_skillup(int guild_id,int skill_num,int account_id,int flag) +int intif_guild_skillup(int guild_id, int skill_num, int account_id) { - if (CheckForCharServer()) + if( CheckForCharServer() ) return 0; - WFIFOHEAD(inter_fd,14); - WFIFOW(inter_fd, 0)=0x303c; - WFIFOL(inter_fd, 2)=guild_id; - WFIFOL(inter_fd, 6)=skill_num; - WFIFOL(inter_fd,10)=account_id; - //WFIFOL(inter_fd,14)=flag; - WFIFOSET(inter_fd,14); + WFIFOHEAD(inter_fd, 14); + WFIFOW(inter_fd, 0) = 0x303c; + WFIFOL(inter_fd, 2) = guild_id; + WFIFOL(inter_fd, 6) = skill_num; + WFIFOL(inter_fd, 10) = account_id; + WFIFOSET(inter_fd, 14); return 0; } // ギルド同盟/敵対要求 |