Jump to content

Rebel

Members
  • Content Count

    148
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by Rebel


  1. On 4/4/2020 at 9:29 PM, Manila said:

    Hello,

     

    Every time i switched a different bow, my equipped arrow will remove. I know this is part of the official latest release, but how can i change this? 

    Check conf/map/battle/items.conf

    // When unequip a bow with arrow equipped, it also unequip the arrow?

    // Default: true (Official behavior, applies only in Renewal)

    bow_unequip_arrow: true


  2. have you consider to put it inside a box?

    {
    	Id: 99999
    	AegisName: "Custom_Box"
    	Name: "Custom Box"
    	Type: "IT_CASH"
    	Buy: 20
    	Weight: 10
    	Trade: {
    		nodrop: true
    		noselltonpc: true
    		nocart: true
    		nogstorage: true
    		nomail: true
    		noauction: true
    	}
    	Script: <" rentitem 12345,604800; ">
    },
    -	trader	Rental01	1_M_01,{
    	OnInit:
    	tradertype(NST_CUSTOM);
    	sellitem Custom_Box, 2;
    	end;
    
    OnCountFunds:
    	setcurrency(#KAFRAPOINTS);
    	end;
    
    OnPayFunds:
    	if( #KAFRAPOINTS < @points ) end;
    	#KAFRAPOINTS -= @points;
    	purchaseok();
    }

     


  3. On 10/12/2018 at 0:18 AM, prism said:

    I was wondering how I can have an item check the player's ASPD. I want to make it so that if the player's ASPD is less than 195 the item will apply a bonus.

    if(readparam(bAspd) < 195) {
      bonus bStr, x;
    }

     


  4. [Error]: --- failed assertion --------------------------------------------
    [Error]: achievement.c:302: 'criteria->goal != 0' in function `achievement_validate_type'
    [Error]: /home/hercules/./map-server() [0x62f873]
    [Error]: /home/hercules/./map-server() [0x40c557]
    [Error]: /home/hercules/./map-server() [0x4091cc]
    [Error]: /home/hercules/./map-server() [0x55306b]
    [Error]: /home/hercules/./map-server() [0x5960aa]
    [Error]: /home/hercules/./map-server() [0x5980e0]
    [Error]: /home/hercules/./map-server() [0x505e87]
    [Error]: /home/hercules/./map-server() [0x468dd2]
    [Error]: /home/hercules/./map-server() [0x63b83e]
    [Error]: /home/hercules/./map-server(main+0x2ca) [0x4085ba]
    [Error]: --- end failed assertion ----------------------------------------
    [Error]: --- failed assertion --------------------------------------------
    [Error]: achievement.c:302: 'criteria->goal != 0' in function `achievement_validate_type'
    [Error]: /home/hercules/./map-server() [0x62f873]
    [Error]: /home/hercules/./map-server() [0x40c557]
    [Error]: /home/hercules/./map-server() [0x409255]
    [Error]: /home/hercules/./map-server() [0x55306b]
    [Error]: /home/hercules/./map-server() [0x5960aa]
    [Error]: /home/hercules/./map-server() [0x5980e0]
    [Error]: /home/hercules/./map-server() [0x505e87]
    [Error]: /home/hercules/./map-server() [0x468dd2]
    [Error]: /home/hercules/./map-server() [0x63b83e]
    [Error]: /home/hercules/./map-server(main+0x2ca) [0x4085ba]
    [Error]: --- end failed assertion ----------------------------------------

     


  5. On 10/2/2018 at 11:24 AM, Quazi said:

    hi @Smoke is it possible to request an additional configuration in your demo script like this..
    just an idea to improve the Item Option System Demo NPC..

    Purpose of Max Item Option Limit is to avoid getting packet errors by editing the mmo.c
    and 4144 also said that the client is set to only exact 5 Options..

    i hope you can give it a try when you have some extra time.. thank you in advance :innocent:

     Configuration

                    Max Item Option Limit ( can be set to 1, 2, 3, 4, or 5) 

                     .Max_Item_Option_Limit = 3;

    
            Requirements and Required amount for a try.( Can be set to either Zeny or cashpoints or PvPPoints or ItemID)
    	.zeny_requirement = 100; ( Can be set to 0 )
            .cashpoints_requirement = 1000; ( Can be set to 0 )
            .pvppoints_requirement = 100; ( Can be set to 0 ) 
            .Item_requirement = 503; ( this is set 503 as Red Potion )
    

    Everything I think is already in the script Smoke provided. Look for this..
     

    for (.@i = 1; .@i <= MAX_ITEM_OPTIONS; ++.@i) {

    Change the MAX_ITEM_OPTIONS to .Max_Item_Option_Limit

    Also in Requirements and Required amount (zeny or points or item) it can be done already in script.. 


  6. There is another bug @meko.. After I reloadscript when PK is enabled. The zone is changed. Please see attached image.

    Before @reloadscript, the Map Info is this:

    Capture1.JPG.89f61265d19d9d14a4b7a38485e17d8a.JPG

    After @reloadscript, the Map Info is this:

    Capture2.JPG.37568b3c93a3c52f933ffe1d378fa54a.JPG

    Notice that 

    -> Zone: Normal turned to Zone: PK Mode

    and

    -> PvP Flags: <empty> turned to PvP Flags: PvP ON |


  7. Git revision (src): '852c13305f67948531bd0277eb1922dbd02b1f26'
    Git revision (scripts): '852c13305f67948531bd0277eb1922dbd02b1f26'

    No custom scripts, no custom src  edits, no plugins.. Fresh Hercules.. 

    Full Stack Trace

    Program received signal SIGSEGV, Segmentation fault.
    __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
    31              pcmpeqb (%rdi), %xmm1
    Missing separate debuginfos, use: debuginfo-install libstdc++-4.8.3-9.el7.x86_64
    (gdb) bt full
    #0  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
    No locals.
    #1  0x00000000004eb2af in map_zone_remove (m=0) at map.c:4659
            flag = '\000' <repeats 24 times>, "\302if\000\000\000\000\000\240\334\377\377\377\177\000\000\302if\000\000\000\000\000\000\344\224\363\377\177\000\000\327\302\060\366\377\177\000\000"
            params = "p\333\377\377\377\177\000\000\260\332\377\377\377\177", '\000' <repeats 18 times>, "\260\333\377\377\377\177\000\000\020\335\377\377\377\177\000\000\302if\000\000\000\000\000\302if\000\000\000\000\000\300"
            k = 0
    #2  0x00000000004ea875 in map_zone_change (m=671, zone=0x150f35c, start=0x6669c2 "", buffer=0x0, filepath=0x0) at map.c:4648
    No locals.
    #3  0x000000000050989b in npc_parse_mapflag (w1=0x628670 <db_obj_get> "UH\211\345AUATI\211\374SH\203\354\bH\205\377\017\204W\001", w2=0x150f35c "PvP",
        w3=0x3513c0 <Address 0x3513c0 out of bounds>, w4=0x627130 <db_data2ptr> "U1\300H\205\377H\211\345t\t\203?\002u\004H\213G\b]\303f.\017\037\204", start=0x6669c2 "",
        buffer=0x6669c2 "", filepath=0x6669c2 "", retval=0x0) at npc.c:4193
            zone = 0x53340b4
            mapname = "1@cata\000\000\060\065\000\a\000\000\000\000\240\334\377\377\377\177\000\000\260`N\000\000\000\000"
            state = 1
            __func__ = "npc_parse_mapflag"
    #4  0x00000000004eb38a in map_zone_remove (m=0) at map.c:4670
            flag = "pvp", '\000' <repeats 61 times>
            params = "\000ff", '\000' <repeats 13 times>, "p\335\377\377\377\177\000\000\\|b", '\000' <repeats 29 times>, "\364n~\001\000\000\000\000\326"
            k = 8
    #5  0x00000000004e077d in map_zonedb_reload () at map.c:3698
            i = 671
            __func__ = "map_zonedb_reload"
    #6  0x000000000050637b in npc_reload () at npc.c:4983
            npc_new_min = 110019057
            iter = 0x3d6
            bl = 0x64
            __func__ = "npc_reload"
    #7  0x000000000040fa16 in atcommand_reloadscript (fd=11, sd=0x150f35c, command=0x6669c2 "", message=0x0, info=0x0) at atcommand.c:3858
            iter = 0xf620ac
            pl_sd = 0x0
    #8  0x00000000004310c0 in atcommand_exec (fd=11, sd=0x380d900, message=0x7fffffffe278 "@reloadscript", player_invoked=false) at atcommand.c:10393
            params = '\000' <repeats 99 times>
            command = "@reloadscript", '\000' <repeats 86 times>
            output = "\000\000\000\000\000\000\000\000\030\340\377\377\377\177\000\000\300aG", '\000' <repeats 21 times>, "\004\021'\004\000\000\000\000\360\337\377\377\377\177\000\000\020\315N", '\000' <repeats 21 times>, "\f", '\000' <repeats 19 times>, "\f\000\000\000\377\377\377\177\000\000\000\000`\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\000\000\000\a\000\000\000\060\001\000\000\000\000\000\000@\373\232\363\377\177\000\000\210\005\000\000\000\000\000\000\031\000\000\000\003\000\000\000\004\000\000\000\000\000\000\000\003\000\000\000;\000\000\000\300aG", '\000' <repeats 13 times>...
            logCommand = true
            atcmd_msg = "@reloadscript\000\000\000\250\341\377\377\n\000\000\000\340\340\377\377\377\177\000\000\321\342\377\377\377\177\000\000\334\020'\004\000\000\000\000P", '\000' <repeats 11 times>, "\005", '\000' <repeats 11 times>, "@i\237\363\377\177\000\000\340\001\000\000\000\000\000\000\306hN\000\000\000\000\000\006\000\000\000\005\000\000\000\004\000\000\000+\000\000\000\061\000\000\000\000\000\000\000?\221g\000\000\000\000\000@\343\377\377\377\177\000\000I\217\061\366\377\177\000\000\001\20---Type <return> to continue, or q <return> to quit---
    0\255\373\000\000\000\000\250\341\377\377\377\177\000\000\300aG", '\000' <repeats 21 times>, "@\301T\000\000\000\000\000\200\341\377\377\377\177\000\000"...
    #9  0x0000000000539ac2 in pc_process_chat_message (sd=0x380d900, message=0x150f35c "PvP") at pc.c:12217
    No locals.
    #10 0x000000000047476f in clif_process_chat_message (sd=0x380d900, packet=0x7ffff4b5c014, out_buf=0x0, out_buflen=0) at clif.c:9727
            srcname = 0x7ffff4b5c018 "admin : @reloadscript"
            message = 0x7fffffffe278 "@reloadscript"
            textlen = 87244980
            __func__ = "clif_process_chat_message"
    #11 0x000000000046e473 in clif_parse_GlobalMessage (fd=11, sd=0x380d900) at clif.c:10613
            full_message = "admin : @reloadscript\000\000\000\204\264\332\004\000\000\000\000<\216]p\000\000\000\000\240r\235", '\000' <repeats 13 times>, "\326\242c\000\000\000\000\000\340\342\377\377\377\177\000\000h\242b", '\000' <repeats 13 times>, "\210\256\317\003", '\000' <repeats 28 times>, "\364n~\001\000\000\000\000\230\343\377\377\377\177\000\000\000\000\000\000\000\000\000\000\320\026T\000\000\000\000\000h\242b\000\000\000\000\000\060\343\377\377\377\177\000\000\364n~\001\000\000\000\000\230\343\377\377\377\177\000\000\000\000\000\000\000\000\000\000\200\343\377\377\377\177\000\000"...
            message = 0x380d900 ""
            __func__ = "clif_parse_GlobalMessage"
    #12 0x00000000004690b2 in clif_parse (fd=11) at clif.c:21983
            parse_cmd_func = 0x53340b4
            packet_len = 6711746
            sd = 0x380d900
    #13 0x000000000063d3de in do_sockets (next=88) at socket.c:1035
            rfd = {fds_bits = {2048, 0 <repeats 15 times>}}
            timeout = {tv_sec = 0, tv_usec = 24394}
            ret = 0
    #14 0x000000000040804a in main (argc=1, argv=0x7fffffffe5e8) at core.c:557
            next = 87244980
            retval = 6511088

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.