After updating the rAthena version, I encountered a problem with some old Zephyrus Housing System scripting functions.Error:
[Warning]: script: buildin_getmapxy: Invalid type 0.
[Debug]: Source (NPC): Piano#Rb1 at rentinb1 (19,15)
[Warning]: script: buildin_getmapxy: Invalid type 0.
[Debug]: Source (NPC): Interruptor PvP#Rb1 at rentinb1 (23,21)
Script:
Spoiler
//============================================================ //= PVP Interruptor PvP//============================================================
rentb1,23,21,3 script InterruptorPvP#Rb1 837,{ callfunc "rent_pvp"; }//============================================================ //= Function to control the pvp switch.//============================================================
function script rent_pvp {if(getmapxy(@mapa$,@mapx,@mapy,0,strcharinfo(0))!=0) end;
mes "[Interrupter PvP]";
mes "What do you want to do?";
next;
menu "- Turn on PvP",L_PvpOn,"- Turn off PvP",L_PvpOff,"Cancel",-;
mes "[Interruptor PvP]";
mes "Ok, come back when you wish.";
close;
L_PvpOn:
mes "[Interrupter PvP]";
mes "PvP has been enabled. Get ready for the fight!";
pvpon @mapa$;
close;
L_PvpOff:
mes "[Interrupter PvP]";
mes "PvP has been disabled.";
pvpoff @mapa$;
close;}//============================================================ //= Piano//============================================================
rentinb1,19,15,0 script Piano#Rb1 111,{ callfunc "rent_pianoStart","b1"; OnTimer50000: callfunc "rent_pianoStop","b1"; }//============================================================ //= Function for the piano//= (id of House)//============================================================
function script rent_pianoStart {if(getmapxy(@mapa$,@mapx,@mapy,0,strcharinfo(0))!=0) end;
mes "[Automatic piano]";if(getd("$@Piano"+ getarg(0))>0){
mes "Wait a while for the song to finish or when the piano is ready again.";
close;}
mes "Please choose the song you want:";set@Tema, select ("Song 01","Chaos of Eternity","Song 03","Song 04","Bragis Poem","Song 06","Ring of Nibelungen","Song 08","Song 09","Song 10","Dont Forget Me Not","In To The Abyss","Song 13","Assassin of Sunset","Song 15","Song 16","Song 17","Song 18","Song 19","None");if(@Tema>=20) close;if(@Tema<10)set@Tema$,"m0"+@Tema+".wav";elseset@Tema$,"m"+@Tema+".wav";
close2;if(getd("$@Piano"+ getarg(0))<=0){// Sonar el Tema Elegido
setd "$@Piano"+ getarg(0),1;// Reproduciendo
initnpctimer;switch(@Tema){case14: soundeffectall "assassin_of_sunset.wav",1,@mapa$,0,0,50,50;break;case12: soundeffectall "in_to_the_abyss.wav",1,@mapa$,0,0,50,50;break;case11: soundeffectall "dont_forget_me_not.wav",1,@mapa$,0,0,50,50;break;case7: soundeffectall "ring_of_nibelungen.wav",1,@mapa$,0,0,50,50;break;case5: soundeffectall "bragis_poem.wav",1,@mapa$,0,0,50,50;break;case2: soundeffectall "chaos_of_eternity.wav",1,@mapa$,0,0,50,50;break;default: soundeffectall @Tema$,1,@mapa$,0,0,50,50;break;}}
end;}
function script rent_pianoStop {
emotion ET_SLEEPY;
stopnpctimer;
setd "$@Piano"+ getarg(0),0;// Finishes the song
end;}
Question
hardelite
Good afternoon ladies and gentlemen!
After updating the rAthena version, I encountered a problem with some old Zephyrus Housing System scripting functions.Error:
[Warning]: script: buildin_getmapxy: Invalid type 0. [Debug]: Source (NPC): Piano#Rb1 at rentinb1 (19,15) [Warning]: script: buildin_getmapxy: Invalid type 0. [Debug]: Source (NPC): Interruptor PvP#Rb1 at rentinb1 (23,21)
Script:
Could someone help me solve them? Please.
In advance, thank you very much.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.