Jump to content

Klutz

Members
  • Content Count

    87
  • Joined

  • Last visited

Posts posted by Klutz


  1. I found the problem in my source but not sure why it cause it.

     

                    case CR_REFLECTSHIELD:
    		case MS_REFLECTSHIELD:
    		case AS_POISONREACT:
    		case MC_LOUD:
    		case MG_ENERGYCOAT:
    		case MO_EXPLOSIONSPIRITS:
    		case MO_STEELBODY:
    		case MO_BLADESTOP:
    		case LK_AURABLADE:
    		case LK_PARRYING:
    		case MS_PARRYING:
    		case LK_CONCENTRATION:
    		case WS_CARTBOOST:
    		case SN_SIGHT:
    		case WS_MELTDOWN:
    		case WS_OVERTHRUSTMAX:
    		case ST_REJECTSWORD:
    		case HW_MAGICPOWER:
    		case PF_MEMORIZE:
    		case PA_SACRIFICE:
    		case ASC_EDP:
    		case PF_DOUBLECASTING:
    		case SG_SUN_COMFORT:
    		case SG_MOON_COMFORT:
    		case SG_STAR_COMFORT:
    		case NPC_HALLUCINATION:
    		case GS_MADNESSCANCEL:
    		case GS_ADJUSTMENT:
    		case GS_INCREASING:
    		case NJ_KASUMIKIRI:
    		case NJ_UTSUSEMI:
    		case NJ_NEN:
    		case NPC_DEFENDER:
    		case NPC_MAGICMIRROR:
    		case ST_PRESERVE:
    			if( sd )
    			{
    				if( sd->sc.count && sd->sc.data[SC_PRESERVE] ){
    					status_change_end(bl, SC_PRESERVE, INVALID_TIMER);
    					clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
    				}
    				else{
    					clif->skill_nodamage(src,bl,skill_id,skill_lv,
    						sc_start(src,bl,type,100,skill_lv,skill->get_time(skill_id,skill_lv)));
    				}
    			}
    			break;
                    case NPC_INVINCIBLE:
    		case NPC_INVINCIBLEOFF:
    		case RK_DEATHBOUND:
    		case AB_RENOVATIO:
    		case AB_EXPIATIO:
    		case AB_DUPLELIGHT:
    

    If i am moving the break inside the if it reflect normal


  2. What changes you did in BUILDIN(purchaseok)?

    because it cant call script_cleararray_pc

    Nothing that's why i find it weird.

    my shop calls functions to count items, and delete items.

     

    gold_coin = 1

    gold_bag = 10 gold_coins

     

    GoldCoinCounter  - counts the total of Gold_coin+gold_bags

    GoldCoinToDelete - delitem and give back change


  3. Server crashed today with this errors:

     

    (05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
    (05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
    (05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x6e) [0x58ce6e]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
    (05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
    (05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
    (05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
    (05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x85) [0x58ce85]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
    (05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
    (05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
    (05/08/2017 06:25:54) [ Error ] : Server received crash signal! Attempting to save all online characters!
    
    

     

    Player tried to use Gold Shop (Dynamic Shop).

     

    
    -    script    GoldShop    FAKE_NPC,{
    
    OnInit:
        tradertype(NST_CUSTOM);
        sellitem 4441,50;
        sellitem 4408,25;
        end;
        
    OnCountFunds:
        setcurrency(callfunc("GoldCoinCounter","None"));
        end;
        
    OnPayFunds:
        if(callfunc("GoldCoinCounter","None") < @price-@points )
            end;
        set .@InventoryCheck,0;
        if (@price < 10)
        {
            if (@price >  (callfunc("GoldCoinCounter","Coins")))
                .@InventoryCheck = 10 - @price;
        }
        else
         {
            .@InventoryCheck = @price/10;
            .@InventoryCheck = @price - (.@InventoryCheck*10);
         }
        getinventorylist();
        if ((@inventorylist_count + .@InventoryCheck ) >= MAX_INVENTORY)
        {
            .@InventoryCheck = .@InventoryCheck + @inventorylist_count + 1;
            dispbottom "You will have "+ .@InventoryCheck +" items in your Inventory.";
            dispbottom "The Maxium number allowed is: "+ MAX_INVENTORY;
            dispbottom "Please clear some space in your Inventory";
            end;
        }
        callfunc("GoldCoinToDelete",@price);
        purchaseok();
        end;
    }
    

  4. All,

     

    I am working on an installation "script" to help you walk through the steps to install the panel.

     

    I am also working on a bit of a database re-write which will see some of the field names change to be more uniform. With this, a couple of new tables will be added relating to connection to the Hercules information (most of this will move out of the config directory and into the database).

    super excited to see the update!


  5. Hey,

     

    Lately i am starting to get Errors regarding mapflags.

     

    Not if i will restart the map server i won't get any errors, it only happens after some time period with @reloadscript

     

    
    ​(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=weapon_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=magic_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=misc_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    (05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
     * w1=
     * w2=
     * w3=short_damage_rate
     * w4=50
    
    

     

     

    Any idea what cause it?

     

    Regards,

    Klutz


  6. Lately i been working to switch from eAthena server to Hercules.

    with all the new functions Hercules has i started to build new scripts for my npcs.

     

    i found myself searching a lot for lists:

    1) Name of people on specific map.

    2) Char ID of people on specific map.

    3) Account ID of people on specific map.

     

    BUILDIN(getmapusers) {
    	int16 m;
    	int type = 0;
    	int users = 0;
    	struct s_mapiterator* iter;
    	struct map_session_data *sd;
    	const char *str;
    	str = script_getstr(st,2);
    	if( (m=map->mapname2mapid(str))< 0) {
    		script_pushint(st,-1);
    		return true;
    	}
    	if (script_hasdata(st,3))
    		type = script_getnum(st,3);
    	else{
    		script_pushint(st,map->list[m].users);
    		return true;
    	}
    	iter = mapit_getallusers();
    	for (sd = BL_UCAST(BL_PC, mapit->first(iter)); mapit->exists(iter); sd = BL_UCAST(BL_PC, mapit->next(iter))) {
    		if (sd->bl.m == m){
    			switch (type)
    			{
    				case 1:
    					mapreg->setregstr(reference_uid(script->add_str("$@mapcharname$"), users), sd->status.name);
    					break;
    				case 2:
    					mapreg->setreg(reference_uid(script->add_str("$@mapcharid"), users), sd->status.char_id);
    					break;
    				case 3:
    					mapreg->setreg(reference_uid(script->add_str("$@mapaccountid"), users), sd->status.account_id);
    					break;
    			}
    			users++;
    		}
    	}
    	mapit->free(iter);
    	return true;
    }
    
    
    
    BUILDIN_DEF(getmapusers,"s?"),
    

     

     

     

     

     

    I was wondering if you want to add it to Hercules as a new feature.

     

    Regards,

    Klutx


  7.  

     

     

     

    hello i made a gm with a groupd id 98 (phpadmin), i edited the file name trunk/conf/groups.conf and change id into 98. but when i log in to client i get an warning says "pc_authok aid:2000001 logged in with unknown groupd id (98)!"

     

    it only allow me to access until character selection.... then disconnect when selected

    Did you reload the map server after the change?
    Not sure.... but I recompiled it

    all you need to do is for example:

     

    {
        id: 98
        name: "test"
        level: 98
        inherit: ( "Head GM" )
        commands: {
            
        }
        log_commands: true
        permissions: {
            use_check: true
            use_changemaptype: true
            all_commands: true
            show_bossmobs: true    
        }
    }
     
    and then @reloadatcommand
     
    After that try to login with the group:98 

  8. hello i made a gm with a groupd id 98 (phpadmin), i edited the file name trunk/conf/groups.conf and change id into 98. but when i log in to client i get an warning says "pc_authok aid:2000001 logged in with unknown groupd id (98)!

     

    it only allow me to access until character selection.... then disconnect when selected

    Did you reload the map server after the change?

×
×
  • Create New...

Important Information

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