summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-06-09 20:38:38 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2013-06-09 20:38:38 +0200
commit7f4410f9d5dce2884368a4b1d01139abd2e65fd5 (patch)
treee4f6cd0f6ed40b1852fa5ce28a5d78be982b0a73 /world/map/npc/functions
parent8ac35610a416d3937ccf4b3b74a61622382e8162 (diff)
parentfa2ffc29c1ef2c33ff0a9c1baf7026a4d9ffe0b6 (diff)
downloadserverdata-7f4410f9d5dce2884368a4b1d01139abd2e65fd5.tar.gz
serverdata-7f4410f9d5dce2884368a4b1d01139abd2e65fd5.tar.bz2
serverdata-7f4410f9d5dce2884368a4b1d01139abd2e65fd5.tar.xz
serverdata-7f4410f9d5dce2884368a4b1d01139abd2e65fd5.zip
Merge remote-tracking branch 'origin/master' into waric
Conflicts: world/map/db/item_db.txt
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/evil_obelisk.txt66
-rw-r--r--world/map/npc/functions/game_rules.txt31
2 files changed, 54 insertions, 43 deletions
diff --git a/world/map/npc/functions/evil_obelisk.txt b/world/map/npc/functions/evil_obelisk.txt
index 30fe927d..f1447375 100644
--- a/world/map/npc/functions/evil_obelisk.txt
+++ b/world/map/npc/functions/evil_obelisk.txt
@@ -3,62 +3,67 @@ function|script|EvilObelisk|{
mes "(A mystical aura surrounds this stone. It seems to crave money.)";
next;
+ set @cost_jacko, 6500;
+ set @cost_gy1, 4000;
+ set @cost_gy2, 3000;
+ set @cost_skull, 2800;
+ set @cost_snake, 2500;
+
menu
- "Pay it 200,000 gold", L_JACKO,
- "Pay it 100,000 gold", L_GRAVEYARD1,
- "Pay it 75,000 gold", L_GRAVEYARD2,
- "Pay it 50,000 gold", L_SKULL,
- "Pay it 25,000 gold", L_SNAKE,
- "Don't pay it anything.", -;
- close;
- return;
+ "Don't pay it anything.", -,
+ "Pay it " + @cost_jacko + " gold.", L_JACKO,
+ "Pay it " + @cost_gy1 + " gold.", L_GRAVEYARD1,
+ "Pay it " + @cost_gy2 + " gold.", L_GRAVEYARD2,
+ "Pay it " + @cost_skull + " gold.", L_SKULL,
+ "Pay it " + @cost_snake + " gold.", L_SNAKE;
+ goto L_Close;
L_JACKO:
- if (Zeny < 200000)
+ if (Zeny < @cost_jacko)
goto L_NotEnough;
- set Zeny, Zeny - 200000;
+ set Zeny, Zeny - @cost_jacko;
set @mob_id, 1022;
- set @mob_count, rand(2) + 1;
+ set @mob_count, rand(1,2);
goto L_Summon;
L_GRAVEYARD1:
- if (Zeny < 100000)
+ if (Zeny < @cost_gy1)
goto L_NotEnough;
set @temp, rand(2);
if(@temp == 0)
set @mob_id, 1036; // Zombie
if(@temp == 1)
set @mob_id, 1045; // Fallen
- set @mob_count, rand(2) + 1;
- set Zeny, Zeny - 100000;
+ set @mob_count, rand(1,2);
+ set Zeny, Zeny - @cost_gy1;
goto L_Summon;
L_GRAVEYARD2:
- if (Zeny < 75000)
+ if (Zeny < @cost_gy2)
goto L_NotEnough;
set @temp, rand(2);
if(@temp == 0)
set @mob_id, 1044; // Lady Skelly
if(@temp == 1)
set @mob_id, 1043; // Normal Skelly
- set @mob_count, rand(2) + 1;
- set Zeny, Zeny - 75000;
+ set @mob_count, rand(1,2);
+ set Zeny, Zeny - @cost_gy2;
goto L_Summon;
L_SKULL:
- if (Zeny < 50000)
+ if (Zeny < @cost_skull)
goto L_NotEnough;
set @temp, rand(2);
if(@temp == 0)
set @mob_id, 1024; // Poison
if(@temp == 1)
set @mob_id, 1023; // Fire
- set @mob_count, rand(4) + 1;
- set Zeny, Zeny - 50000;
+ set @mob_count, rand(1,4);
+ set Zeny, Zeny - @cost_skull;
goto L_Summon;
L_SNAKE:
- if (Zeny < 25000)
+ if (Zeny < @cost_snake)
goto L_NotEnough;
set @temp, rand(4);
if(@temp == 0)
@@ -69,17 +74,24 @@ L_SNAKE:
set @mob_id, 1010; // Normal
if(@temp == 3)
set @mob_id, 1021; // Cave
- set @mob_count, rand(4) + 1;
- set Zeny, Zeny - 25000;
+ set @mob_count, rand(1,4);
+ set Zeny, Zeny - @cost_snake;
goto L_Summon;
L_Summon:
- monster @map$, @x, @y, "Evil", @mob_id, @mob_count;
- close;
- return;
+ areamonster @map$, @x0, @y0, @x1, @y1, "Evil", @mob_id, @mob_count;
+ goto L_Close;
L_NotEnough:
mes "You don't have that much money";
- close;
+ goto L_Close;
+
+L_Close:
+ set @cost_jacko, 0;
+ set @cost_gy1, 0;
+ set @cost_gy2, 0;
+ set @cost_skull, 0;
+ set @cost_snake, 0;
return;
+
}
diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt
index 01fc163c..7cc2bd63 100644
--- a/world/map/npc/functions/game_rules.txt
+++ b/world/map/npc/functions/game_rules.txt
@@ -30,13 +30,13 @@ L_English:
goto L_End;
L_German:
- mes "Wir bitten um das Einhalten der folgenden Regeln:";
+ mes "Wir bitten um das Einhalten folgender Regeln:";
mes "1. Keine Beleidigungen, Schimpfwörter, Schmähungen oder Rufmord.";
mes "2. Keine 'bots' (automatisierte Spieler). Dies beinhaltet JEGLICHE Teilnahme am Spiel während der Abwesenheit des Spielers. Es beinhaltet auch das automatisierte Folgen anderer Spieler.";
mes "3. Kein 'spamming' oder 'flooding' (schnelles Wiederholen von Nachrichten oder Aufforderungen zum Warenhandel).";
mes "4. Kein Betteln.";
- mes "5. Englisch ist die einzige zulässige Sprache im öffentlichen Raum.";
- mes "6. Behandelt andere so, wie Ihr behandelt werden wollt.";
+ mes "5. Englisch ist die einzig zulässige Sprache im öffentlichen Raum.";
+ mes "6. Behandele andere so, wie du selbst behandelt werden willst.";
mes "Jegliche Regelverstöße können bestraft werden, entweder durch ein Zurücksetzen der Charaktereigenschaften und -besitztümer auf den Ausgangszustand, oder durch einen temporären oder permanenten Ausschluss aus dem Spiel.";
next;
mes "Automatisiertes Spielverhalten liegt vor, wenn ein sich bewegender/kämpfender Spieler nicht intelligent auf Gesprächsaufforderungen reagiert.";
@@ -86,30 +86,29 @@ L_French:
goto L_End;
L_Spanish:
- mes "ATTENTION: this translation is outdated. Please refer to the English version and submit a patch.";
- mes "Los jugadores que infringan las normas siguientes pueden ser censurados( incluso de forma permanente) o se podran resetear sus cuentas a la discrecion de los administradores:";
- mes "1. No abuse de otros jugadores (incluye insultos, palabras mal sonantes , y demas dirigidos a una o varias personas en particular)";
- mes "2. No utilizar programas automaticos ( se entiende por esto cualquier actividad realizada sin que el jugador este tocando el teclado fisicamente)";
+ mes "Los jugadores que infringan las siguientes reglas pueden ser bloqueados (incluso permanentemente) o sus personajes reseteados segun la discrecion de los administradores.";
+ mes "1. No abuse de otros jugadores (esto incluye insultos, palabras mal sonantes, burlas, etc. dirigidas a una o varias personas)";
+ mes "2. No utilizar programas automaticos (esto hace referencia a cualquier tipo de actividad llevada a cabo sin que el jugador este tocando el teclado directamente o al seguimiento automatico)";
mes "3. No envie mensajes publicitarios o inunde el chat de mensajes (incluyendo los mensajes referidos al comercio en el juego)";
- mes "4. Esta prohibida cualquier forma de mendicidad";
- mes "5. Hable solamente en Ingles en el chat publico";
- mes "6. Trata a los demas de la misma manera que te gustaria ser tratado";
+ mes "4. No mendigar.";
+ mes "5. Escriba unicamente en Ingles en el chat publico";
+ mes "6. Trate a los demas de la misma forma que le gustaria ser tratado";
next;
- mes "El uso de programas automaticos se investigara hablando con jugadores que esten moviendose y/o atacando.";
+ mes "El uso de programas automaticos para jugar sin estar frente al teclado se determinara hablando con los jugadores que esten moviendose y/o atacando.";
+ mes "El seguimiento automatizado sera determinado por observacion.";
next;
goto L_End;
L_Swedish:
- mes "ATTENTION: this translation is outdated. Please refer to the English version and submit a patch.";
- mes "Spelare som bryter mot dessa regler riskerar att helt sonika bli utkastade (antingen under kort period eller permanent), den som kastats ut kan be en GM om att starta om sitt konto.";
- mes "1. Skymfa inte andra (svordomar och annat riktat till att skada en eller flera individer)";
- mes "2. Inga bottar (med bottande avses ALLA aktiviteter som sker bortom tangentbordet)";
+ mes "Spelare som bryter mot dessa regler riskerar att bli utkastade eller portade (antingen under kort period eller permanent), den som blivit portad/bannlyst ut kan be en GM om att starta om sitt konto.";
+ mes "1. Förolämpa inte medspelare (svordomar och annat riktat till att skada en eller flera individer)";
+ mes "2. Inga bottar (med bottande avses ALLA aktiviteter som sker när spelaren inte aktivt spelar eller styr sin karraktär)";
mes "3. Inget spammande/floodande (inklusive meddelanden om byteshandel)";
mes "4. Tigg inte";
mes "5. Prata bara engelska i den offentliga chatten";
mes "6. Behandla andra som du vill bli behandlad";
next;
- mes "Hysta misstankar om bottande kontrolleras genom att prata med spelaren under dess kringvandrande eller attackerande.";
+ mes "Vid misstankar om bottande kontrolleras detta genom att prata med spelaren under dess kringvandrande eller attackerande.";
next;
goto L_End;