crazyarashi

Quests, Games: Illusion Moonlight

Recommended Posts

Posted (edited)

@crazyarashi I found 2 problems but only 1 I solved it:

Quote

[Warning]: Usage of deprecated constant 'UNITTYPE_PC'.

1) at line 1157, change:
getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
with:
getmapxy([email protected]$,[email protected],[email protected],BL_PC);

-------------------------------------------------------------------------------

Quote

[Error]:  Loading NPC file: npc/custom/quests/Illusion_Moonlight.txt
script error on npc/custom/quests/Illusion_Moonlight.txt line 307
    parse_line: expect command, missing function name or calling undeclared function
   302 :                mes "[ Muyeon ]";
   303 :                mes "If you're looking for the teacher, she's in the other room.";
   304 :                close;
   305 :        }
   306 :        if(illusion_moonlight == 2){
*  307 :                'p'cblockall getcharid(3),1;
   308 :                sleep2 2000;
   309 :                npctalk "Whatever you say, I'm not doing it anymore.","Muyeon#moonlight_in",bc_self;
   310 :                sleep2 2000;
   311 :                npctalk "This is the third time I had nightmares. I can't take it anymore!","Muyeon#moonlight_in",bc_self;
   312 :                sleep2 2000;
 

2) I don't know how to solve this problem with the undeclared fuction "pcblockall"... any suggestions?
edit: I need to make this patch posted by @joecalis ? 

 

Edited by CyberDevil

Share this post


Link to post
Share on other sites
21 hours ago, CyberDevil said:


Oh, I made this script sometime ago. so I havent updated it to the new getmapxy and using my personal pcblockall command. but using that diff should work since the pcblockall base came from that diff.

Share this post


Link to post
Share on other sites
Posted (edited)

ok thank you @crazyarashi , I'll try to install the diff now... another thing, when you go to the bottom left of the map to kill the Wizard (ID: 3764 in map pay_d03_i,55,75), this just reborn immediately without a pause between his death and rebirth... Is it possible to insert a respawn timer of 1-2 minutes from his death and how can I do it?

-	script	illusion_mob#moonlight	-1,{
	OnInit:
		monster "pay_d03_i",0,0,"Angry Nine Tail",3759,15,strnpcinfo(0)+"::OnSummonMVP";
		monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard";
		end;
		
	OnSummonMVP:
		monster "pay_d03_i",0,0,"Angry Nine Tail",3759,1,strnpcinfo(0)+"::OnSummonMVP";
		$illusion_mvp += 1;
		if($illusion_mvp == 1000){
			mapannounce "pay_d03_i","Angry Moonlight Flower : Who dares bully us again? They're in a lot of trouble.",bc_map;
			getmapxy(.@map$,.@x,.@y,BL_PC);
			monster "pay_d03_i",.@x,.@y,"Angry Moonlight Flower",3758,1;
			$illusion_mvp = 0;
		}
		end;
		
	OnSummonWizard:
		monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard";
		end;
}

 

Edited by CyberDevil

Share this post


Link to post
Share on other sites

does this work with the newest rathena? i've never used a .c to add a quest

Share this post


Link to post
Share on other sites
Posted (edited)

I have the last rAthena and work only if you make this patch/dif:
https://rathena.org/board/applications/core/interface/file/attachment.php?id=20477
taked here: 

...and need to change this:
getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
with:
getmapxy([email protected]$,[email protected],[email protected],BL_PC);

Edited by CyberDevil

Share this post


Link to post
Share on other sites
Posted (edited)

thanks  i think i got it working

Edited by care1190

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...