Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesf npc/other #2306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions npc/other/CashShop_Functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
// - No arguments.
function script F_CashStore {
cutin "kafra_01",2;
mes "[Kafra Employee]";
mes "Welcome to the Kafra Corporation.";
mes "Here, let me open your Storage for you.";
mes("[Kafra Employee]");
mes("Welcome to the Kafra Corporation.");
mes("Here, let me open your Storage for you.");
close2;
openstorage;
cutin "",255;
Expand Down Expand Up @@ -276,33 +276,33 @@ function script F_CashSiegeTele {
// - No arguments.
function script F_Snowball {
cutin "rutie_snownow03",2;
mes "[Snowman]";
mes "Merry Christmas!";
mes("[Snowman]");
mes("Merry Christmas!");
switch(select("Restore Some HP/SP", "Strengthen My Body!", "Restore My SP Fully.", "Return to Savepoint")) {
case 1:
mes "Aha!";
mes "Quiet night~";
mes("Aha!");
mes("Quiet night~");
percentheal 70,70;
close2;
cutin "",255;
break;
case 2:
mes "Blessings.";
mes "Holy night~";
mes("Blessings.");
mes("Holy night~");
unitskilluseid getcharid(CHAR_ID_ACCOUNT),"SM_ENDURE",10;
close2;
cutin "",255;
break;
case 3:
mes "Hey!";
mes "White Christmas~";
mes("Hey!");
mes("White Christmas~");
percentheal 0,100;
close2;
cutin "",255;
break;
case 4:
mes "Jingle Bells~";
mes "Jingle Bells~ Jingle Bells!";
mes("Jingle Bells~");
mes("Jingle Bells~ Jingle Bells!");
close2;
cutin "",255;
warp "SavePoint",0,0;
Expand Down
6 changes: 3 additions & 3 deletions npc/other/Global_Functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function script F_Bye {
// - 1 - Element N (0=none,1=Ice,2=Earth,3=Fire,4=Wind)
// - 2 - VVS meter 0...3
// - 3 - Refine
// Example: mes "Show me your "+callfunc("F_ItemName",1201,1,2,5)+"...";
// is equal to: mes "Show me your ^000090 +5 VVS Fire Knife ^000000..."
// Example: mesf("Show me your %s...", callfunc("F_ItemName",1201,1,2,5));
// is equal to: mes("Show me your ^000090 +5 VVS Fire Knife ^000000...");
function script F_ItemName {
if(getarg(3))
.@t$ += "+"+getarg(3)+" ";
Expand Down Expand Up @@ -434,7 +434,7 @@ function script F_ShuffleNumbers {
//== Function F_MesColor ===================================
// Function to colorize npc dialog without having to memorize the color code
// Examples:
// mes callfunc("F_MesColor", C_BLUE) +"This message is now in BLUE";
// mesf("%sThis message is now in BLUE", callfunc("F_MesColor", C_BLUE));
function script F_MesColor {
return sprintf("^%06X", min(getarg(0), 0xFFFFFF));
}
76 changes: 38 additions & 38 deletions npc/other/acolyte_warp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@
//=========================================================================

prontera,98,121,4 script Acolyte#Prtclear 4_F_01,{
mes "[Keiki]";
mes "Hello there, adventurer.";
mes "I've been studying magic from all over Rune-Midgard to upgrade what I believe to be one of the greatest skills available to the acolyte class.";
mes("[Keiki]");
mes("Hello there, adventurer.");
mes("I've been studying magic from all over Rune-Midgard to upgrade what I believe to be one of the greatest skills available to the acolyte class.");
next;
mes "[Keiki]";
mes "I am the one and only Acolyte that has attained the Level 10 Warp Portal skill!";
mes("[Keiki]");
mes("I am the one and only Acolyte that has attained the Level 10 Warp Portal skill!");
emotion e_dots,1;
next;
mes "[Keiki]";
mes "That's right! And...";
mes "I promise you that I don't forget locations that I have already memorized.";
mes "One day I will level up my skills to warp to wherever I please~";
mes("[Keiki]");
mes("That's right! And...");
mes("I promise you that I don't forget locations that I have already memorized.");
mes("One day I will level up my skills to warp to wherever I please~");
next;
mes "[Keiki]";
mes "I am willing to warp you to the many locations that I have memorized for a small fee.";
mes "Would you like to use this service?";
mes("[Keiki]");
mes("I am willing to warp you to the many locations that I have memorized for a small fee.");
mes("Would you like to use this service?");
next;
switch(select("Yes", "No")) {
case 1:
mes "[Keiki]";
mes "Where would you like to go to?";
mes "I wish you goodluck on your journey.";
mes("[Keiki]");
mes("Where would you like to go to?");
mes("I wish you goodluck on your journey.");
next;

setarray .@towns$[0], "Izlude", "Geffen", "Payon", "Morroc", "Alberta", "Al De Baran", "Comodo", "Umbala", "Juno";
Expand All @@ -68,11 +68,11 @@ prontera,98,121,4 script Acolyte#Prtclear 4_F_01,{
if (.@i == .@size)
close;
if (Zeny < .@cost[.@i]) {
mes "[Keiki]";
mes "I'm sorry, but you don't have";
mes "enough zeny for the Teleport";
mes "Service. The fee to teleport";
mes "to "+.@towns$[.@i]+" is "+.@cost[.@i]+" zeny.";
mes("[Keiki]");
mes("I'm sorry, but you don't have");
mes("enough zeny for the Teleport");
mes("Service. The fee to teleport");
mesf("to %s is %d zeny.", .@towns$[.@i], .@cost[.@i]);
close;
}
specialeffect(EF_READYPORTAL, AREA, playerattached());
Expand All @@ -98,26 +98,26 @@ prontera,98,121,4 script Acolyte#Prtclear 4_F_01,{
}

yuno,142,184,6 script Acolyte#Junoclear 4_F_01,{
mes "[Isalei]";
mes "Hello, adventurer.";
mes "My companion Keiki and I have discovered a way to increase our warp portal abilities.";
mes("[Isalei]");
mes("Hello, adventurer.");
mes("My companion Keiki and I have discovered a way to increase our warp portal abilities.");
next;
mes "[Isalei]";
mes "Though I have not mastered up to the level that she has, I have been able to attain Level 5.";
mes("[Isalei]");
mes("Though I have not mastered up to the level that she has, I have been able to attain Level 5.");
emotion e_dots,1;
next;
mes "[Isalei]";
mes "Maybe one day I can level up my skills enough so that I can use Warp portal to more saved locations.";
mes("[Isalei]");
mes("Maybe one day I can level up my skills enough so that I can use Warp portal to more saved locations.");
next;
mes "[Isalei]";
mes "I am willing to warp you to the many locations that I have memorized for a small fee.";
mes "Would you like to use this service?";
mes("[Isalei]");
mes("I am willing to warp you to the many locations that I have memorized for a small fee.");
mes("Would you like to use this service?");
next;
switch(select("Yes", "No")) {
case 1:
mes "[Isalei]";
mes "Where would you like to go to?";
mes "I wish you goodluck on your journey.";
mes("[Isalei]");
mes("Where would you like to go to?");
mes("I wish you goodluck on your journey.");
next;

setarray .@towns$[0], "Einbroch", "Lighthalzen", "Hugel", "Rachel", "Prontera";
Expand All @@ -131,11 +131,11 @@ yuno,142,184,6 script Acolyte#Junoclear 4_F_01,{
if (.@i == .@size)
close;
if (Zeny < .@cost[.@i]) {
mes "[Isalei]";
mes "I'm sorry, but you don't have";
mes "enough zeny for the Teleport";
mes "Service. The fee to teleport";
mes "to "+.@towns$[.@i]+" is "+.@cost[.@i]+" zeny.";
mes("[Isalei]");
mes("I'm sorry, but you don't have");
mes("enough zeny for the Teleport");
mes("Service. The fee to teleport");
mesf("to %s is %d zeny.", .@towns$[.@i], .@cost[.@i]);
close;
}
specialeffect(EF_READYPORTAL, AREA, playerattached());
Expand Down
Loading