Jump to content

Achievement System


Jonne

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

anyone fixed it for the current Rathena SVN?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

HELP ME PLEASE...

add achievement.

INSERT INTO `explore_achievement` (`achievement_id`,`map1`,`map2`,`map3`,`map4`,`map5`) VALUES (1,'morroc','','','','')

server console:

[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!

When visiting morocc, achievement not to be.

@achieve 1 nick - WORK!

Edited by nndsl
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

hope can be use in rathena v 17128

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Yes, it's work perfectly.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Yes, it's work perfectly.

 

its sapport latest svn ? i have to diff manually  ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

yes

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

I have manually patched everything but when I go to compile I get these errors
 

1>..\src\map\atcommand.c(9121): error C2065: 'atcommand_reloadachievements' : undeclared identifier
1>..\src\map\atcommand.c(9121): warning C4047: 'initializing' : 'AtCommandFunc' differs in levels of indirection from 'int'
1>..\src\map\atcommand.c(9122): error C2065: 'atcommand_achievem' : undeclared identifier
1>..\src\map\atcommand.c(9122): warning C4047: 'initializing' : 'AtCommandFunc' differs in levels of indirection from 'int'

And these are what my 9121-9122 lines look like

		ACMD_DEF(reloadachievements),
		ACMD_DEF(achievem),

Anyone have any idea how to fix this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

Can anyone fix this for newest rathena? The problem is that this system don't give any achievements.

 

Patch for newest rAthena..

achievement.patch

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

bumps for this 
cant load it in latest rathena

even with manual patch :(

Edited by icabit
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

very good script, how can i spend my achievement points? for example achievement points trader...

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Why its not working?? I cant achieve any achievements i put in db. like for just killing 1 poring. it does not finished the achievement and the cutin is not showing.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  03/12/13
  • Last Seen:  

can anyone help me about this
http://puu.sh/3R4Kk.png

i put jakeRed +20refiner and this is the link http://www.eathena.ws/board/index.php?showtopic=231477

it wont work to my server but in 3ceam it works,

i used rathena svn

Thanks in advance.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  02/11/12
  • Last Seen:  

Hey,

I've a problem.

At my last server work the achievement perfectly, but in the latest rAthena revesion

get this error:

 



In file included from pc.h:22,
                 from map.c:25:
achievement.h:53: error: redeclaration of enumerator âAI_MAXâ
map.h:317: note: previous definition of âAI_MAXâ was here

 

I don't know what is wrong.

In map.h gives AI_MAX.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

change AI_MAX to AI_MAX2. In achievement-patch.

 

and crashing map-server, if use @atcommand in script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  02/11/12
  • Last Seen:  

Many thanks for your help nndsl.

But now I've a new error. T_T

 



achievement.c:127:34: error: macro "msg_txt" requires 2 arguments, but only 1 given
achievement.c: In function âachievement_achieveâ:
achievement.c:127: error: âmsg_txtâ undeclared (first use in this function)
achievement.c:127: error: (Each undeclared identifier is reported only once
achievement.c:127: error: for each function it appears in.)
achievement.c: In function âachievement_update_mobâ:
achievement.c:621: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:621: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_mob_subâ:
achievement.c:639: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:639: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_itemfindâ:
achievement.c:652: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:652: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_itemuseâ:
achievement.c:663: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:663: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_exploreâ:
achievement.c:674: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:674: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_questâ:
achievement.c:685: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:685: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_loadDBâ:
achievement.c:1328: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:1328: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
make[1]: *** [obj_sql/achievement.o] Error 1

 

 



Ok, all solved.~ Works now ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

im really disappointed with this system, because both client side / server side are working properly for me

but the problem is when i try the achievement system

"it always keep getting the same achievement again and again" nonstop everytime

the onloginevent or onpckillevent triggers... how can i fix this? anyone?

Edited by joelolopez
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

prontera,137,148,0 script test 910,{
atcommand "@hide";
}
100% crashing the map server.
using this script NPC Kick.

 

 

please help in this error!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

Cydh you a update this modification? :)

i'm wait it))

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

@ Jonne:

It would be nice if you can update your system for the latest rAthena rev.

I will pay for it.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

Hi i got error when player disconnect or logout
im using latest svn
heres the debug
 

--- file : chkstk.asm
 
        page    ,132
        title   chkstk - C stack checking routine
;***
;chkstk.asm - C stack checking routine
;
;       Copyright © Microsoft Corporation. All rights reserved.
;
;Purpose:
;       Provides support for automatic stack checking in C procedures
;       when stack checking is enabled.
;
;*******************************************************************************
 
.xlist
        include cruntime.inc
.list
 
; size of a page of memory
 
_PAGESIZE_      equ     1000h
 
 
        CODESEG
 
page
;***
;_chkstk - check stack upon procedure entry
;
;Purpose:
;       Provide stack checking on procedure entry. Method is to simply probe
;       each page of memory required for the stack in descending order. This
;       causes the necessary pages of memory to be allocated via the guard
;       page scheme, if possible. In the event of failure, the OS raises the
;       _XCPT_UNABLE_TO_GROW_STACK exception.
;
;       NOTE:  Currently, the (EAX < _PAGESIZE_) code path falls through
;       to the "lastpage" label of the (EAX >= _PAGESIZE_) code path.  This
;       is small; a minor speed optimization would be to special case
;       this up top.  This would avoid the painful save/restore of
;       ecx and would shorten the code path by 4-6 instructions.
;
;Entry:
;       EAX = size of local frame
;
;Exit:
;       ESP = new stackframe, if successful
;
;Uses:
;       EAX
;
;Exceptions:
;       _XCPT_GUARD_PAGE_VIOLATION - May be raised on a page probe. NEVER TRAP
;                                    THIS!!!! It is used by the OS to grow the
;                                    stack on demand.
;       _XCPT_UNABLE_TO_GROW_STACK - The stack cannot be grown. More precisely,
;                                    the attempt by the OS memory manager to
;                                    allocate another guard page in response
;                                    to a _XCPT_GUARD_PAGE_VIOLATION has
;                                    failed.
;
;*******************************************************************************
 
public  _alloca_probe
 
_chkstk proc
 
_alloca_probe    =  _chkstk
 
        push    ecx
 
; Calculate new TOS.
 
        lea     ecx, [esp] + 8 - 4      ; TOS before entering function + size for ret value
        sub     ecx, eax                ; new TOS
 
; Handle allocation size that results in wraparound.
; Wraparound will result in StackOverflow exception.
 
        sbb     eax, eax                ; 0 if CF==0, ~0 if CF==1
        not     eax                     ; ~0 if TOS did not wrapped around, 0 otherwise
        and     ecx, eax                ; set to 0 if wraparound
 
        mov     eax, esp                ; current TOS
        and     eax, not ( _PAGESIZE_ - 1) ; Round down to current page boundary
 
cs10:
        cmp     ecx, eax                ; Is new TOS
        jb      short cs20              ; in probed page?
        mov     eax, ecx                ; yes.
        pop     ecx
        xchg    esp, eax                ; update esp
        mov     eax, dword ptr [eax]    ; get return address
        mov     dword ptr [esp], eax    ; and put it at new TOS
        ret
 
; Find next lower page and probe
cs20:
        sub     eax, _PAGESIZE_         ; decrease by PAGESIZE
->        test    dword ptr [eax],eax     ; probe page.
        jmp     short cs10
 
_chkstk endp
 
        end
 
the red one is target error i think? help me please
 

'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\map-server_sql.exe', Symbols loaded.
'map-server_sql.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\libmysql.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\wsock32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\zlib1.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\pcre3.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\cryptsp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rsaenh.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nlaapi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\NapiNSP.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\pnrpnsp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\mswsock.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nvinit.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\dnsapi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\winrnr.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\wshbth.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\winnsi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\FWPUCLNT.DLL', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rasadhlp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x3ac) has exited with code 0 (0x0).
Unhandled exception at 0x007fd587 in map-server_sql.exe: 0xC00000FD: Stack overflow.
First-chance exception at 0x007fd587 in map-server_sql.exe: 0xC0000005: Access violation reading location 0x00030000.
Unhandled exception at 0x007fd587 in map-server_sql.exe: 0xC0000005: Access violation reading location 0x00030000.
 

 

this is on the debug output

Edited by hakuren
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  05/18/14
  • Last Seen:  

Didn't even get the chance to try this :(

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  10/13/12
  • Last Seen:  

After a lot of work I managed to get the system to work on the newest rAthena, but for some reason it doesn't give me the achievement when I fulfill the conditions, only if I add it manually using the @command. Does anyone know a way around this? I appreciate the help.

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

how to do this on my server??? thank you for explaining

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

Question >>>> how do i patch this??? and where do i put archievements.sql????

 

please guide me i dont know where do i start

 

thank you

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...