summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-09-18 15:49:51 -0600
committerJared Adams <jaxad0127@gmail.com>2009-09-18 15:49:51 -0600
commit41075d30353cd42588975cfbc8a21a69911ad4cc (patch)
tree8a7ae1fa652da465079e22167d419e1c663cf0c1 /src/map/party.c
parentb3939b91deda8081c5b144109829599b05e81272 (diff)
downloadtmwa-41075d30353cd42588975cfbc8a21a69911ad4cc.tar.gz
tmwa-41075d30353cd42588975cfbc8a21a69911ad4cc.tar.bz2
tmwa-41075d30353cd42588975cfbc8a21a69911ad4cc.tar.xz
tmwa-41075d30353cd42588975cfbc8a21a69911ad4cc.zip
Replace basic skill with three new skills
We want to handle skills differently that eAthena was made too. All new skills are leveled by NPCs instead of using the job sysetm. Also fixes some bugs.
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/party.c b/src/map/party.c
index feacc25..62b30d8 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -14,6 +14,7 @@
#include "battle.h"
#include "intif.h"
#include "clif.h"
+#include "skill.h"
#ifdef MEMWATCH
#include "memwatch.h"
@@ -203,23 +204,28 @@ int party_invite(struct map_session_data *sd,int account_id)
if(tsd==NULL || p==NULL)
return 0;
+
+ printf("\tA\n");
+
if(!battle_config.invite_request_check) {
- if (tsd->guild_invite>0 || tsd->trade_partner) { // 相手が取引中かどうか
+ if (tsd->guild_invite>0 || tsd->trade_partner || tsd->npc_id || tsd->npc_shopid || pc_checkskill(tsd,NV_PARTY) < 1) {
clif_party_inviteack(sd,tsd->status.name,0);
return 0;
}
}
+ printf("\tB\n");
if( tsd->status.party_id>0 || tsd->party_invite>0 ){ // 相手の所属確認
clif_party_inviteack(sd,tsd->status.name,0);
return 0;
}
+ printf("\tC\n");
for(i=0;i<MAX_PARTY;i++){ // 同アカウント確認
if(p->member[i].account_id==account_id){
clif_party_inviteack(sd,tsd->status.name,0);
return 0;
}
}
-
+ printf("\tD\n");
tsd->party_invite=sd->status.party_id;
tsd->party_invite_account=sd->status.account_id;