Page 1 of 1

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 6:43 am
by Yandols
Script: Deadly Professor
Writer: Yandols ZeonX
Version: 1.02
Works with: Not Known, not tested.
Desc: Special Spawning NPC
Default Placement: prontera.gat,150,150

An NPC nopihina requested for spawning some custom monsters.
Written by me. :D

Script:
deadly_professor.txt
Show

Code: Select all

//////////////////////////////////////////////////////////////////////
//////////////////////// aERO2 Corp. Scripts /////////////////////////
//////////////////////////////////////////////////////////////////////
////Script:Deadly Professor
////Writer:Yandols ZeonX
////Version:1.02
////Works with:Not Known, not tested.
////Desc:Special Spawning NPC
//////////////////////////////////////////////////////////////////////
////Version Info:
////1.00Initial Release
////1.01Done some trimming and fixed wrong item id at mastering before uploading. XD
////1.02Fixed missing delitem(s)
//////////////////////////////////////////////////////////////////////
////Notes:
////- Requested by Nopihina for use on VooDooRO Private Server
//////////////////////////////////////////////////////////////////////

prontera.gat,150,150,5scriptDeadly Professor#N::mobresetnpc763,{
mes "[Deadly Professor]";
mes "Hello "+strcharinfo(0)+"!!";
mes "  ";//Do not remove - for backwards compatibility
next;
mes "[Deadly Professor]";
mes "Do you want to summon something?";
mes "  ";//Do not remove - for backwards compatibility
next;
menu "Deadly Professor",Lsc1,"Mastering",Lsc2,"Nothing.",Lquit;

Lsc1:
mes "[Deadly Professor]";
mes "To summon^FF0000 Deadly Professor^000000, you will need: ";
mes "- 1000 Handicuffs";
mes "- 45 Laurell Weinder Cards";
mes "- 1 Wizardry Staff[0]";
mes "- ";
next;
menu "OK",Lscs1,"Cancel",Lquit;

Lscs1:
mes "[Deadly Professor]";
mes "Checking...";
mes " ";
if((countitem(7345) < 1000) || (countitem(4350) < 45) || (countitem(1473) < 1)) goto DENYMATERIAL;
delitem 7345, 1000;
delitem 4350, 45;
delitem 1473, 1;
mes "Check complete.";
mes "Alright here you go!";
monster "prontera.gat",150,150,"Deadly Professor",2000,1;
close;


Lsc2:
mes "[Deadly Professor]";
mes "To summon^FF0000 Mastering^000000, you will need: ";
mes "- 100 Mastering Cards";
mes "- 300 Poring Cards";
mes "- ";
next;
menu "OK",Lscr1,"Cancel",Lquit;

Lscr1:
mes "[Deadly Professor]";
mes "Checking...";
mes " ";
if((countitem(4197) < 100) || (countitem(4001) < 300)) goto DENYMATERIAL;
delitem 4197, 100;
delitem 4001, 300;
mes "Check complete.";
mes "Alright here you go!";
monster "prontera.gat",150,150,"Mastering",1090,1;
close;


DENYMATERIAL:
mes "^FF0000Error! It seems that you don't have all of the required items! ^000000";
mes "If you do have all the required items but they are not detected please contact the support team.";
close;

Lquit:
mes "[Deadly Professor]";
mes "Okay come back when you want to summon.";
close;

}

Well, please report any bugs you may find. Thank you.

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 7:04 am
by nopihina
Thanks yandols. I tested them( and added another id num) and it works fine! Unfortunately, the items did not disappear.

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 7:07 am
by Yandols
nopihina wrote:
Tue Sep 08, 2009 11:04 pm
Thanks yandols. I tested them( and added another id num) and it works fine! Unfortunately, the items did not disappear.
Oh! I'll get right onto that.

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 7:11 am
by Yandols
Okay fixed that bug, but i need you to test it since i don't have Ragnarok at home.
Updated attachment as well.

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 7:20 am
by nopihina
Thank you! It works!

[Requested]Deadly Professor

Posted: Wed Sep 09, 2009 10:00 pm
by Yandols
I'm glad it works, you can seek for my help again if you need it to be modified or you want a new script. :)