Jump to content
  • 0

cell_pvp chkpvp


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

I am implementing the system cell_pvp which leaves only one aria in pvp map, I ultilizo a pre-renawal version of eAthena, I made the following change over time to give some compile errors, wanted to know what the problem is.

if( sd->state.monster_ignore && flag&BCT_ENEMY )
return 0; // Global inminuty only to Attacks

+ if(s_bl->type == BL_PC)
+ tsd = BL_CAST(BL_PC, s_bl);
+ if(s_bl->type == BL_PC && map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKPVP) && flag&BCT_ENEMY && map_getcell(tsd->bl.m,tsd->bl.x,tsd->bl.y,CELL_CHKPVP))
+ state |= BCT_ENEMY; //PvP enemy.

if( sd->status.karma && s_bl->type == BL_PC && ((TBL_PC*)s_bl)->status.karma )
state |= BCT_ENEMY; // Characters with bad karma may fight amongst them
if( sd->state.killable ) {
state |= BCT_ENEMY; // Everything can kill it
strip_enemy = 0;

error in console

 

ql/sql.o ../../3rdparty/mt19937ar/mt19937ar.o -lrt -lm -lz  -ldl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto
make[1]: Leaving directory `/home/emulador/src/char_sql'
make[1]: Entering directory `/home/emulador/src/map'
gcc -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fno-strict-aliasing -DHAVE_SETRLIMIT -DHAVE_STRNLEN -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -I/usr/include/mysql  -I../common -I/usr/include -c -o obj_sql/battle.o battle.c
battle.c: In function âbattle_check_targetâ:
battle.c:3412: error: âtsdâ undeclared (first use in this function)
battle.c:3412: error: (Each undeclared identifier is reported only once
battle.c:3412: error: for each function it appears in.)
battle.c:3414: error: expected â)â before âstateâ
battle.c:3422: error: expected expression before â}â token
make[1]: *** [obj_sql/battle.o] Error 1
make[1]: Leaving directory `/home/emulador/src/map'
make: *** [map_sql] Error 2
-bash-4.1# ^C
-bash-4.1# 

up.

Edited by cumbe11
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...