Queue BG rewrite

hercules\src\map\skill.c(6912): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6913): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6915): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6918): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6920): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6922): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6923): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6925): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6928): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6930): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6931): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6933): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6934): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(9920): warning C4116: unnamed type definition in parentheses
5>f:\server\hercules\src\map\skill.c(9988): error C2061: syntax error : identifier 'skill_castend_nodamage_id_dead_unknown'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : ';'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : 'type'
5>f:\server\hercules\src\map\skill.c(14689): error C2043: illegal break
5>f:\server\hercules\src\map\skill.c(14694): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14715): error C2059: syntax error : 'else'
5>f:\server\hercules\src\map\skill.c(14737): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14759): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14781): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14803): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14825): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14847): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14869): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14893): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(14908): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14926): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(15012): error C2059: syntax error : 'return'
5>f:\server\hercules\src\map\skill.c(15013): error C2059: syntax error : '}'
5>f:\server\hercules\src\map\skill.c(19860): error C2065: 'skill_castend_nodamage_id_dead_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19860): warning C4047: '=' : 'bool (__cdecl *)(block_list *,block_list *,uint16 *,uint16 *,int64 *,int *)' differs in levels of indirection from 'int'
5>f:\server\hercules\src\map\skill.c(19874): error C2065: 'skill_get_requirement_off_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19874): warning C4047: '=' : 'bool (__cdecl *)(status_change *,uint16 *)' differs in levels of indirection from 'int'

how to fix this error

 
hercules\src\map\skill.c(6912): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6913): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6915): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6918): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6920): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6922): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6923): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6925): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6928): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6930): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6931): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6933): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6934): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(9920): warning C4116: unnamed type definition in parentheses
5>f:\server\hercules\src\map\skill.c(9988): error C2061: syntax error : identifier 'skill_castend_nodamage_id_dead_unknown'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : ';'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : 'type'
5>f:\server\hercules\src\map\skill.c(14689): error C2043: illegal break
5>f:\server\hercules\src\map\skill.c(14694): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14715): error C2059: syntax error : 'else'
5>f:\server\hercules\src\map\skill.c(14737): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14759): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14781): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14803): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14825): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14847): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14869): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14893): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(14908): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14926): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(15012): error C2059: syntax error : 'return'
5>f:\server\hercules\src\map\skill.c(15013): error C2059: syntax error : '}'
5>f:\server\hercules\src\map\skill.c(19860): error C2065: 'skill_castend_nodamage_id_dead_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19860): warning C4047: '=' : 'bool (__cdecl *)(block_list *,block_list *,uint16 *,uint16 *,int64 *,int *)' differs in levels of indirection from 'int'
5>f:\server\hercules\src\map\skill.c(19874): error C2065: 'skill_get_requirement_off_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19874): warning C4047: '=' : 'bool (__cdecl *)(status_change *,uint16 *)' differs in levels of indirection from 'int'

how to fix this error
I think you copy not all code. Check again.

 
@@Kubix what is your server? is it live? i wanna try how your BG Works.
Not alive, still working on it. But you can try.

I'll send you link in PM.

Upd: you can't receive more messages.

 
Last edited by a moderator:
hercules\src\map\skill.c(6912): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6913): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6915): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6918): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6920): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6922): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6923): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6925): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6928): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6930): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6931): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6933): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6934): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(9920): warning C4116: unnamed type definition in parentheses
5>f:\server\hercules\src\map\skill.c(9988): error C2061: syntax error : identifier 'skill_castend_nodamage_id_dead_unknown'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : ';'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : 'type'
5>f:\server\hercules\src\map\skill.c(14689): error C2043: illegal break
5>f:\server\hercules\src\map\skill.c(14694): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14715): error C2059: syntax error : 'else'
5>f:\server\hercules\src\map\skill.c(14737): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14759): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14781): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14803): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14825): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14847): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14869): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14893): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(14908): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14926): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(15012): error C2059: syntax error : 'return'
5>f:\server\hercules\src\map\skill.c(15013): error C2059: syntax error : '}'
5>f:\server\hercules\src\map\skill.c(19860): error C2065: 'skill_castend_nodamage_id_dead_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19860): warning C4047: '=' : 'bool (__cdecl *)(block_list *,block_list *,uint16 *,uint16 *,int64 *,int *)' differs in levels of indirection from 'int'
5>f:\server\hercules\src\map\skill.c(19874): error C2065: 'skill_get_requirement_off_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19874): warning C4047: '=' : 'bool (__cdecl *)(status_change *,uint16 *)' differs in levels of indirection from 'int'

