Jump to content

Gouki

Members
  • Posts

    241
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Gouki

  1. Hi All,

    Just want to ask if there's a correct or newer way of updating map_cache on new rAthena?

    From experience, usually like updating new izlude to old izlude, just drag and drop the old .gat file to pre/map_cache and you're good to go, of course needs to update client files as well.

    same goes with pvp_y_1-2 / pvp_y_2-2. before I just rename old izlude's files to the corresponding pvp maps and update pre/map_cache. 

    Right now when I do these steps, instant crash upon entering the map. Is my method the correct way or files must be extracted from browedit for it to work?

  2. Hi guys,

    Is it possible to make *bonus script work on OnPCLoginEvent and OnPCLogoutEvent? Basically what I want is it gives bonus stat upon login based on character variable set.

    ---------------------------------------
    
    *bonus <bonus type>,<val1>;
    *bonus2 <bonus type>,<val1>,<val2>;
    *bonus3 <bonus type>,<val1>,<val2>,<val3>;
    *bonus4 <bonus type>,<val1>,<val2>,<val3>,<val4>;
    *bonus5 <bonus type>,<val1>,<val2>,<val3>,<val4>,<val5>;
    
    These commands are meant to be used in item scripts. They will probably work
    outside item scripts, but the bonus will not persist for long. They, as
    expected, refer only to an invoking character.
    
    You can find the full list of possible bonuses and which command to use for each
    kind in 'doc/item_bonus.txt'.
    
    ---------------------------------------


    I have tried using *statusup2, it works but it falls under the base status of the character which I would want it to be on the + side of the stats. and If I change it to Bonus instead of statusup2, nothing happens.
     

    ---------------------------------------
    
    *statusup2 <stat>,<amount>{,<char_id>};
    
    This command will change a specified stat of the invoking character by the
    specified amount permanently. The amount can be negative. See 'statusup'.
    
    	// This will decrease a character's Vit forever.
    	statusup2 bVit,-1;
    ---------------------------------------


    Code runs something like --
     

    -	script	abcdefg	-1,{
    
    OnPCLoginEvent: 
    	if (#vit_up == 1) statusup2 bVit,30;
    end;
    	
    OnPCLogoutEvent: 
    	if (#vit_up == 1) statusup2 bVit,-30;
    end;
    }


    Further research, there are couple of scripts I found however requires OnPCStatCalcEvent which I think is removed already around 2020 githash. --> 
    Sample script that uses bonus script command from @Emistry on link below

    Removed on June 6, 2020 -> https://github.com/rathena/rathena/issues/2450#issuecomment-639630185

     

  3. Hi, Does anyone know what does this error mean or how to fix it? there's no much information in search about npc_dynamicpc_removal_timer.

    image.png.9aab068b15960b5ad6dd27b7a7cfdc73.png
     

      

    -	script	asdsadsada	-1,{
    
    	if($MvPTreasure){ message strcharinfo(0),"The system has been disabled by a gm!"; end; }
    	
    	getmapxy(.@m1$,.@x1,.@y1,BL_PC);
    	getmapxy(.@m2$,.@x2,.@y2,BL_NPC);
    	
    	if(distance(.@x1,.@y1,.@x2,.@y2) > 2){ message strcharinfo(0),"You are too far away!"; end; }
    	
    	explode(.@npcinfo$,strnpcinfo(2),"_");
    	if(@OpBox$ == strnpcinfo(2)){ message strcharinfo(0),"You are already opening this box!"; end; }
    	else if(@OpBox$ != ""){ dispbottom "You can only open one box at a time!"; end; }
    	if(getd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"")){ dispbottom "Another player is opening box!"; end; }
    	
    	if((atoi(.@npcinfo$[5])-gettimetick(2))>=1)
    	{
    		if(getcharid(0) != atoi(.@npcinfo$[1]))
    		{
    			if(strcharinfo(1) != getpartyname(atoi(.@npcinfo$[0])))
    			{				
    				dispbottom "This chest is not yours, only the owner "+(getpartyname(atoi(.@npcinfo$[0])) != "null"?"and the group ("+getpartyname(atoi(.@npcinfo$[0]))+") they can":"can")+" open it!";
    				dispbottom "The chest will become unowned in ["+(atoi(.@npcinfo$[5])-gettimetick(2))+" seconds]";
    				end;
    			}
    		}
    	}
    	
    	getmapxy(.@map$,.@x,.@y,BL_PC);
    	set @OpBox$,strnpcinfo(2);
    	set @OpVar$,".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"";
    	setd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"",1);
    	set .@t,atoi(.@npcinfo$[4]);
    	set .@time,(.@t==3?25:.@t==2?20:.@t==1?15:10);
    	
    	message strcharinfo(0),"Opening...";
    	hateffect $MvPTRE_HTEID[0],0;
    	hateffect $MvPTRE_HTEID[1],0;
    	hateffect $MvPTRE_HTEID[2],0;
    	hateffect $MvPTRE_HTEID[3],0;
    	hateffect (.@t==3?$MvPTRE_HTEID[3]:.@t==2?$MvPTRE_HTEID[2]:.@t==1?$MvPTRE_HTEID[1]:$MvPTRE_HTEID[0]),1;
    	
    	while(.@time > -1)
    	{
    		getmapxy(.@map2$,.@x2,.@y2,BL_PC,strcharinfo(0));		
    		if(.@map$ != .@map2$ || .@x != .@x2 || .@y != .@y2){ .@time = -1; .@fail = 1; @OpBox$ = ""; }
    		else set .@time,.@time-1;	
    		if(.@time > -1) sleep2 1000;
    	}
    	
    	hateffect (.@t==3?$MvPTRE_HTEID[3]:.@t==2?$MvPTRE_HTEID[2]:.@t==1?$MvPTRE_HTEID[1]:$MvPTRE_HTEID[0]),0;
    	if(.@fail){ message strcharinfo(0),"Unable to open the Treasure Box."; setd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"",0); end; }

     

  4. Hi All,

    Does anyone have a latest / 2021 compatible files of the OLD payon or morocc? the ones on the downloads section seems to be not compatible anymore.

    Or maybe it is compatible, does anyone know why it crashes?

    Installation done:
    Replace old payon/morocc RSW/GAT/GND files on the data folder just to test out and it crashes, tried applying map_cache, works fine on NEW payon but of course with not matching walkable cells. so brings me to conclusion that it is not compatible?

  5. I've setup quite a few servers now following different guides using older revs. Due to curiosity of the new features and what not. seems like the connections are hard coded already on the newer revs?

    image.png.24658dd7bad4322790b59cb14d3711c4.png

    I have my inter_athena.conf setup correctly and it seems like something is overwriting my own database name to ragnarok, or previously I do use root as a username and now its like forced or being overwritten to use ragnarok.

    Are the guides now outdated and must follow the guide on our wiki?
    Install MySQL · rathena/rathena Wiki · GitHub

    I found alot of suggestions saying this fix
     

      CREATE USER 'ragnarok'@'localhost' IDENTIFIED BY 'ragnarok';
      GRANT ALL PRIVILEGES ON ragnarok.* to 'ragnarok'@'%' IDENTIFIED BY 'ragnarok';
  6. correct, Aegis name could be anything it should not be duplicated with any other item within your active DB, else it will result to an error. This is like a server ID and must be 1:1.

     

    identifiedResourceName  and view/class id are the ones only needed to be matched so you'd get a successful duplicate.

  7. 2 hours ago, cook1e said:

    Sorry what I meant was, if the Map, X, and Y is not specified, like the example on re/merchants. where can this data/npc located in game? is there an official barter NPC or command to access this in game if the map/location of npc is not set manually?

    - Name: shop_sp_cor
        Items:
          - Index: 0
            Item: Teleport_Ep17_01
            RequiredItems:
              - Index: 0
                Item: EP17_1_EVT02
                Amount: 1
              - Index: 1
                Item: Hat_
                Amount: 1
                Refine: 7
              - Index: 2
                Item: Dagger_
                Amount: 1
                Refine: 10
              - Index: 3
                Item: Jellopy
                Amount: 100

     

    • Like 1
×
×
  • Create New...