starting gold

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: 20 Feb 2011, 22:09
Location: ^ ^

starting gold

Post by o11c » 31 Aug 2011, 06:50

In order to clean up my rewrite of the server, the following trivial content patch is necessary.

However, when I looked at the script, I was left wondering "why does the player even have any gold?"
sorfina wrote:"A group of ragtags immediately took advantage of that and stole all your stuff!"
It doesn't seem realistic that they would take your equipment but not your money.

And while having a spare shirt is reasonable, I personally don't see an old lady just giving away gold to a stranger, even a stranger in need.

---
But anyway, here's the patch that keeps the same behavior as now:

Code: Select all

From f6f98753d06909c47bb82a46d4afab0707efa4b6 Mon Sep 17 00:00:00 2001
From: Ben Longbons <b.r.longbons@gmail.com>
Date: Tue, 30 Aug 2011 22:39:35 -0700
Subject: [PATCH] give starting gold via script instead of start_zeny

---
 world/conf/char_athena.conf     |    8 ++++----
 world/map/npc/042-2/sorfina.txt |    1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/world/conf/char_athena.conf b/world/conf/char_athena.conf
index a719a5b..8ea1f99 100644
--- a/world/conf/char_athena.conf
+++ b/world/conf/char_athena.conf
@@ -46,14 +46,14 @@ backup_txt: save/athena_backup.txt
 // Start point, Map name followed by coordinates (x,y)
 start_point: 042-2.gat,26,26
 
-// Starting weapon for new characters
+// Starting weapon for new characters (deprecated)
 start_weapon: 0
 
-// Starting armor for new characters
+// Starting armor for new characters (deprecated)
 start_armor: 0
 
-// Starting zeny for new characters
-start_zeny: 50
+// Starting zeny for new characters (deprecated)
+start_zeny: 0
 
 // Name used for unknown characters
 unknown_char_name: Unknown
diff --git a/world/map/npc/042-2/sorfina.txt b/world/map/npc/042-2/sorfina.txt
index 17bfcf8..0d457aa 100644
--- a/world/map/npc/042-2/sorfina.txt
+++ b/world/map/npc/042-2/sorfina.txt
@@ -11,6 +11,7 @@
 
     callfunc "GameRules";
 L_Start:
+    set Zeny, 50;
     mes "You open your eyes.";
     mes "";
     mes "[Old Woman]";
-- 
1.7.6.1
Former programmer for the TMWA server.
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 718
Joined: 22 Sep 2010, 20:28

Re: starting gold

Post by Jenalya » 31 Aug 2011, 09:51

o11c wrote: However, when I looked at the script, I was left wondering "why does the player even have any gold?"
sorfina wrote:"A group of ragtags immediately took advantage of that and stole all your stuff!"
It doesn't seem realistic that they would take your equipment but not your money.

