Jump to content

ahloi007

Members
  • Posts

    78
  • Joined

Posts posted by ahloi007

  1. @latios  , I've got this error what should I do? 

    Quote

    pc.cpp: In function 'void pc_delautobonus(map_session_data*, std::vector<s_autobonus>&, bool)':
    pc.cpp:2705:10: error: 'j' was not declared in this scope
          for(j = 0; j < EQI_MAX_BONUS; j++) {
              ^
    pc.cpp:2705:21: error: 'EQI_MAX_BONUS' was not declared in this scope
          for(j = 0; j < EQI_MAX_BONUS; j++) {
                         ^
    make[1]: *** [obj/pc.o] Error 1
     

     

  2. 4 hours ago, Emistry said:

    check your lub file.

    data\luafiles514\lua files\emotion\emotionlist.lub

    Hi emistry, I've check the emotionlist.lub

    Im confusing  with the code, because this thing quite new to me.

    And I also replace it with other emotionlist.lub which is working at other server, but still the same.

     

    So I also done add on the code in the emotionlist.lub - /desp, /fsh, /spin, /sigh, /dum, /crwd 

    //---"***" this is where I added
    
    InsertEmotionMsgListTable(ET_SPARK, "/e13")
    InsertEmotionMsgListTable(ET_SPARK, "/fsh") ***
    InsertEmotionListTable(ET_CONFUSE, MSI_EMOTION_CONFUSE, 52)
    InsertEmotionMsgListTable(ET_CONFUSE, c_GetMsgString(MSI_EMOTION_CONFUSE))
    InsertEmotionMsgListTable(ET_CONFUSE, "/e14")
    InsertEmotionMsgListTable(ET_SPARK, "/spin") ***
    InsertEmotionListTable(ET_OHNO, MSI_EMOTION_OHNO, 53)
    InsertEmotionMsgListTable(ET_OHNO, c_GetMsgString(MSI_EMOTION_OHNO))
    InsertEmotionMsgListTable(ET_OHNO, "/ÇѼû")
    InsertEmotionMsgListTable(ET_OHNO, "/e15")
    InsertEmotionMsgListTable(ET_SPARK, "/sigh") ***
    InsertEmotionListTable(ET_HUM, MSI_EMOTION_HUM, 54)
    InsertEmotionMsgListTable(ET_HUM, c_GetMsgString(MSI_EMOTION_HUM))
    InsertEmotionMsgListTable(ET_HUM, "/e16")
    InsertEmotionMsgListTable(ET_SPARK, "/dum") ***
    InsertEmotionListTable(ET_BLABLA, MSI_EMOTION_BLABLA, 55)
    InsertEmotionMsgListTable(ET_BLABLA, c_GetMsgString(MSI_EMOTION_BLABLA))
    InsertEmotionMsgListTable(ET_BLABLA, "/½Ã²ø½Ã²ø")
    InsertEmotionMsgListTable(ET_BLABLA, "/e17")
    InsertEmotionMsgListTable(ET_SPARK, "/crwd") ***
    InsertEmotionListTable(ET_OTL, MSI_EMOTION_OTL, 56)
    InsertEmotionMsgListTable(ET_OTL, c_GetMsgString(MSI_EMOTION_OTL))
    InsertEmotionMsgListTable(ET_OTL, "/e18")
    InsertEmotionMsgListTable(ET_OTL, "/otl")
    InsertEmotionMsgListTable(ET_SPARK, "/desp") ***

    But it doesn't working... 

  3. Hi rAthena!

    As the topic above, may I know how to fix it?

    I got invalid command in game Emotions... Please guide me

    Example:

    When I click on the emotion, it came out the command like this "/ desp"

    screen-Zi-Ragnarok006.jpgscreen-Zi-Ragnarok007.jpg

     

    When I type the correct command /desp, it be come invalid command as below picture shown.

    screen-Zi-Ragnarok008.jpgscreen-Zi-Ragnarok009.jpg

    If I post on the wrong site please move me ,

    Im sorry for the inconvenience caused...

  4. 22 hours ago, chatterboy said:

    restart your server, it wont show if you use the command @reloadscript 

    Yes, I did restart the server still same.

    Quote

    [Error]: buildin_getarg: Index (idx=10) out of range (nargs=10) and no default value found
    [Debug]: Source (NPC): quest_shop (invisible/not on a map)

    This error still here after restart the server

     

    Okay I figured it out whats the problem.

    Typo in the script.

    Quote

        Add(2,5029,1,0,0,7068,300,7033,850,1015);
     

    Topic closed thanks!

  5. Hi all,

    Currently Im facing a problem with Euphy's quest shop, I cant figure it out whats the promblem.

    screen-Zi-Ragnarok001.jpgscreen-Zi-Ragnarok002.jpg

    The jellopy appear suddenly, before @reloadscript everythings work fine.

    Quote

    [Error]: buildin_getarg: Index (idx=10) out of range (nargs=10) and no default value found
    [Debug]: Source (NPC): quest_shop (invisible/not on a map)
     

    Then the error occur in server.

    Anyone please guide me to fix this problem..

    Thousand of THANKS!

  6. Hi there, Im trying to make it duplicate npc but it doesn't work.

    Please guide me what to do.

    Thanks!

    -    script    Tools Dealer::Tools Dealer    -1,{
    OnAtShopCmd:
    	mes "How are you?";
    	mes "What do you like to buy?";
    	switch( select( "Ammunition Box", "Single Ammo", "Identify My Items", "Nothing" ) ) {
    	next;
    	case 1:
    		callshop "AmmunitionBox",1;
    		end;
    	case 2:
    		callshop "SingleAmmo",1;
    		end;
    	case 3:
    		mes "Here you go";
    		callfunc "identify123";
    		end;
    	case 4:
            mes "Okay, have a nice day";
            close;        
    	}
    end;
    
    OnInit:
    	bindatcmd "shop",strnpcinfo(0)+"::OnAtShopCmd",0,99;
    end;
    
    }
    
    -	shop	Tool Dealer#shop::AmmunitionBox	-1,501:-1 // Add ammo box here
    -	shop	Tool Dealer#shop::SingleAmmo	-1,502:-1 //single ammo add here
    
    function	script	identify123	{
            getinventorylist;
                while( .@idn < @inventorylist_count ){
                    if ( !@inventorylist_identify[.@idn] ){
                        delitem2 @inventorylist_id[.@idn],1,0,0,0,0,0,0,0;
                        getitem @inventorylist_id[.@idn],1;
                    }
                    .@idn++;
                }
    close;
    }
    
    prontera,163,188,5    duplicate(Tools Dealer)    Tools Dealer#prt    811
    geffen,129,66,4    duplicate(Tools Dealer)    Tools Dealer#gef    811

     

  7. 1 minute ago, latios said:

    @ahloi007 There is this StackOverflow answer but I believe there is also nice short video example here: 

    But I recommend learning about what a "diff" is and how they work:

    Yes...!! thats just awesome! thanks 

  8. On 3/23/2020 at 1:12 AM, latios said:

    Hi all,

    I've taken the time to update this script and tested it on my server running latest version of rAthena (version at the time of writing Git Hash: f8d5d45).

    Additional Changes

    • NPC name can now be easily customised by replacing 2nd argument in the function call at the bottom of npc/custom/etc/costume.txt
    • NPC checks whether the user already has the same item being restored equipped or in inventory and will prevent restoring.
    • Fixed/tweaked some typos and grammar for the NPC dialogue and atcommand messages.
    • costume.txt has been included inside the diff

    Screenshot

    screenChocobotRO010.thumb.jpg.a0ff6db06ffca4f21dbed55d3e6b69b9.jpg

    Costume_System_v2.diff 14.63 kB · 27 downloads

    Edit: I actually just discovered that the wonderful secretdataz had already updated the diff to work with newer versions of rAthena here (https://github.com/secretdataz/rathena/pull/8/files). The main differences to my edit is secret's also handles costuming garments and there is atcommand documentation. The diff I have uploaded comes with an updated NPC script.

    Hi latios,

    I failed to upload the "Costume System v2.diff", would you please guide me the step??

    Thanks!

  9. 11 hours ago, kodkodkub said:

    If there's no error in console
    that's mean Effect is working
    I think +% Atk doesnt show number in Status Window
    you need to test your damage in-game by yourself to see if it working or not

    Which mean it will not increase the amount of ATK in the Status but will shown differences on the damage when attacking the mob?

    Im right? 

  10. Hi guys!!

    I need help on  this, hope someone can give a guide to me ?

    when I write this code "bonus bAtkRate,3; " into my item_db.txt  and @reloaditemdb the effect doesn't add on ATK + 3%

    30060,White_Supreme_Dragon_Helm,White_Supreme_Dragon_Helm,4,1000,,200,,2,,1,0xFFFFFFFF,7,2,256,,0,1,1552,{ bonus bAtkRate,3; },{},{}

    May I know whats the problem?

    Sorry for my bad english.

  11. 2 minutes ago, sader1992 said:
    
    prontera,0,0,0	script	npc_name	444,{
    	if($MAX_LEVEL_REWARDS_50 < 50){
    		if(!#MAX_LEVEL_REWARDS_50){
    			if(BaseLevel == 99){
    				mes "you can redeem the reward once per account!";
    				if(select("redeem with this char:close") == 2)
    					end;
    				#MAX_LEVEL_REWARDS_50 = true;
    				$MAX_LEVEL_REWARDS_50++;
    				mes "you got the reward!";
    				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
    				//===========================
    				getitem 502,1;//add what you want to give like this.
    				
    				//===========================
    				close;
    			}else{
    				mes "you are not at the max level!";
    				close;
    			}
    		}else{
    			mes "you alewady redeemed the reward with another char!";
    			close;
    		}
    		
    	}else{
    		mes "All the rewards has been redeemed!";
    		close;
    	}
    }

     

    Okay Got it xD 

    TQVM!!

  12. 11 minutes ago, sader1992 said:

    replace 

    
    MAX_LEVEL

    with a number , the max level you have 

    for example if 99

    
    prontera,0,0,0	script	npc_name	444,{
    	if($MAX_LEVEL_REWARDS_50 < 50){
    		if(!#MAX_LEVEL_REWARDS_50){
    			if(BaseLevel == 99){
    				mes "you can redeem the reward once per account!";
    				if(select("redeem with this char:close") == 2)
    					end;
    				#MAX_LEVEL_REWARDS_50 = true;
    				$MAX_LEVEL_REWARDS_50++;
    				mes "you got the reward!";
    				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
    				//===========================
    				getitem 502,1;//add what you want to give like this.
    				
    				//===========================
    			}else{
    				mes "you are not at the max level!";
    				close;
    			}
    		}else{
    			mes "you alewady redeemed the reward with another char!";
    			close;
    		}
    		
    	}else{
    		mes "All the rewards has been redeemed!";
    		close;
    	}
    }

     

    The npc works! thanks!

    but I found a bug, when I was succeed to redeem, it stuck at the npc chat box there without a "close" button.

    Should I add on 

    				mes "you got the reward!";
    				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
    				//===========================
    				getitem 502,1;//add what you want to give like this.
    				close;

     

  13. 1 hour ago, sader1992 said:
    
    prontera,0,0,0	script	npc_name	444,{
    	if($MAX_LEVEL_REWARDS_50 < 50){
    		if(!#MAX_LEVEL_REWARDS_50){
    			if(BaseLevel == MAX_LEVEL){
    				mes "you can redeem the reward once per account!";
    				if(select("redeem with this char:close") == 2)
    					end;
    				#MAX_LEVEL_REWARDS_50 = true;
    				$MAX_LEVEL_REWARDS_50++;
    				mes "you got the reward!";
    				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
    				//===========================
    				getitem 502,1;//add what you want to give like this.
    				
    				//===========================
    			}else{
    				mes "you are not at the max level!";
    				close;
    			}
    		}else{
    			mes "you alewady redeemed the reward with another char!";
    			close;
    		}
    		
    	}else{
    		mes "All the rewards has been redeemed!";
    		close;
    	}
    }

     

    Hi sader, thanks for your reply.

    This script doesn't work when I was redeem with my max level character,

    it said that "you are not at the max level!"

    What should I do?

    Sorry Im still in learning stage.

  14. Quote

    [Error]:  Loading NPC file: npc/custom/bk/BotKiller6.txt
    script error on npc/custom/bk/BotKiller6.txt line 553
        parse_line: expect command, missing function name or calling undeclared func                                                                                                             tion
       548 :                sc_start SC_FREEZE,1000000,10;
       549 :                sc_start SC_STUN,1000000,10;
       550 :                sc_start SC_SLEEP,1000000,10;
       551 :                sc_start SC_SILENCE,1000000,10;
       552 : //             pcblockmove getcharid(3),1;
    *  553 :                'p'cblock getcharid(3),1;
       554 :                specialeffect2 135;
       555 :                getmapxy @BKMap$,@BKX,@BKY,0;
       556 :        } else {
       557 :                setoption 0x40,0;
       558 :                setoption 0x2000,0; // Ruwach
    [Warning]: Usage of deprecated constant 'E_SOB'.
    [Warning]: This constant was deprecated and could become unavailable anytime soo                                                                                                             n.
    [Warning]: Please use 'ET_CRY' instead!
    [Warning]: Usage of deprecated constant 'E_SOB'.
    [Warning]: This constant was deprecated and could become unavailable anytime soo                                                                                                             n.
    [Warning]: Please use 'ET_CRY' instead!
    [Info]: Done loading '12892' NPCs:
            -'3060' Warps
            -'215' Shops
            -'9617' Scripts
            -'3911' Spawn sets
            -'40470' Mobs Cached
            -'0' Mobs Not Cached
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: script debug : 0 110012876 : MySQL Variable System - Creating `altreg`                                                                                                              table ...
    [Debug]: script debug : 0 110012877 : Multi-language System: Creating table `bk6                                                                                                             _npc`...
    [Debug]: script debug : 0 110012877 : Multi-language System: Creating table `bk6                                                                                                             _talk`...
    [Debug]: script debug : 0 110012877 : Multi-language System: Creating table `bk6                                                                                                             _lang`..
    [Debug]: script debug : 0 110012877 : Multi-language System:  Creating default l                                                                                                             anguages...
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: (buildin_mapwarp) mapindex_name2id: Map "" not found in index list!
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_config`..                                                                                                             .
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating default configuratio                                                                                                             n...
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_module`..                                                                                                             .
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_logs`...
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_cutin`...
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating default cutins for i                                                                                                             nterrogations.
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_staff`..
    [Debug]: script debug : 0 110012880 : BotKiller 6: Creating table `bk6_maps`..
    [Debug]: script debug : 0 110012880 : BotKiller 6: Loading configuration...
    [Debug]: script debug : 0 110012880 : BotKiller 6: Processing 16 parameter(s)...
    [Debug]: script debug : 0 110012880 : BotKiller 6: 16 parameter(s) loaded
    [Debug]: script debug : 0 110012880 : BotKiller 6: Loading map ignore list...
     

    Can anyone help me with this?

    I have already follow the instruction but still get error.

×
×
  • Create New...