Jump to content

Gidz Cross

Members
  • Posts

    464
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Gidz Cross

  1. On 3/25/2021 at 2:22 PM, Forshaken said:

    @Mabuhay . I was able to update this src but there is some kind of memory leak issue after updating it.

    Hi Guys! I manage to update the src but there is a memory leak issue after updating and fixing it is out of my skills. Use it at your own risk. Please do share your src if you manage to fix the memory leak issue.

    marketclone.txt 19.83 kB · 25 downloads

    How do you encounter the memory leak? Is it by @mapexit when marketclones still active? If thats the case i would say its normal. Try on your local. Set @market then @mapexit. You will see the memory leak.

    To fix i guess you need to properly shutdown your server by using @kickall then followed by @mapexit.

  2. Heya! Anyone have this map? I mean yea we have it on the data.grf. But that doesnt work for me.
    image.png.d66b273a0b24869e77ab6d43ad260330.pngimage.png.6c5b8241d6d545945df0d5ee98c7e011.pngimage.png.3f723ab64566f0402f31e25e9f3faf53.png

    I experienced this problem before. In verrus01 map i think. Im using 2018 client. Thanks!

  3. On 3/21/2022 at 3:40 PM, sader1992 said:

    you can , just put it out of the script (same as the other functions in the Global_Functions file)

    change

    function	<name>	{

    to be

    function	script	<name>	{

    now you can reuse it without adding it to every script you make

    Awesome. Will conduct some test.

  4. Hello rathena peeps. I already have working @afk on my server. But i forgot to make a diff out of it so its with my custom src already. But my question is how can i make restriction to @recall / @recallall with people who uses my @afk command?

    My @afk command will lets go close your client and your character will remain online. Its basically like all other @afk in the forums. It behaves like @autotrade.

    Saw this on my atcommand.c under @recall command

    if( pc_setpos(pl_sd, sd->mapindex, sd->bl.x, sd->bl.y, CLR_RESPAWN) == SETPOS_AUTOTRADE ){
    	clif_displaymessage(fd, msg_txt(sd,1025)); // The player is currently autotrading and cannot be recalled.

    This is the restriction when recalling players with autotrade state.

    Can anybody help? Thanks!

  5. Sorry for necrobumping this post @sader1992. Just a quick question. I have 2 to 5 NPC that uses this awesome mod of yours. What i did was for every txt file of the NPC. I always include the function.

    	function	cutin2	{
    		freeloop(true);
    		[email protected]$ = getarg(0);
    		[email protected]$ = getarg(1);
    		[email protected] = getarg(2);
    		[email protected] = getmapunits(BL_PC,[email protected]$,[email protected]);
    		for([email protected]=0;[email protected]<[email protected];[email protected]++){
    			cutin([email protected]$,[email protected],convertpcinfo([email protected][[email protected]],CPC_CHAR));
    		}
    		return;
    	}
    	
    	function	cutin3	{
    		freeloop(true);
    		[email protected]$ = getarg(0);
    		[email protected] = getarg(1);
    		[email protected] = getunits(BL_PC,[email protected]);
    		for([email protected]=0;[email protected]<[email protected];[email protected]++){
    			if(([email protected] = convertpcinfo([email protected][[email protected]],CPC_CHAR)))
    				cutin([email protected]$,[email protected],[email protected]);
    		}
    		return;
    	}

    Can i just add this to Global_Functions instead? Sorry im not at home so i cannot test.

  6. 6 hours ago, Redao said:

    Did you manage to solve this question of the two skills? Is there a way to remove the first one that is unusable? In this case, it's just a visual effect. The NPC is working, but that visual issue can confuse players.

    Did you manage to solve this question of the two skills? Is there a way to remove the first one that is unusable? In this case, it's just a visual effect. The NPC is working, but that visual issue can confuse players.

    Nope. The visual bug is there. But still a very good mod.

  7. On 9/10/2021 at 12:57 AM, Easycore said:

    Also check stat point part

    npcskill <skill id>,<skill lvl>,<stat point>,<NPC level>;

    https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L8469

    Confirmed. This works. 🙂 Thank you!!!

     

    Only the Flying Sidekick remains. Hehehe!

    image.png.6f3f3387f2efddc2e72095ca2eede8eb.png

    Oh yea.. I also noticed that i can copy 2 skill. The other skill is not usable tho. And upon character select, it will removed.

  8. 1 hour ago, Easycore said:

    Increase the values in

    		setunitdata(getnpcid(0),UNPC_ATKMIN,100);
    		setunitdata(getnpcid(0),UNPC_ATKMAX,200);

    Also check stat point part

    npcskill <skill id>,<skill lvl>,<stat point>,<NPC level>;

    https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L8469

    What i did was add int onto it.
     

    setunitdata(getnpcid(0),UNPC_DEX,300);
    setunitdata(getnpcid(0),UNPC_INT,100);
    setunitdata(getnpcid(0),UNPC_ATKMIN,100);
    setunitdata(getnpcid(0),UNPC_ATKMAX,200);
    getmapxy(.map$,.x,.y,BL_NPC);

    i will check the stat point part. Thanks!

  9. On 9/6/2021 at 6:02 AM, Easycore said:

    I have made my own Plagiarism NPC last week. Hope it helps you.

    //===== rAthena Script =======================================
    //= Plagiarism NPC
    //===== By: ==================================================
    //= Easycore
    //===== Last Updated: ========================================
    //= 20210905
    //===== Description: ========================================= 
    //= Simple Plagiarism Skill
    //= Require 'getskillname' script command:
    //=    https://rathena.org/board/files/file/4307-script-command-getskillname/
    //============================================================
    
    prontera,150,150,3	script	Plagiarism NPC	747,{
    	mes "[ ^FF0000Plagiarism Master^000000 ]";
    	if (.plag_skill && !getskilllv("RG_PLAGIARISM")) {
    		mes "You must have Plagiarism learned.";
    		close;
    	}
    	mes "Heya ^FFA500"+strcharinfo(0)+"^000000!";
    	mes "Do you want to copy a skill?";
    	if (.zeny)
    		mes "My service costs ^FF0000"+.zeny+" Zeny^000000.";
    	if (select("~ Proceed","Cancel") == 2) close;
    	if (.zeny > 0 && Zeny < .zeny) {
    		message(strcharinfo(0),"Not enough Zeny.");
    		close;
    	}
    	.@menu$ = "";
    	.@f = getarraysize(.SkillID);
    	for(.@i = 0; .@i < .@f; .@i++)
    		.@menu$ += getskillname(.SkillID[.@i])+(.@i==.@f?"":":");
    	.@s = select(.@menu$) - 1;
    	close2;
    	if (.zeny > 0 && Zeny < .zeny)
    		end;
    	if (.zeny > 0)
    		Zeny -= .zeny;
    	npcskill .SkillID[.@s],.SkillLV[.@s],20,200;
    	sleep2 1500;
    	unitwarp getnpcid(0),.map$,.x,.y;
    	end;
    
    	OnInit:
    		//Default NPC Data Values
    		setunitdata(getnpcid(0),UNPC_DEX,300);
    		setunitdata(getnpcid(0),UNPC_ATKMIN,100);
    		setunitdata(getnpcid(0),UNPC_ATKMAX,200);
    		getmapxy(.map$,.x,.y,BL_NPC);
    
    		//Configuration
    		//Zeny required? Set 0 to disable it
    		.zeny = 25000;
    		//Must Plagiarism skil be learned? (1. Yes | 0. No)
    		.plag_skill = 1;
    		//Skill ID Array
    		setarray .SkillID[0],263,13, 7,14,19,20,21,83,84,85,86,89,90,91,421,534,536,537,540,542;
    		//Skill LV Array
    		setarray .SkillLV[0], 10,10,10,10,10,10,10,10,10,10,10,10,10,5,   7, 10,  5, 10, 19,  5;
    		end;
    }

    PS: It requires 'getskillname' script command to work.

     

    Cool script! Thanks! But i found a problem concerning SOUL STRIKE, LORD OF VERMILLION and FLYING SIDE KICK. My server settings is 255/120. Im using @statall which would give me 255 to all stats. Those skills are going to miss. I tried normal builds but its still the same. Tried adding INT to the NPC stats i guess it works but the damage will become stronger. Any thoughts?

  10. 1 hour ago, Farrell said:

    Hello everyone, I'm making a server and I want to do it progressively, starting from the first patch and moving forward, can someone explain to me how I'm progressing with the patches, how can I update? Thank you.

    image.png

    Well we have patchers out there and the popular one is the Thor Patcher. From the tools there you will be able to push updates to your players. 

    You can found more at
    rathena-wiki/Thor_Patcher.md at master · cydh/rathena-wiki (github.com)

    Some google searches
    Setup Thor Patcher - Mga Guides at Tips - rAthena
    Making a patch in Thor Patcher with GRF - Knowledgebase - GoManilaHost.Net Web Services

    To do this, your server should be live. What does it mean? It means your server should be online.

  11. 2 hours ago, norightinfo said:

    Thank you for answer on this one, What happen is that I used an existing Costume (Upper) and tried to relocate the postion from Upper to Shadowgear Armor, however it doesn't seem to work (probably because of the sprite position which conflicts with another Costume (Upper) headgear. 

    I can however reused the Costume (Lower) since it doesn't conflict much as well as adding hateffect trick.

    It should work. Refer to this guideline for positions:
     

    Quote

    //1 = Lower headgear   
    //2 = Right hand    
    //4 = Garment/Robe     
    //8 = Accessory 1  
    //16 = Armor     
    //32 = Left hand     
    //64 = Shoes   
    //128 = Accessory 2    
    //256 = Upper headgear    
    //512 = Middle headgear    
    //1024 = Costume Upper headgear  
    //2048 = Costume Middle headgear 
    //4096 = Costume Lower headgear   
    //8192 = Costume Garment/Robe

     

×
×
  • Create New...

Important Information

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