Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×

Gouki

Members
  • Posts

    261
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Gouki

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

     

  2. 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; }

     

  3. 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?

  4. 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';
  5. 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.

  6. 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
  7. Update...

    Played a with the diff settings and placed load custom clientinfo.xml to enabled and direct it to clientinfo.xml, together with other bunch of options, and now its working fine, even the font on the login screen fixed itself.

    image.thumb.png.9976ec64b3e6a318dd588647d9f65293.png

    Just now, Echoes said:

    Hello,

    I would suggest you change the servicetype to 'america' and servertype to 'primary', see if that works.

    Are you using RAGEXE or RAGEXERE?

    I tried placing it back servicetype to 'america' as this is normally what I use, but placing servertype to 'primary' doesn't really let me launch the client.
    I'm using RAGEXE I believe -> http://nemo.herc.ws/clients/2021-11-03_Ragexe_1635926200/

    should I use RAGEXE or RAGEXERE? I'll be using this for a pre-renewal settings, just want to try and infuse new RO features to pre-renewal style server.

    this link is from a comment of akkarin on this post.

  8. A little progress..

    I removed some ignore error diff on the client and got a prompt of Incorrect Servertype, so  I changed Servertype Primary to Sakray and the client is now going through.

    Now the problem is that, the client is not connecting to the Server, I tried creating an account using _m (yes it is activated server side), but it instantly pops up to Failed to Connect to Server. Rechecked, if the ports are opened on the VPS and it is the 3 ports are opened.. Now I'm not sure what I'm missing of if it's a misconfiguration. The server is starting fine without errors.

    Here's my clientinfo.xml
     

    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
    	<desc>Ragnarok Client Information</desc>
    	<servicetype>korea</servicetype>
    	<servertype>sakray</servertype>
    	<connection>
    		<display>Local</display>
          		<address>VPS IP</address>
          		<port>6900</port>
          		<version>55</version>
          		<langtype>1</langtype>
    		<registrationweb>www.ragnarok.com</registrationweb>
    		<loading>
    			<image>loading00.jpg</image>
    			<image>loading01.jpg</image>
    			<image>loading02.jpg</image>
    			<image>loading03.jpg</image>
    			<image>loading04.jpg</image>
    			<image>loading05.jpg</image>
    			<image>loading06.jpg</image>
    		</loading>
       	</connection>
    </clientinfo>


    Here's my opened ports..
    image.png.b8d1d3aa496a203e24f548604eb5fa30.png

     

    Here's the client now..
    image.thumb.png.524d35450315c0da13b01356620da3dc.png

  9. Hi all,

    I'm currently trying the recommended client of rathena, I have also diffed it already.

    The issue: When you open the client, and after the run as admin prompt, nothing happens. no error messages. It just doesn't go through to open the exe.

    What could be the issue?

×
×
  • Create New...