how to fix this error
I think you copy not all code. Check again.
hercules\src\map\skill.c(6912): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6913): error C2143: syntax error : missing ';' before 'type'
5>f:\server\hercules\src\map\skill.c(6915): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6918): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6920): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6922): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6923): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6925): error C2065: 'needed' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6928): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6930): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6931): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6933): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(6934): error C2065: 'id' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7745): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'x' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(7767): error C2065: 'y' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(9920): warning C4116: unnamed type definition in parentheses
5>f:\server\hercules\src\map\skill.c(9988): error C2061: syntax error : identifier 'skill_castend_nodamage_id_dead_unknown'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : ';'
5>f:\server\hercules\src\map\skill.c(9988): error C2059: syntax error : 'type'
5>f:\server\hercules\src\map\skill.c(14689): error C2043: illegal break
5>f:\server\hercules\src\map\skill.c(14694): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14715): error C2059: syntax error : 'else'
5>f:\server\hercules\src\map\skill.c(14737): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14759): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14781): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14803): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14825): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14847): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14869): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14893): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(14908): error C2059: syntax error : 'if'
5>f:\server\hercules\src\map\skill.c(14926): error C2059: syntax error : 'switch'
5>f:\server\hercules\src\map\skill.c(15012): error C2059: syntax error : 'return'
5>f:\server\hercules\src\map\skill.c(15013): error C2059: syntax error : '}'
5>f:\server\hercules\src\map\skill.c(19860): error C2065: 'skill_castend_nodamage_id_dead_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19860): warning C4047: '=' : 'bool (__cdecl *)(block_list *,block_list *,uint16 *,uint16 *,int64 *,int *)' differs in levels of indirection from 'int'
5>f:\server\hercules\src\map\skill.c(19874): error C2065: 'skill_get_requirement_off_unknown' : undeclared identifier
5>f:\server\hercules\src\map\skill.c(19874): warning C4047: '=' : 'bool (__cdecl *)(status_change *,uint16 *)' differs in levels of indirection from 'int'

how to fix this error
I think you copy not all code. Check again.
i added everything. still i cant fix this error can you please tell me what i am missing to add

 
@@Kubix what is your server? is it live? i wanna try how your BG Works.
Not alive, still working on it. But you can try.

I'll send you link in PM.

Upd: you can't receive more messages.
I would also play it 
default_p_idea.gif


 
I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well
You have some errors?
Hm yes, in bg_register.txt, the error I get in console is -

script error in file bg_register.txt line 38 column 60, parse_subexpr: need ':'

And this is line 38. " get_uniqueid() " is the part in question.

        if( qiget(.@qid1) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) || qiget(.@qid2) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) )
Hi, i have the same problem. I changed Set variable .MultipleCheck 1 to 2 and the problem continues.

 
 
where will i put the src? i got lost at that part. Thanks in advance
Instructions are in bg_rewrite.c.


I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well
You have some errors?
Hm yes, in bg_register.txt, the error I get in console is -

script error in file bg_register.txt line 38 column 60, parse_subexpr: need ':'

And this is line 38. " get_uniqueid() " is the part in question.

        if( qiget(.@qid1) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) || qiget(.@qid2) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) )
Hi, i have the same problem. I changed Set variable .MultipleCheck 1 to 2 and the problem continues.
This is the error log.

k1DV2OQ.png

@@Kubix I think you got yourself in a world or trouble posting this haha this is perhaps the most sought after coding in the emulator community.

 
This is Gepard Shield script command.

I will update the script today.

 
../map/battleground.h:98: error: expected ‘)’ before ‘key’
../map/battleground.h:99: error: expected ‘;’ before ‘void’
 

how to fix this error?

 
Now it works perfect for me.

When compiling get the following warning:

        CC      battleground.c
battleground.c: In function ‘bg_team_rewards’:
battleground.c:114:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]
  struct battleground_data *bg;
                            ^
battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]
 struct battleground_interface *bg;
                                ^
battleground.c: In function ‘bg_team_getitem’:
battleground.c:295:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]
  struct battleground_data *bg;
                            ^
battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]
 struct battleground_interface *bg;
                                ^
battleground.c: In function ‘bg_team_get_kafrapoints’:
battleground.c:322:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]
  struct battleground_data *bg;
                            ^
battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]
 struct battleground_interface *bg;
                                ^
No errors when i play BG.

Nice work!

 
Back
Top