Jump to content
  • 0

Halloween script help.


stydianx

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

In this old Halloween script, can someone tell to me where i can edit the monsters that are to be spawned??

- script Halloween Wizard#iRO09::09HallowWiz 737,{
mes "[Halloween Wizard]";
mes "...";
mes "Do you want to play a trick on someone?";
next;
while(1) {
switch(select("What trick?:Sure:No.")) {
case 1:
mes "[Halloween Wizard]";
mes "I can summon monsters in other parts of the world with just a few materials.";
next;
mes "[Halloween Wizard]";
mes "Sounds interesting huh?";
next;
mes "[Halloween Wizard]";
mes "If you bring me Fabric, Jack o' Pumpkins, Worn Fabric, or Crushed Pumpkins I can summon the monsters.";
next;
break;
case 2:
mes "[Halloween Wizard]";
mes "Which town do you want to play a trick on?";
next;
getmapxy(.@mapname$,.@mapx,.@mapy,0,""+strcharinfo(0)+"");
if (.@mapname$ == "prontera") {
switch(select("Geffen:Payon:Alberta:Aldebaran:lighthalzen")) {
case 1:
set .@HallowTown,3;
break;
case 2:
set .@HallowTown,2;
break;
case 3:
set .@HallowTown,4;
break;
case 4:
set .@HallowTown,5;
break;
case 5:
set .@HallowTown,5;
break;
}
}
else if (.@mapname$ == "payon") {
switch(select("Prontera:Geffen:Alberta:Aldebaran:lighthalzen")) {
case 1:
set .@HallowTown,1;
break;
case 2:
set .@HallowTown,3;
break;
case 3:
set .@HallowTown,4;
break;
case 4:
set .@HallowTown,5;
break;
case 5:
set .@HallowTown,5;
break;
}
}
else if (.@mapname$ == "geffen") {
switch(select("Prontera:Payon:Alberta:Aldebaran:lighthalzen")) {
case 1:
set .@HallowTown,1;
break;
case 2:
set .@HallowTown,2;
break;
case 3:
set .@HallowTown,4;
break;
case 4:
set .@HallowTown,5;
break;
case 5:
set .@HallowTown,5;
break;
}
}
else if (.@mapname$ == "alberta") {
switch(select("Prontera:Geffen:Payon:Aldebaran:lighthalzen")) {
case 1:
set .@HallowTown,1;
break;
case 2:
set .@HallowTown,3;
break;
case 3:
set .@HallowTown,2;
break;
case 4:
set .@HallowTown,5;
break;
case 5:
set .@HallowTown,5;
break;
}
}
else if (.@mapname$ == "aldebaran") {
switch(select("Prontera:Geffen:Payon:Alberta:lighthalzen")) {
case 1:
set .@HallowTown,1;
break;
case 2:
set .@HallowTown,3;
break;
case 3:
set .@HallowTown,2;
break;
case 4:
set .@HallowTown,4;
break;
case 5:
set .@HallowTown,5;
break;
}
}
else if (.@mapname$ == "lighthalzen") {
switch(select("Prontera:Geffen:Payon:Alberta:aldebaran")) {
case 1:
set .@HallowTown,1;
break;
case 2:
set .@HallowTown,3;
break;
case 3:
set .@HallowTown,2;
break;
case 4:
set .@HallowTown,4;
break;
case 5:
set .@HallowTown,5;
break;
}
}
setarray .@HallowTowns$[1],"prontera","payon","geffen","alberta","aldebaran";
mes "[Halloween Wizard]";
mes "Ok then let's go to the next step.";
next;
mes "[Halloween Wizard]";
mes "How many Fabrics or Jack o' Pumpkins do you want to use? Don't go over 100 because that is the max amount that I can use.";
next;
input .@input;
if (.@input == 0) {
mes "[Halloween Wizard]";
mes "You have no definite idea.";
mes "It's not a big deal.";
mes "Let me know.";
next;
break;
}
else if (.@input > 100) {
mes "[Halloween Wizard]";
mes "I told you that it must be between 1 to 100!";
mes "You didn't pay attention!";
next;
break;
}
else {
set .@fabric,countitem(1059);
set .@jack,countitem(1062);
set .@worn,countitem(6299);
set .@crushed,countitem(6298);
set .@whispers,0;
set .@darklords,0;

set .@total,.@fabric + .@jack + .@worn + .@crushed;

if(.@total < .@input) {
mes "[Halloween Wizard]";
mes "Recount the number of items you have and tell me the total.";
mes "Huhuhuhuhuhu...";
next;
break;
}

if(.@fabric > 0) {
if(.@fabric >= .@input) {
delitem 1059,.@input;
set .@whispers,.@whispers+.@input;
set .@input,0;
}
else{
delitem 1059,.@fabric;
set .@input,.@input - .@fabric;
set .@whispers,.@whispers+.@fabric;
}
}
if(.@worn > 0 && .@input != 0) {
if(.@worn >= .@input) {
delitem 6299,.@input;
set .@whispers,.@whispers+.@input;
set .@input,0;
}
else{
delitem 6299,.@worn;
set .@input,.@input - .@worn;
set .@whispers,.@whispers+.@worn;
}
}
if(.@jack > 0 && .@input != 0) {
if(.@jack >= .@input) {
delitem 1062,.@input;
set .@darklords,.@darklords+.@input;
set .@input,0;
}
else{
delitem 1062,.@jack;
set .@input,.@input - .@jack;
set .@darklords,.@darklords+.@jack;
}
}
if(.@crushed > 0 && .@input != 0) {
if(.@crushed >= .@input) {
delitem 6298,.@input;
set .@darklords,.@darklords+.@input;
set .@input,0;
}
else{
delitem 6298,.@crushed;
set .@input,.@input - .@crushed;
set .@darklords,.@darklords+.@crushed;
}
}
if (.@input > 0) {
mes "Theres a problem.";
close;
}
monster ""+.@HallowTowns$[.@HallowTown]+"",0,0,"Halloween Whisper",3014,.@whispers;
monster ""+.@HallowTowns$[.@HallowTown]+"",0,0,"Halloween Dark Lord",3015,.@darklords;
mes "[Halloween Wizard]";
mes "Here's what you wanted.";
mes "Imagine what the people must be thinking in the other villages?";
mes "Muahahaha";
close;
}
case 3:
mes "[Halloween Wizard]";
mes "If you change your mind, come back here...";
mes "I'll stay here for a while...";
mes "Kkkk...";
close;
}
}
}

Edited by AnnieRuru
use [codebox] if the script > 10 lines
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

search ---> monster

monster ""+.@HallowTowns$[.@HallowTo....

Edited by goddameit
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
Answer this question...

×   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...