darned, got beaten by experience XD (Could've done it that way yeah.).
hey, tbh I've started scripting in April(an easter event was my first script, yay goto's labels and overall poorly coded), gotta give me some credit .
Found it, one of my first scripts..
//Made by Jeroen
//Made using the rachel sanc quest as layout
moscovia.gat,225,191,5 script Easter Bunny 1322,{
if (EB_COMPLETE == 1) {
mes "[bunny]";
mes "Thank you so much for returning my eggs!";
close;
end;
}
mes "[bunny]";
mes "Hello!";
mes "I am the easter bunny!";
mes "I know my appearance is a little bit strange but that's because I lost my Eggs!";
mes "If you manage to find all my eggs I wil give you a reward!";
next;
if ((RED_EGG == 1) && (BLUE_EGG == 1) && (YELlOW_EGG == 1) && (GREEN_EGG == 1) && (PURPLE_EGG == 1) && (BLACK_EGG == 1) && (GOLD_EGG == 1)) {
mes "[bunny]";
mes "Oh! I see you have my eggs!";
mes "Would you like to receive your items now ?";
next;
menu "Redeem Item",-,"Cancel",EB_END;
}
Else {
mes "[bunny]";
mes "I think I lost my eggs while traveling through the following locations:";
mes "Poring heaven, The ruins of Morocc, The new worlds camp,in the realm of anubises,";
mes "In a Toy Factory, In a lair of a 3 headed dragon and under a gaint tree in amatsu";
next;
mes "[bunny]";
mes "Please help me find them.";
set EB_START,1;
close;
end;
}
if(checkweight(607,1) == 0){
mes "[bunny]";
mes "You are carrying too many items!";
mes "Please come back later!";
close;
}
mes "[bunny]";
mes "Here we go!";
Next;
mes "[bunny]";
mes "What will it be?! Time to find out!";
Next;
set .@bonus_ticket,rand(50);
if (.@bonus_ticket == 50) getitem 5378,1; // Bunny top hat 2% chance
else if (.@bonus_ticket > 21 && .@bonus_ticket < 44) getitem 7619,1; //Enriched Elunium 22%
else if (.@bonus_ticket > 0 && .@bonus_ticket < 20) getitem 14208,1; //Field Manual Box 38%
else getitem 13914,1; // Party Assumptio scrollbox 38%
next;
mes "[Lottery Machine]";
mes "Congratulations! Come back soon!";
set #EB_COMPLETE,1;
set EB_START,0;
close;
end;
EB_END:
mes "[bunny]";
mes "Come back soon!";
close;
end;
}
pay_fild04,146,107,3 script RedEgg#Red -1,3,3,{
end;
OnTouch:
if (RED_EGG == 1)
end;
if (EB_START == 1) {
mes "["+strcharinfo(0)+"]";
mes "I can see a red egg up in that tree";
mes "if only I had some sort of ^6B8E23Strong Branch^000000";
next;
if (countitem(7203) > 0) {
mes "["+strcharinfo(0)+"]";
mes "Oh wait! I do have some!";
mes "Lets try to get it out!";
next;
set .@red_eggget,rand(1,20);
if (.@red_eggget < 3) {
mes "["+strcharinfo(0)+"]";
mes "Yes! I got the Red egg!";
set RED_EGG,1;
close;
}
else {
delitem 7203,1; //Strong Branch
Mes "^6B8E23The Strong Branch broke in the attempt^000000";
close;
}
}
else {
mes "["+strcharinfo(0)+"]";
mes "I better start collecting some";
close;
}
}
}
mid_camp,227,235,3 script BlueEgg#Blue -1,3,3,{
end;
OnTouch:
if (BLUE_EGG == 1)
end;
if (EB_START == 1) {
mes "["+strcharinfo(0)+"]";
mes "Ah!! I see a blue egg!";
mes "But it's stuck in this triangular shape thing.";
mes "I wonder if I can get it out.";
next;
mes "^0003FF*clink* *Clink* *CLANG CLANG*^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "By the power of all Whitesmiths!!!!";
mes "I will pull you out!";
next;
mes "^0003FF*BANG* *BANG* *BANG*^000000";
specialeffect2 EF_Blessing;
next;
specialeffect2 EF_OVERTHRUST;
next;
mes "["+strcharinfo(0)+"]";
mes "I got the blue egg!";
set BLUE_EGG,1;
close;
}
}
moc_ruins,59,161,3 script YellowEgg#Yellow -1,3,3,{
end;
OnTouch:
if (YELLOW_EGG == 1)
end;
if (EB_START == 1) {
mes "[????]";
mes "hehehehe.....";
mes "Are you looking for this?";
next;
mes "["+strcharinfo(0)+"]";
mes "Yes! But how did you know?";
mes "and where did you get it from?";
next;
mes "[Kafra Employee]";
mes "You may have it under one condittion.";
mes "You will need to answer the following questions";
mes "Are you ready?";
switch(select("Yes!?:...No! I don't want to.")) {
next;
case 1:
mes "[Kafra employee]";
mes "Well then,";
mes "let's begin.";
next;
mes "[Kafra employee]";
mes "What day is easter Celebrated?";
next;
if (select("Sunday:Teusday:Friday:Saturday") == 1)
set .@yellow_q,.@yellow_q+10;
mes "[Kafra employee]";
mes "Why do we have eggs at Easter?";
next;
if (select("Because they are yummy:They resemble Rebirth:Because.. just give me the egg") == 2)
set .@yellow_q,.@yellow_q+10;
mes "[Kafra employee]";
mes "Which came first?";
next;
if (select("The chicken:The egg:None of Both:Jero") == 3)
set .@yellow_q,.@yellow_q+10;
mes "[Kafra employee]";
mes "A female rabbit is called a...?";
next;
if (select("Doe:Cow:chicken:JC") == 1)
set .@yellow_q,.@yellow_q+10;
mes "[Kafra employee]";
mes "What kind of tail does the easter bunny assumed to have?";
next;
if (select("Cutton Tail:Chocolate Tail:Liquor Tail:Bunny's have tails?") == 1)
set .@yellow_q,.@yellow_q+10;
mes "[Kafra employee]";
mes "Okay, this is the end of the test!";
next;
if (.@yellow_q > 39) {
mes "[Kafra employee]";
set YELlOW_EGG,1;
mes "Fine you can have the egg";
next;
mes "You got the Yellow egg!";
close;
}
else {
mes "[Kafra employee]";
mes "I'm sorry you failed";
mes "Please try agian!";
close; }
case 2:
mes "[Kafra employee]";
mes "come back later!";
close;
}
}
}
in_sphinx4,25,214,3 script GreenEgg#Green -1,3,3,{
end;
OnTouch:
if (GREEN_EGG == 1)
end;
if ((TABLET_A == 1) && (TABLET_B == 1) && (TABLET_C == 1) && (TABLET_D == 1) && (TABLET_E == 1)) {
mes "You inserted all of the tablets into the wall";
mes "A hidden hatch opened,";
mes "and you received the green egg!";
set GREEN_EGG,1;
set TABLET_A,0;
set TABLET_B,0;
set TABLET_C,0;
set TABLET_D,0;
set TABLET_E,0;
close;
}
if (TABLET_A == 1)
end;
if (EB_START == 1) {
mes "["+strcharinfo(0)+"]";
mes "Hm... there is a strange writing on the wall";
next;
mes "^0003FFIn order to get the Green egg";
mes "You will need to find 5 Tablets";
mes "You can find them on your minimap as you go along";
mes "After you got all 5 Tablet, return to this point^000000";
next;
viewpoint 1,20,230,4,0x00FF00;
mes "^0003FF You got Tablet A!";
set TABLET_A,1;
close;
}
}
in_sphinx4,20,230,3 script TABLET_B#Green -1,3,3,{
end;
OnTouch:
if (GREEN_EGG == 1)
end;
if (TABLET_B == 1)
end;
if (TABLET_A == 1) {
mes "You have found tablet B!";
set TABLET_B,1;
viewpoint 1,16,7,4,0x00FF00;
close;
}
}
in_sphinx4,16,15,3 script TABLET_C#Green -1,3,3,{
end;
OnTouch:
if (GREEN_EGG == 1)
end;
if (TABLET_C == 1)
end;
if (TABLET_A == 1) {
mes "You have found tablet C!";
set TABLET_C,1;
viewpoint 1,119,122,4,0x00FF00;
close;
}
}
in_sphinx4,119,122,3 script TABLET_D#Green -1,3,3,{
end;
OnTouch:
if (GREEN_EGG == 1)
end;
if (TABLET_D == 1)
end;
if (TABLET_A == 1) {
mes "You have found tablet D!";
set TABLET_D,1;
viewpoint 1,229,55,4,0x00FF00;
close;
}
}
in_sphinx4,229,55,3 script TABLET_E#Green -1,3,3,{
end;
OnTouch:
if (GREEN_EGG == 1)
end;
if (TABLET_E == 1)
end;
if (TABLET_A == 1) {
mes "You have found tablet E!";
set TABLET_E,1;
close;
}
}
amatsu,263,195,3 script Angel Rabbit#Purple 1063,3,3,{
if (PURPLE_EGG == 1)
end;
if (EB_START == 1) {
mes "There's a rabbit here, guarding a purple egg.";
mes "What will you do to take the egg?";
next;
switch(select("Pet the rabbit:Kick the rabbit:Eat the rabbit:just walk away")) {
case 1: {
mes "you attempted to pet the rabbit";
mes "The rabbit got scared and bit you.";
mes "in the mean time you managed t take the egg";
percentheal -60,0;
set PURPLE_EGG,1;
close;
}
break;
case 2: {
mes "You kicked the rabbit, sending it flying";
mes "in the meantime you grab the egg, it is now yours.";
set PURPLE_EGG,1;
close;
}
break;
case 3: {
mes "you started to boil a hot soup and put the rabbit in the bowl.";
mes "hm... Rabbit stew.";
mes "you restored all your energy, and you got the purple egg.";
percentheal 100,100;
set PURPLE_EGG,1;
close;
}
break;
case 4:
mes "you ran away";
close;
}
}
}
mosk_dun03,222,229,3 script BLACK_EGG#BLACK -1,3,3,{
end;
OnTouch:
If (BLACK_EGG == 1)
end;
if (EB_START == 1) {
mes "You see a black egg in between the pile of skulls";
mes "you will need about 50 holy waters, to clear the way to the black egg.";
next;
if (countitem(523) > 49) {
mes "You have enough holy waters to clear the way";
mes "Do you want to use them?";
next;
menu "yes",-,"no",BA_END;
mes "You cleared your way and got the black egg!";
delitem 523,50; //Holywater
set BLACK_EGG,1;
close;
BA_END:
Close;
}
mes "Better start get some holy waters!";
close;
}
}
xmas_dun01,205,27,3 script Chepet#GOLD 1250,3,3,{
if (GOLD_EGG == 1)
end;
if ((countitem(7035) > 0) && (countitem(969) > 0) && (countitem(7053) > 99)) {
mes "[Chepet]";
mes "I see you have the items!";
mes "Do you want to make a trade?";
menu "yes",-,"no",GO_END;
next;
mes "Thank you!";
delitem 7035,1;
delitem 969,1;
delitem 7053,100;
set GOLD_EGG,1;
close;
}
mes "[Chepet]";
mes "hello! I see you are";
mes "interested in this golden egg I found";
next;
mes "[Chepet]";
mes "How about a little trade?";
mes "I want the following items:";
mes "^0003FF1 Match stick";
mes "1 Gold";
mes "and 100 Cyfar";
next;
mes "[Chepet]";
mes "Please bring them to me";
close;
GO_END:
close;
}
This doesn't belong here though, mind if we continue this in a PM ?
Edited by AnnieRuru split topic from topic ID 74909
Question
Ajjwidjdneidjenw
* entirely off topic post
darned, got beaten by experience XD (Could've done it that way yeah.).
hey, tbh I've started scripting in April(an easter event was my first script, yay goto's labels and overall poorly coded), gotta give me some credit .
Found it, one of my first scripts..
This doesn't belong here though, mind if we continue this in a PM ?
Edited by AnnieRurusplit topic from topic ID 74909
Link to comment
Share on other sites
32 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.