And while having a spare shirt is reasonable, I personally don't see an old lady just giving away gold to a stranger, even a stranger in need.
I agree that it doesn't make sense if all the equipment is stolen, but not the money.
But I think the player should have some starting gold, so why not make the player luckily meeting a very generous family there?
Here is a patch of how the player could get the starting money from the tutorial NPCs (to be applied after o11c's patch):

Code: Select all

From 3451932a69c0907285cf5398949fdb6bc7a49e24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jessica=20T=C3=B6lke?= <jtoelke@mail.upb.de>
Date: Wed, 31 Aug 2011 10:43:00 +0200
Subject: [PATCH] Tutorial: get the starting money with some storywise explanation

---
 world/map/npc/042-1/kaan.txt    |    4 ++++
 world/map/npc/042-2/sorfina.txt |   18 ++++++++++++------
 world/map/npc/042-2/tanisha.txt |    9 +++++++--
 3 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/world/map/npc/042-1/kaan.txt b/world/map/npc/042-1/kaan.txt
index 0b22ba6..e3998d1 100644
--- a/world/map/npc/042-1/kaan.txt
+++ b/world/map/npc/042-1/kaan.txt
@@ -64,6 +64,10 @@ L_Tanisha3:
     mes "\"Are you going to visit Tulimshar?";
     mes "The bazaar there is a wondeful place! Traders, entertainers, adventurers - it's very exciting.\"";
     next;
+    mes "\"Ah, I forgot. Without some money the bazaar is less fun I suppose.";
+    mes "Here, take this.\"";
+    set Zeny, Zeny + 15;
+    next;
     mes "\"And Ian the trainer is hanging around there often. You should talk to him, he's a smart guy.\"";
     set kaan, 2;
     if (hasan)
diff --git a/world/map/npc/042-2/sorfina.txt b/world/map/npc/042-2/sorfina.txt
index 0d457aa..efee998 100644
--- a/world/map/npc/042-2/sorfina.txt
+++ b/world/map/npc/042-2/sorfina.txt
@@ -11,7 +11,6 @@
 
     callfunc "GameRules";
 L_Start:
-    set Zeny, 50;
     mes "You open your eyes.";
     mes "";
     mes "[Old Woman]";
@@ -30,15 +29,15 @@ L_Start:
     mes "\"I can tell you some useful things, if you want to hear.";
     mes "Oh, and by the way my name is Sorfina.\"";
     next;
+    mes "[Server]";
+    mes "The explanations in this tutorial are based on the official client version 0.5.2";
+    mes "If you're using another client, settings and controls may be different.";
+    next;
     menu
         "That would be great!",L_Tut,
         "No, thanks. I already know how things are going.",L_SkipTut;
 
 L_Tut:
-    mes "[Server]";
-    mes "The explanations in this tutorial are based on the official client version 0.5.2";
-    mes "If you're using another client, settings and controls may be different.";
-    next;
     mes "She smiles at you.";
     mes "[Sorfina]";
     mes "\"A wise decision.\"";
@@ -81,7 +80,13 @@ L_Clothes:
     mes "\"Now you should go to see my granddaughter, she is very worried. She's in the storehouse, that's the second building southeast from here.\"";
     next;
     mes "\"Oh, and if you're looking for work, you should talk to Aidan when you go to Tulimshar. They're giving rewards for monster hunting.";
-    mes "You can find him near the south gate. Good luck.\"";
+    mes "You can find him near the south gate.\"";
+    next;
+    mes "She hesitates a moment.";
+    mes "\"[Sorfina]\"";
+    mes "\"And here is some money for you. At least you can buy yourself something to eat.";
+    mes "Good luck!\"";
+    set Zeny, Zeny + 30;
     set sorfina, 4;
     close;
 
@@ -219,6 +224,7 @@ L_SkipTut:
     set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
     getitem "Knife", 1;
     getitem "CottonShirt", 1;
+    set Zeny, Zeny + 50;
     mes "Good luck.\"";
     close;
 
diff --git a/world/map/npc/042-2/tanisha.txt b/world/map/npc/042-2/tanisha.txt
index aa3cc66..a4bbeb1 100644
--- a/world/map/npc/042-2/tanisha.txt
+++ b/world/map/npc/042-2/tanisha.txt
@@ -98,12 +98,17 @@ L_StatsRe:
     mes "[Tanisha]";
     mes "\"But I doubt he'd do that without a service in return.\"";
 
-    if (tanisha == 3) goto L_Advice;
+    if (tanisha == 3) goto L_Money;
     close;
 
-L_Advice:
+L_Money:
     next;
     mes "[Tanisha]";
+    mes "\"Hey, you are so smart taking out all that yucky maggots for me.";
+    mes "You can have my pocket money. Here.\"";
+    set Zeny, Zeny + 5;
+L_Advice:
+    next;
     mes "\"When you go to Tulimshar, you should see Bernard. He can make a delicious soup!";
     mes "Good luck!\"";
     emotion 3;
-- 
1.7.4.1

Post Reply