~ eAAC Update:
* Added quest_warper.txt to eAAC_Scripts. [erKURITA] * Deleted the sql and txt versions of the disguiser and added a merge of both. [erKURITA] * Deleted clone_arena.txt. [erKURITA] * Updated global_functionsKE.txt of Skotlex. [erKURITA] * Added woe_time_explanation.txt to explain how to set WoE times. [erKURITA] git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6068 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
ef0c7b760b
commit
23599bc5a7
111
doc/woe_time_explanation.txt
Normal file
111
doc/woe_time_explanation.txt
Normal file
@ -0,0 +1,111 @@
|
||||
//| ~~~~~ How to set WoE times, by erKURITA: ~~~~~
|
||||
//|
|
||||
//| Basically, there are 2 commands that affects the WoE times,
|
||||
//| OnClock<time>: and gettime(<type).
|
||||
//|
|
||||
//| OnClock<time> runs when the said time where <time> is has been reached.
|
||||
//| The format of time is hhmm, being h = hour, m = minute.
|
||||
//| OnClock2350: would run at 23:50 on Computer's time.
|
||||
//|
|
||||
//| gettime(<type) is a function which is used to make a check
|
||||
//| for a desired amount of information regarding time. The types are:
|
||||
//| 1 - Seconds (of a minute)
|
||||
//| 2 - Minutes (of an hour)
|
||||
//| 3 - Hour (of a day). Hour goes from 0 to 23.
|
||||
//| 4 - Week day (0 for Sunday, 6 is Saturday)
|
||||
//| 5 - Day of the month.
|
||||
//| 6 - Number of the month.
|
||||
//| 7 - Year.
|
||||
//| 8 - Day of the year.
|
||||
//|
|
||||
//| Days (explained later) :
|
||||
//| Monday = 1
|
||||
//| Tuesday = 2
|
||||
//| Wednesday = 3
|
||||
//| Thursday = 4
|
||||
//| Friday = 5
|
||||
//| Saturday = 6
|
||||
//| Sunday = 7
|
||||
//|
|
||||
//| This way, we can check for a desired minute, hour, day, month, etc.
|
||||
//|
|
||||
//| Now the structure:
|
||||
//|
|
||||
//| OnClock2100: //start time for Tues(2), Thurs(4)
|
||||
//| OnClock2300: //end time for Tues(2), Thurs(4)
|
||||
//| OnClock1600: //start time for Sat(6)
|
||||
//| OnClock1800: //end time for Sat(6)
|
||||
//|
|
||||
//| These 4 labels will run one after the other. It's acomodated so,
|
||||
//| The Tuesday at 21:00 and 23:00 they will run, and go to the next
|
||||
//| part of the script:
|
||||
//|
|
||||
//| if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start;
|
||||
//| if((gettime(4)==4) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start;
|
||||
//| if((gettime(4)==6) && (gettime(3)>=16 && gettime(3)<18)) goto L_Start;
|
||||
//|
|
||||
//| This part will check for the times. Since both Starting and Ending times
|
||||
//| run through the same chain of commands, there are necesary checks to ensure
|
||||
//| it's the right time. Let's take the following example:
|
||||
//|
|
||||
//| if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23))
|
||||
//|
|
||||
//| The first gettime is checking for a type 4, the day of the week, and it's
|
||||
//| comparing it to the one desired, which is 2, that's Tuesday. If the comparation
|
||||
//| is true and both sides are equal, it will return 1. 1 means true, 0 means false
|
||||
//| in comparations and conditions.
|
||||
//|
|
||||
//| The second gettime is checking for a type 3, which is the hour, and it's
|
||||
//| comparing it to 21, and if the first part is greater or equal (>=) than the second,
|
||||
//| the comparation will return 1.
|
||||
//|
|
||||
//| The third and last gettime is checking again for the hour, but the time has to be less
|
||||
//| than the said time, in this case, 23.
|
||||
//|
|
||||
//| Now, look at the parentheses. Parentheses are very important when making comparations
|
||||
//| and conditions. Check the order of these. I'll place dummy characters for this example:
|
||||
//|
|
||||
//| if ((X && (Y && Z)) goto L_Start;
|
||||
//|
|
||||
//| It's saying, if Y and Z are true, the condition meets. Now let's replace that comparation
|
||||
//| with another dummy character. We're doing (Y && Z) = G:
|
||||
//|
|
||||
//| if (X && G) goto L_Start;
|
||||
//|
|
||||
//| It's saying, if X and G are true, the condition meets, thus it has to go to L_Start.
|
||||
//|
|
||||
//| Now, the last part of the script, regarding the end of WoE time:
|
||||
//|
|
||||
//| if((gettime(4)==2) && (gettime(3)==23)) goto L_End;
|
||||
//| if((gettime(4)==4) && (gettime(3)==23)) goto L_End;
|
||||
//| if((gettime(4)==6) && (gettime(3)==18)) goto L_End;
|
||||
//| end;
|
||||
//|
|
||||
//| This is the same as before, but it's checking for the day in the first gettime, and
|
||||
//| the hour on the second. If both conditions are true, the WoE will end. We're checking
|
||||
//| here for the end time, not the start.
|
||||
//|
|
||||
//| Another important thing is OnAgitInit: . This special label will be run as soon as the
|
||||
//| castle data is loaded from the char data. So it will check for the above start and end time
|
||||
//| to see if it's in WoE time, hence why the hours has to be checked.
|
||||
//|
|
||||
//| Now a example of how to set the WoE so it starts on Monday, at 4 pm and ends up at 10 pm:
|
||||
//|
|
||||
//| OnClock1600: //| 16:00 = 4 pm
|
||||
//| OnClock2200: //| 22:00 = 10 pm
|
||||
//|
|
||||
//| OnAgitInit: //| there has to be ONLY ONE of these labels, so put the OnClock above this
|
||||
//| //| and the checks below.
|
||||
//|
|
||||
//| if ((gettime(4)==1) && (gettime(3)>=16 && gettime(3)<22)) goto L_Start;
|
||||
//|
|
||||
//| if ((gettime(4)==1) && (gettime(3)==22) goto L_End;
|
||||
//| end;//| VERY IMPORTANT TO PLACE AND END AFTER THE LAST END CHECK. You don't want to
|
||||
//| //| start the WoE w/o being on the right times/day
|
||||
//|
|
||||
//| I hope this has been clear enough. Remember to put the checks in a logical way, e.g:
|
||||
//| Monday checks first, then Thursday, etc.
|
||||
//| Any questions Pm me (erKURITA) or go to irc channel on irc.deltaanime.net in #athena
|
||||
//| channel. Do not PM on IRC w/o asking please.
|
||||
//|
|
||||
//| ~ erKURITA
|
@ -28,6 +28,9 @@ Nexon
|
||||
Date Added
|
||||
======
|
||||
04/14
|
||||
* Added quest_warper.txt to eAAC_Scripts. Deleted the sql and txt versions
|
||||
of the disguiser and added a merge of both. Deleted clone_arena.txt.
|
||||
Updated global_functionsKE.txt of Skotlex. [erKURITA]
|
||||
* Added some more Kiel warps thanks to Celestria [Playtester]
|
||||
* Cleaned up eamobs [Playtester]
|
||||
- deleted all files that have no difference to mobs
|
||||
|
@ -17,6 +17,7 @@
|
||||
//= Started the basis of Poring Track. [erKURITA]
|
||||
//= Moved the old lady to npc\guides\guides_hu.txt, since it's Hugel's guard [erKURITA]
|
||||
//= Special thanks to RockmanEXE who provided all necesary info =3
|
||||
//= Abducted/Moved Yan and Yalmire(temp names) to npc\events\custom\p_track. [erKURITA]
|
||||
//============================================================
|
||||
|
||||
hu_in01.gat,23,311,4 script Johsh 898,{
|
||||
@ -57,13 +58,7 @@ hugel.gat,91,152,4 script Bulletin Board 837,{end;}
|
||||
//= New Npcs
|
||||
hugel.gat,76,134,4 script Yahna 101,{end;}
|
||||
hugel.gat,71,137,5 script Jamira 879,{end;}
|
||||
hugel.gat,58,72,5 script Yan 86,{
|
||||
//ask for 500z to enter, poring track nº1
|
||||
end;}
|
||||
hugel.gat,62,68,1 script Yalmire 86,{
|
||||
//ask for 500z to enter, poring track nº2
|
||||
end;
|
||||
}
|
||||
|
||||
hugel.gat,175,115,5 script Anhi Anh 897,{end;}
|
||||
hugel.gat,191,172,4 script Yanhe 895,{end;}
|
||||
hugel.gat,196,164,3 script Amnot 50,{end;}
|
||||
|
@ -356,4 +356,4 @@ goto L_GM;
|
||||
|
||||
L_CLOSE:
|
||||
close;
|
||||
}
|
||||
}
|
@ -11,4 +11,4 @@ REPLACE INTO `donate_item_db` VALUES (602,'Butterfly_Wing',30);
|
||||
REPLACE INTO `donate_item_db` VALUES (603,'Old_Blue_Box',1);
|
||||
REPLACE INTO `donate_item_db` VALUES (604,'Dead_Branch',200);
|
||||
REPLACE INTO `donate_item_db` VALUES (605,'Anodyne',5);
|
||||
REPLACE INTO `donate_item_db` VALUES (606,'Aloevera',5);
|
||||
REPLACE INTO `donate_item_db` VALUES (606,'Aloevera',5);
|
@ -31,4 +31,4 @@
|
||||
= Thanks to Vich for helping me with the SQL syntax. =
|
||||
= Thanks to Lance for helping me with the the arrays and =
|
||||
= for implementing this feature. XD =
|
||||
============================================================
|
||||
============================================================
|
File diff suppressed because it is too large
Load Diff
179
npc/custom/eAAC_Scripts/disguiser.txt
Normal file
179
npc/custom/eAAC_Scripts/disguiser.txt
Normal file
@ -0,0 +1,179 @@
|
||||
===== eAthena Script =======================================
|
||||
= Disguiser Quesr
|
||||
===== By ==================================================
|
||||
= PalasX (httpcashaan.dontexist.org)
|
||||
===== Current Version =====================================
|
||||
= v1.20 Unified
|
||||
===== Compatible With =====================================
|
||||
= SVN 5690+ (getmonsterinfo)
|
||||
===== Description =========================================
|
||||
= Baphomet disguises you if you find all his brothers.
|
||||
===== Additional Comments =================================
|
||||
= Gotta find them all in order
|
||||
= Dynamically edits item 2614(eye of dullahan) with
|
||||
= setitemscript 2614,{bonus bdisguise,var_disguise;};
|
||||
= so your SVN better support it
|
||||
= Uses GetMonsterInfo to pull monster names from server, but
|
||||
= without sql_query, the mob IDs are set statically
|
||||
= Went crazy with the functions, the script is TINY now )
|
||||
============================================================
|
||||
|
||||
|
||||
Places all of our NPCs
|
||||
|
||||
prt_fild05.gat,277,226,5 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,0,quest_disguise;
|
||||
Close;
|
||||
}
|
||||
|
||||
moc_fild10.gat,34,283,4 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,1,quest_disguise;
|
||||
close;
|
||||
}
|
||||
|
||||
gef_fild00.gat,97,123,4 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,2,quest_disguise;
|
||||
close;
|
||||
}
|
||||
|
||||
pay_fild01.gat,369,305,4 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,3,quest_disguise;
|
||||
close;
|
||||
}
|
||||
|
||||
pay_fild03.gat,313,40,4 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,4,quest_disguise;
|
||||
close;
|
||||
}
|
||||
|
||||
prt_fild08.gat,362,185,4 script Dullahan Master 736,{
|
||||
callfunc PXC_Disguiser,5,quest_disguise;
|
||||
close;
|
||||
|
||||
|
||||
|
||||
edits the item used
|
||||
|
||||
OnInit
|
||||
EDIT EYE OF DULLAHAN
|
||||
setitemscript 2614,{ bonus bdisguise,var_disguise; };
|
||||
end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Function. Takes
|
||||
INTEGER, the order number that the bapho should be visited
|
||||
VARIABLE, the quest progression variable quest_disguise. may be changed if conflicts occur
|
||||
|
||||
Puts
|
||||
Everything the NPC does. If you are at the right one, increase your order variable, if not, tell you where to head next on the list, when you finish, offer you to change ring properties.
|
||||
Whenever you dont have a ring, the script will push one on you in ALL instances (wrong NPC, right NPC, and done quest).
|
||||
|
||||
|
||||
function script PXC_Disguiser {
|
||||
|
||||
setarray $@PXC_Next$[0],Culvert,Morocc,Geffen,Payon,Alberta,Izlude;
|
||||
|
||||
if(var_disguise 1) goto Complete;
|
||||
if(getarg(0) == 5 && getarg(1) == 5) goto Last;
|
||||
if(getarg(0) == getarg(1)) goto Quest;
|
||||
|
||||
NotMe
|
||||
mes [Baphomet];
|
||||
mes You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around +$@PXC_Next$[getarg(1)]+ Next!;
|
||||
next;
|
||||
if(countitem(2614) 1) goto NeedRing;
|
||||
close;
|
||||
|
||||
Cancel
|
||||
mes [Baphomet];
|
||||
mes Later.;
|
||||
close;
|
||||
|
||||
Quest
|
||||
set quest_disguise,getarg(1)+1;
|
||||
mes [Baphomet];
|
||||
mes What am I doing here Find my brothers and you shall learn a great secret. It is one of the secret and ancient powers of Thor! Search around +$@PXC_Next$[getarg(1)]+ next!;
|
||||
next;
|
||||
if(countitem(2614) 1) goto NeedRing;
|
||||
close;
|
||||
|
||||
NeedRing
|
||||
mes [Baphomet];
|
||||
mes You will need an Eye of Dullahan ring in order to obtain our secret. I can sell you one for 500,000 zeny. Simply bring me the money, and I'll offer it unto Thor in trade!;
|
||||
next;
|
||||
menu Buy Ring,-,Forget it!,Cancel;
|
||||
if(Zeny 500000) goto Cancel;
|
||||
set Zeny,Zeny-500000;
|
||||
getitem 2614,1;
|
||||
mes [Baphomet];
|
||||
mes Here is your ring.;
|
||||
next;
|
||||
goto Cancel;
|
||||
close;
|
||||
|
||||
Last
|
||||
set quest_disguise,0;
|
||||
set var_disguise,1002;
|
||||
mes [Baphomet];
|
||||
mes I am the last of the six. Forgive us for giving such horrible directions, for we, too, are born from Thor's left eye, and have a terrible mean streak. Plus, being monsters, we're complete and total idiots with a shoddy A.I.! You shall now receive your reward.;
|
||||
next;
|
||||
goto Complete;
|
||||
|
||||
|
||||
Complete
|
||||
if(countitem(2614) 1) goto NeedRing;
|
||||
|
||||
mes [Baphomet];
|
||||
mes Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.;
|
||||
next;
|
||||
mes [Baphomet];
|
||||
mes I can change your ring's mystical properties. Which monster spirit shall I weave into your ring;
|
||||
next;
|
||||
|
||||
if(getarg(0)==0) callfunc PXC_DoMenu,1001,1125;
|
||||
if(getarg(0)==1) callfunc PXC_DoMenu,1126,1250;
|
||||
if(getarg(0)==2) callfunc PXC_DoMenu,1251,1375;
|
||||
if(getarg(0)==3) callfunc PXC_DoMenu,1376,1500;
|
||||
if(getarg(0)==4) callfunc PXC_DoMenu,1503,1625;
|
||||
if(getarg(0)==5) callfunc PXC_DoMenu,1626,1721;
|
||||
|
||||
close;
|
||||
end;
|
||||
}
|
||||
|
||||
|
||||
FUNCTION.
|
||||
Takes
|
||||
integer, first monster ID to show
|
||||
integer, last monster ID to show
|
||||
|
||||
function script PXC_DoMenu {
|
||||
|
||||
set menu options to mob names, doing the first one manualy so we dont have an empty
|
||||
set $@menu$, getmonsterinfo(getarg(0),MOB_NAME);
|
||||
|
||||
for(set $@i, getarg(0)+1; $@i = getarg(1); set $@i, $@i + 1){
|
||||
set $@menu$, $@menu$ + + getmonsterinfo($@i,MOB_NAME);
|
||||
}
|
||||
|
||||
Fire our menu
|
||||
set @menu, select($@menu$);
|
||||
|
||||
Zero deliminated (off-by-one errors sux0r!!!)
|
||||
set @menu, @menu-1;
|
||||
|
||||
congratulate our user
|
||||
mes Behold, whilst you wear this ring, your form shall become that of a +getmonsterinfo(@menu + getarg(0),MOB_NAME);
|
||||
|
||||
update our variable, with @menu offset addded to the base getarg(0)
|
||||
set var_disguise, @menu + getarg(0);
|
||||
|
||||
close;
|
||||
end;
|
||||
|
||||
}
|
@ -1,305 +0,0 @@
|
||||
//===== eAthena Script =======================================
|
||||
//= Disguiser Quesr
|
||||
//===== By: ==================================================
|
||||
//= PalasX (http://cashaan.dontexist.org)
|
||||
//===== Current Version: =====================================
|
||||
//= v1.10 SQL
|
||||
//===== Compatible With: =====================================
|
||||
//= SVN 5200+
|
||||
//===== Description: =========================================
|
||||
//= Baphomet disguises you if you find all his brothers.
|
||||
//===== Additional Comments: =================================
|
||||
//= Gotta find them all in order
|
||||
//= Dynamically edits item 2614(eye of dullahan) with
|
||||
//= setitemscript 2614,"{bonus bdisguise,var_disguise;}";
|
||||
//= so your SVN better support it
|
||||
//============================================================
|
||||
|
||||
prt_fild05.gat,277,226,5 script Dullahan Master 736,{
|
||||
|
||||
if(var_disguise > 1) goto Complete;
|
||||
if(quest_disguise == 0) goto Quest;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Morocc Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,1;
|
||||
mes "[Baphomet]";
|
||||
mes "What am I doing here? Find my brothers and you shall learn a great secret. Search around Morocc next!";
|
||||
next;
|
||||
close;
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",1;
|
||||
|
||||
Close;
|
||||
}
|
||||
moc_fild10.gat,34,283,4 script Dullahan Master 736,{
|
||||
|
||||
if(var_disguise > 1) goto Complete;
|
||||
if(quest_disguise == 1) goto Quest;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Geffen Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,2;
|
||||
mes "[Baphomet]";
|
||||
mes "What am I doing here? Find my brothers and you shall learn a great secret. Search outside Geffen next!";
|
||||
next;
|
||||
close;
|
||||
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",2;
|
||||
|
||||
close;
|
||||
}
|
||||
gef_fild00.gat,97,123,4 script Dullahan Master 736,{
|
||||
|
||||
if(var_disguise > 1) goto Complete;
|
||||
if(quest_disguise == 2) goto Quest;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Payon Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,3;
|
||||
mes "[Baphomet]";
|
||||
mes "What am I doing here? Find my brothers and you shall learn a great secret. Search outside Payon next!";
|
||||
next;
|
||||
close;
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",3;
|
||||
|
||||
close;
|
||||
}
|
||||
pay_fild01.gat,369,305,4 script Dullahan Master 736,{
|
||||
|
||||
if(var_disguise > 1) goto Complete;
|
||||
if(quest_disguise == 3) goto Quest;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Alberta Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,4;
|
||||
mes "[Baphomet]";
|
||||
mes "What am I doing here? Find my brothers and you shall learn a great secret. Search outside Alberta next!";
|
||||
next;
|
||||
close;
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",4;
|
||||
|
||||
close;
|
||||
}
|
||||
pay_fild03.gat,313,40,4 script Dullahan Master 736,{
|
||||
|
||||
if(var_disguise > 1) goto Complete;
|
||||
if(quest_disguise == 4) goto Quest;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Izlude Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,5;
|
||||
mes "[Baphomet]";
|
||||
mes "What am I doing here? Find my brothers and you shall learn a great secret. Search outside Izlude next!";
|
||||
next;
|
||||
close;
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",5;
|
||||
|
||||
close;
|
||||
}
|
||||
prt_fild08.gat,362,185,4 script Dullahan Master 736,{
|
||||
|
||||
if(quest_disguise == 5) goto Quest;
|
||||
if(countitem(2614) < 1) goto NeedRing;
|
||||
if(var_disguise > 1) goto Complete;
|
||||
|
||||
NotMe:
|
||||
mes "[Baphomet]";
|
||||
mes "You must visit us in the proper order, as is Thor's will. Only then can we teach you the power of self-transmutation! Hunt around Culvert's Next!";
|
||||
close;
|
||||
|
||||
Cancel:
|
||||
mes "[Baphomet]";
|
||||
mes "Later.";
|
||||
close;
|
||||
|
||||
Quest:
|
||||
set quest_disguise,0;
|
||||
set var_disguise,1002;
|
||||
mes "[Baphomet]";
|
||||
mes "I am the last of the six. Forgive us for giving such horrible directions, for we, too, are born from Thor's left eye, and have a terrible mean streak. Plus, being monsters, we're complete and total idiots with a shoddy A.I.! You shall now receive your reward.";
|
||||
next;
|
||||
if(countitem(2614) < 1) goto NeedRing;
|
||||
goto Complete;
|
||||
close;
|
||||
|
||||
NeedRing:
|
||||
mes "[Baphomet]";
|
||||
mes "You will need an Eye of Dullahan ring in order to obtain our secret. I alone can sell you one for 500,000 zeny. None of my brothers have any left to sell! Simply bring me the money, and I'll make the trade!";
|
||||
next;
|
||||
menu "Buy Ring",-,"Forget it!",Cancel;
|
||||
if(Zeny < 500000) goto Cancel;
|
||||
set Zeny,Zeny-500000;
|
||||
getitem 2614,1;
|
||||
mes "[Baphomet]";
|
||||
mes "Here is your ring.";
|
||||
goto Complete;
|
||||
close;
|
||||
|
||||
Complete:
|
||||
mes "[Baphomet]";
|
||||
mes "Several millenia ago, Thor, the creator breathed life onto Midgar. In the beginning, all was well, but Thor's left eye proved to be the bane of our existance. As it's gaze set upon our land, all the monsters were let loose from within Thor's soul. Thor cast out his own eye, the only thing that could control the monsters. Your ring is made from his eye, and will give you the same powers.";
|
||||
next;
|
||||
mes "[Baphomet]";
|
||||
mes "I can change its mystical properties, which monster you wanna be?";
|
||||
next;
|
||||
callfunc "PXC_Disguiser",6;
|
||||
|
||||
close;
|
||||
|
||||
|
||||
OnInit:
|
||||
//EDIT EYE OF DULLAHAN
|
||||
setitemscript 2614,"{ bonus bdisguise,var_disguise; }";
|
||||
end;
|
||||
}
|
||||
|
||||
|
||||
function script PXC_Disguiser {
|
||||
if(getarg(0)==1) goto MenuSet_A;
|
||||
if(getarg(0)==2) goto MenuSet_B;
|
||||
if(getarg(0)==3) goto MenuSet_C;
|
||||
if(getarg(0)==4) goto MenuSet_D;
|
||||
if(getarg(0)==5) goto MenuSet_E;
|
||||
if(getarg(0)==6) goto MenuSet_F;
|
||||
|
||||
|
||||
MenuSet_A:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1000) AND (ID < 1126)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1000) AND (ID < 1126)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
MenuSet_B:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1125) AND (ID < 1250)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1125) AND (ID < 1250)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
MenuSet_C:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1250) AND (ID < 1376)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1250) AND (ID < 1376)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
MenuSet_D:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1375) AND (ID < 1501)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1375) AND (ID < 1501)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
MenuSet_E:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1500) AND (ID < 1626)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1500) AND (ID < 1626)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
MenuSet_F:
|
||||
query_sql "SELECT ID FROM `mob_db` where ((ID > 1625) AND (ID < 1751)) order by ID ASC",$@mob_IDs$;
|
||||
query_sql "SELECT Name2 FROM `mob_db` where ((ID > 1625) AND (ID < 1751)) order by ID ASC",$@mob_names$;
|
||||
goto DoMenu;
|
||||
|
||||
DoMenu:
|
||||
//first menu option
|
||||
set $@menu$, $@mob_names$[0];
|
||||
|
||||
//set menu options to mob names
|
||||
for(set $@i, 1; $@i < 125; set $@i, $@i + 1){
|
||||
set $@menu$, $@menu$ + ":" + $@mob_names$[$@i];
|
||||
}
|
||||
|
||||
//Fire our menu
|
||||
set @menu, select($@menu$);
|
||||
|
||||
//Zero deliminated (off-by-one errors sux0r!!!)
|
||||
set @menu, @menu-1;
|
||||
|
||||
//congratulate our user
|
||||
mes "Behold, whilst you wear this ring, your form shall become that of a "+$@mob_names$[@menu];
|
||||
|
||||
//update our variable
|
||||
set var_disguise, $@mob_IDs$[@menu];
|
||||
|
||||
close;
|
||||
end;
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -329,4 +329,4 @@ function script GF_getJobClass {
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
1946
npc/custom/eAAC_Scripts/quest_warper.txt
Normal file
1946
npc/custom/eAAC_Scripts/quest_warper.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,8 @@
|
||||
// 1.3 - added more emoticons,made an Info menu
|
||||
// option which contains explanations and rules,
|
||||
// added the amount of lost/won zeny on the end
|
||||
// of each game,added more colors
|
||||
// of each game,added more colors
|
||||
// 1.4 - some small code optimization thanks to Myzter
|
||||
//==========================================================
|
||||
|
||||
|
||||
@ -120,22 +121,17 @@ L_gamec:
|
||||
if(@numg>18) message strcharinfo(0),"Number is too high, input again.";
|
||||
if(@numg<3||@numg>18) goto L_gamec;
|
||||
set Zeny, Zeny - @betnum;
|
||||
next;
|
||||
goto L_gameb;
|
||||
|
||||
L_gameb:
|
||||
next;
|
||||
set @number1,rand(1,6);
|
||||
set @number2,rand(1,6);
|
||||
set @number3,rand(1,6);
|
||||
set @number4,rand(1,6);
|
||||
set @number5,rand(1,6);
|
||||
set @number6,rand(1,6);
|
||||
set @dea1, @number1;
|
||||
set @dea2, @number2;
|
||||
set @dea3, @number3;
|
||||
set @pla1, @number4;
|
||||
set @pla2, @number5;
|
||||
set @pla3, @number6;
|
||||
|
||||
set @dea1, rand(1,6);
|
||||
set @dea2, rand(1,6);
|
||||
set @dea3, rand(1,6);
|
||||
set @pla1, rand(1,6);
|
||||
set @pla2, rand(1,6);
|
||||
set @pla3, rand(1,6);
|
||||
set @deatot, @dea1+@dea2+@dea3;
|
||||
set @platot, @pla1+@pla2+@pla3;
|
||||
|
||||
@ -208,7 +204,6 @@ L_lose:
|
||||
mes "You lost ^0080FF"+@bet+"^000000 Zeny.";
|
||||
next;
|
||||
goto L_againa;
|
||||
close;
|
||||
|
||||
L_again:
|
||||
mes "[Dicer]";
|
||||
@ -227,7 +222,6 @@ L_win1:
|
||||
mes "You won ^0080FF"+@wona+"^000000 Zeny.";
|
||||
next;
|
||||
goto L_againa;
|
||||
close;
|
||||
|
||||
L_win2:
|
||||
mes "[Dicer]";
|
||||
@ -247,4 +241,4 @@ L_againa:
|
||||
menu "Yes",L_play,"No",L_go;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
//= Now they appear in castles from 00:01 to 00:24. [Lupus]
|
||||
//= 1.5 Fixed WOE end messages on non-WOE days, by Avaj
|
||||
//============================================================
|
||||
|
||||
//| To know how to set up WoE times, go to doc\woe_time_explanation.txt
|
||||
// WoE Start/Stop times
|
||||
//======================================
|
||||
- script Agit_Event -1,{
|
||||
|
@ -39,11 +39,7 @@
|
||||
// Script made by palasx.
|
||||
// Forum topic for support:
|
||||
//| http://www.eathena.ws/board/index.php?showtopic=55584
|
||||
//| Note: Only enable the version according to the SVN you're using.
|
||||
//| SQL Version
|
||||
//npc: npc/custom/eAAC_Scripts/disguiser_SQL.txt
|
||||
//| TXT Version
|
||||
//npc: npc/custom/eAAC_Scripts/disguiser_TXT.txt
|
||||
//npc: npc/custom/eAAC_Scripts/disguiser.txt
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// ---------------------- Roll A Dice NPC -----------------------
|
||||
@ -72,3 +68,10 @@
|
||||
// Forum topic for support:
|
||||
//| http://www.eathena.ws/board/index.php?showtopic=71464
|
||||
//npc: npc/custom/eAAC_Scripts/DonationGirl/donate.txt
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// ----------------------- Quest Warper -------------------------
|
||||
// Script made by Neouni
|
||||
// Forum topic for support:
|
||||
//| http://www.eathena.ws/board/index.php?showtopic=83352
|
||||
//npc: npc/custom/eAAC_Scripts/quest_warper.txt
|
Loading…
x
Reference in New Issue
Block a user