Jump to content
crazyarashi

Quests, Games: Illusion Moonlight

Recommended Posts

@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
Link to comment
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.

  • Love 1
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

when i use the database and use @item command i think the item itself is not implemented in-game, even though i insert it to import folder how do i fix it?

Link to comment
Share on other sites

I have fixed the instant respawn of the Wizard (ID 3764)...
REPLACE:

	OnSummonWizard:
		monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard";
		end;


WITH:

	OnSummonWizard:
		addtimer 60000, strnpcinfo(3) + "::On60secs";
		end;
	On60secs:
		monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard";
		end;

...change "addtimer 60000" (are 60 seconds) with all seconds you need!

 

p.s.: it's correct "strnpcinfo(3)" or "strnpcinfo(0)" in the addtimer command???

Edited by CyberDevil
Link to comment
Share on other sites

@crazyarashi

the 1st quest of illusion moonlight, "Go back and talk to Muyeon inside the Detached Payon Palace. She'll reward you with 5 Illusion Stones and more experience." -> I get no illusion stone when finish quest

daily kill 20 angry soldier and 20 angry ninetail give 2 illusion stone

Edited by Quesooo
Link to comment
Share on other sites

On 7/25/2019 at 8:42 AM, Quesooo said:

@crazyarashi

the 1st quest of illusion moonlight, "Go back and talk to Muyeon inside the Detached Payon Palace. She'll reward you with 5 Illusion Stones and more experience." -> I get no illusion stone when finish quest

daily kill 20 angry soldier and 20 angry ninetail give 2 illusion stone

You can set the exp value you need... search LINE 544

completequest 7788;

Add after:

getitem 25271,5; //= Illusion Stone
getexp 500000,500000;

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

For the daily quests search LINE 892-893

            setquest 7785;
            getitem 25271,1; //= Illusion Stone

and replace with:

            setquest 7785;
            getitem 25271,2; //= Illusion Stone
            getexp 300000,300000;

and search LINE 904-905

            setquest 7787;
            getitem 25271,1; //= Illusion Stone

and replace with:

            setquest 7787;
            getitem 25271,2; //= Illusion Stone
            getexp 300000,300000;

 

Edited by CyberDevil
  • MVP 1
Link to comment
Share on other sites

i can't see those lines, im using search and notepad ++ something change on the script please check.

@CyberDevil if you don't mind where can i see those lines? i can't see it on the script thank you.

Link to comment
Share on other sites

On 7/27/2019 at 8:49 AM, Quesooo said:

@CyberDevil if you don't mind where can i see those lines? i can't see it on the script thank you.

I have write the correct lines in my preview post and in attach there is the file with this modifications

Illusion Moonlight.c

Edited by CyberDevil
  • MVP 1
Link to comment
Share on other sites

I have two issues:

1. Please see attached picture. First complete quest, warp to pay_dun03 145,43 then talk to "Shimmering Portal", it will show the Debug message.

2. Daily quest hunt angry soldiers, I can actually repeat this quest again and again, not like hunt Nine Tails, you need to wait until next day 4:00am.

Can anyone fix this? Thanks.

1.PNG

Edited: I have fixed issue 2, edited quest_db, problem fixed. Issues 1 still show debug message.

Edited by Surefirer
Link to comment
Share on other sites

On 9/5/2020 at 4:01 PM, LearningRO said:

Its from client side not server side

I already managed to fix it, thanks.

On 12/2/2019 at 1:36 AM, Surefirer said:

Tengo dos problemas:

1. Consulte la imagen adjunta. Primero completa la misión, cambia a pay_dun03 145,43 y luego habla con "Shimmering Portal", se mostrará el mensaje de depuración.

2. Búsqueda diaria de soldados enojados, puedo repetir esta búsqueda una y otra vez, no como cazar Nueve Colas, debes esperar hasta las 4:00 am del día siguiente.

¿Alguien puede arreglar esto? Gracias.

1.PNG

Editado: He solucionado el problema 2, editado quest_db, problema solucionado. Los problemas 1 todavía muestran un mensaje de depuración.

i have same problem number 1

Could you fix it?

Link to comment
Share on other sites

[Error]:
script error on npc/custom/roservers/Illusion Moonlight.c line 96
    parse_line: expect command, missing function name or calling undeclared function
    91 :         close;
    92 :        }
    93 :
    94 : OnInit:
    95 :        questinfo 7776,QTYPE_QUEST2;
*   96 :        's'etquestinfo_level 7776,100,175;
    97 :        end;
    98 : }
    99 : payon,167,229,3        script  Elder Jagyeom#illusion_moonlight        4_M_HUOLDARMY,{
   100 :        if(BaseLevel < 100){
   101 :                mes "[ Jagyeom ]";
[Error]:
script error on npc/custom/roservers/Illusion Moonlight.c line 307
    parse_line: expect command, missing function name or calling undeclared function
   302 :        }
   303 :
   304 :
   305 : OnInit:
   306 :        questinfo 7777,QTYPE_QUEST;
*  307 :        's'etquestinfo_req 7777,7776,1;
   308 :        end;
   309 : }
   310 : payon_in03,33,95,3     script  Muyeon#moonlight_in     4_F_TAEKWON,{
   311 :        if(illusion_moonlight < 2){
   312 :                mes "[ Muyeon ]";
[Error]:
script error on npc/custom/roservers/Illusion Moonlight.c line 317
    parse_line: expect command, missing function name or calling undeclared function
   312 :                mes "[ Muyeon ]";
   313 :                mes "If you're looking for the teacher, she's in the other room.";
   314 :                close;
   315 :        }
   316 :        if(illusion_moonlight == 2){
*  317 :                'p'cblockall getcharid(3),1;
   318 :                sleep2 2000;
   319 :                npctalk "Whatever you say, I'm not doing it anymore.","Muyeon#moonlight_in",bc_self;
   320 :                sleep2 2000;
   321 :                npctalk "This is the third time I had nightmares. I can't take it anymore!","Muyeon#moonlight_in",bc_self;
   322 :                sleep2 2000;
[Error]:
script error on npc/custom/roservers/Illusion Moonlight.c line 692
    parse_line: expect command, missing function name or calling undeclared function
   687 :                end;
   688 :        }
   689 :
   690 : OnInit:
   691 :        questinfo 7781,QTYPE_QUEST;
*  692 :        's'etquestinfo_req 7781,7780,1;
   693 :        end;
   694 : }
   695 : pay_d03_i,140,46,0     script  Shimmering Portal#illusion_moonlight_2  4_ENERGY_BLUE,{
   696 :        mes "I can go back to the ruined village.","What should I do?";
   697 :        next;

 

Link to comment
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.



×
×
  • Create New...

Important Information

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