From The Mana World
(Blanked the page)
 
Line 1: Line 1:
=Concept=
Lora Tay says she can sew Silk Robes provided you give her some silk sheets.


*"Six sheets should do fine, if they're the usual double-elbow squares."
When you ask her how to get silk sheets, she answers :
*"Oh, '''Hetchel''' on the Tulimshar Marketplace can weave them for you."
But :
*"I didn't see her there the last time I visited, though. She may be visiting family. Tough luck."
The idea is to make '''Hetchel''' availabe in a market or in her workshop, at random times in the week; let's say three days a week, when she is not visiting her family.
She should sell silk sheets provided the player gives raw material:
*Since a robe is 150 Silk cocoons, 6 sheets= 150 silk cocoons thus: '''1 sheet is 25 silk cocoons'''.
*Sell price: Hurnscald-Tulimshar travel :500 gp (*2). The sheet price should be (10000-1000-LoraCraftingFee)/6 = 1500gp max. If we assume a LoraCraftingFee with sheets of 6000, 3000/6=500 is left for each sheet.
'''Note :''' After the Agostine is completed, Lora also says :
:"She glares at your boots, her lips forming barely more than a thin line.  Deep furrows form above her brows."
:"I can't believe it!  He copied '''Illana''''s design but used fluffy fur in place of '''ice wolf fur'''
:"Fluffy fur!  Of all things!  Who would wear such an atrocity of fashion!  Everyone knows that you need '''ice-white''', not pale-white, to go with such leather!"
It might be interesting to find '''Illana''' somewhere in Kaizei and make her craft wolvern pelt boots, gloves, hat.... (maybe all leather goods: squirrel gloves):
=To do=
==Graphics==
[[File:NPCHetchel.png|thumb|left|400px|<span style="font-size: smaller;">Hetchel</span>]]
*NPCHetchel (Graphics by Chef Chelios)
*ItemSilkSheet
(They should be dyable)
[[File:Generic-Silk-sheet-1.png]]    [[File:Generic-silk-sheet-2.png‎ ]]
==databases==
*create Hetchel script (hetchel.txt)
*Hetchel.xml :
<nowiki>
<?xml version="1.0"?>
<sprite>
  <imageset name="base" src="graphics/sprites/npcs/npc-hetchel.png" width="64" height="61"/>
  <action name="stand" imageset="base">
    <animation direction="default">
      <frame index="0"/>
    </animation>
  </action>
</sprite></nowiki>
*npc.xml :
<nowiki>
  <!-- Blonde girl with yellow silk robe and glasses -->
  <npc id="376">
    <sprite>npcs/npc-hetchel.xml</sprite>
  </npc>
</nowiki>
*add Silk Sheet to Itemdb
#ID,    Name,                          Label,                              Type,  Price,      Sell,      Weight,    ATK,    DEF,    Range,  Mbonus, Slot,  Gender, Loc,        wLV,    eLV,    View,  {UseScript},                                                            {EquipScript}
881,    SilkSheet,                      Silk Sheet,                          3,      1000,      250,      5,        ,      ,      ,      ,      ,      ,      ,          ,      ,      ,      {},                                                                    {}
*add Silk Sheet item description :
    <item id="891"
        image="generic/SilkSheet.png|W:#87876c,bbc39c,edf4e1,ffffff"
        name="Silk Sheet"
        description="A double-elbow silk sheet square"
        type="generic"
        weight="5"/>
**'''note : '''verify the color and the dyable object syntax.
*
==Script Code==
*Hetchel  :  create
** add constants :
:::{|
|-
| Hetchel Code :
|-
| <pre>    set @SHEET_COCOONS_NR, 25;
    set @SHEETS_ZENY, 500;</pre>
|}
*Lora Tay : modify script to allow sheet use
** add globals :
:::{|
|-
|<pre>    set @ROBE_SHEETS_NR, 6;
    set @ROBE_SHEETS_ZENY, 6000;</pre>
|}
** modify subs at labels L_robe, L_robe_menu, L_robe_nosilk,
==Hetchel==
Hetchel is supposed to be located ar the Tulimshar's Bazaar (001-1), but she could also be located in Tulimshar center (021-1), In Nothern market in the workshop (021-2), or in her workshop (to be designed and added to 021-2)
<pre>
//  Hetchel the Silk Weaver
//  bh, GPLv2
//  Graphics by ChefChelios CC BY SA
//  Hetchel is referred to by Lora Tay.
//  She weaves and sells standard double elbow square silk sheets.
//  She could also sell, dyed sheets, Silk robes from Lora Tay.
//  (6000 with cocoons, 40000 (?) with no cocoons).
//
//  Hetchel's workshop is actually under repair, Shé'll be back in 021-2 when workers have finished their job.
//
//  QUEST_WG_state: Global variable indicating winter gloves status.
//  Lora Tay proposes silk Robe if (QUEST_WG_state>= 11).
//  @SHEET_COCOONS_NR : Number of cocoons required per sheet.
//  Might ne calculated from @ROBE_COCOONS_NR/@ROBE_SHEETS_NR
//  Actually: 150∕6 = 25
//  @SHEET_ZENY      : Money to pay per sheet: A sixth of 10000-2*500-6000
//  @SheetCount Number of sheets to buy (variable).
021-1.gat,120,39,0|script|Hetchel|376,{
    set @SHEET_COCOONS_NR, 25;
    set @SHEET_ZENY, 500;
    set @SheetCount 0;
    if (QUEST_WG_state < 11)
        goto L_WG_quest_not_done;
    mes "[Hetchel the weaver]";
    mes "Hello I am Hetchel, I weave fine textiles, what can I do for you?";
    menu
        "Sorry to bother, I'm just visting.", L_end,
        "I am looking for silk sheets, Lora Tay told me that I could find some in this market. Can you help?", -;
    next;
    goto L_main_menu;
L_WG_quest_not_done:
    mes "[Hetchel the weaver]";
    mes "\"Hello I am Hetchel, I weave fine textiles.";
    mes "My best client is Lora Tay, at Dimond's.";
    mes "What can I do for you?\"";
    menu
        "Sorry to bother, I'm new to this country, just visting.", L_end,
        "What are you selling?", -;
    next;
L_main_menu:
    mes "[Hetchel the weaver]";
    mes "\"I have some silk sheets: double-elbow squares";
    menu
        "I'm not interested at the moment, maybe later; thanks anyway.", L_end,
        "Can I buy some?", -;
//        "Do you have any silk robe I could buy?", L_robe,
//        "Goodbye.", L_end;
    mes "[Hetchel the Weaver]";
    mes "\"Sure but you need to provide raw materials.";
    mes "I'll need " + @SHEET_COCOONS_NR +" silk cocoons per sheet,";
    mes "and also " + @SHEET_ZENY +" GP per sheet for my work.\"";
    next;
    if (countitem("SilkCocoon") == 0)
        goto L_sheet_no_cocoon;
L_sheet_menu:
    menu
        "I have what you asked for.", -,
        "Sorry I didn't pay attention enough, what do you need?", L_how_many_cocoons,
        "Oops! Sorry, I'll come back soon with them.", L_end;
    next;
L_sheet:
    mes "How many would you like?";
    input @SheetCount;
    if (@SheetCount == 0)
        goto L_zero_sheet;
    if (countitem("SilkCocoon") < @SheetCount * @SHEET_COCOONS_NR)
        goto L_sheet_missing_cocoons;
    if (Zeny < @SheetCount * @SHEET_ZENY)
        goto L_sheet_missing_Zeny;
    getinventorylist;
    if (@inventorylist_count == 100 && countitem("SilkCocoon") > @SheetCount * @SHEET_COCOONS_NR)
        goto L_TooMany;
    set Zeny, Zeny - @SheetCount * @SHEET_ZENY;
    delitem "SilkCocoon", @SheetCount * @SHEET_COCOONS_NR;
    getitem "Silksheet", @SheetCount;
    mes "[Hetchel the Weaver]";
    mes "\"Thank you, I hope the sheets will fit your needs.";
    mes "Please greet Lora for me when you see her.\"";
    emotion EMOTE_HAPPY;
    goto L_end;
L_sheet_missing_cocoons:
    mes "[Hetchel the Weaver]";
    mes "I'm sorry, but I need " + @SheetCount * @SHEET_COCOONS_NR + ", not " + countitem("SilkCocoon") + ".";
    goto L_end;
L_sheet_missing_Zeny:
    mes "[Hetchel the Weaver]";
    mes "\"No, no no. The way this works is that you give me the GP first and I give you the sheets afterwards.";
    mes "You're " + (@SheetCount * @SHEET_ZENY - Zeny) + " GP short, so come back when you can afford the sheets you asked for!\"";
    goto L_end;
L_how_many_cocoons:
    mes "[Hetchel the Weaver]";
    mes "\"I need an average of " + @SHEET_COCOONS_NR + " cocoons per sheet";
    mes "and also " + @SHEET_ZENY + " GP per sheet for my work.\"";
    next;
    goto L_sheet_menu;
L_sheet_no_cocoon:
    mes "[Hetchel the Weaver]";
    mes "\"You don't have any cocoon? I'm sorry I can't do anything for you.\"";
    menu
        "I'll seek for them.", L_end,
        "Where can I get cocoons?", -;
    next;
    mes "[Hetchel the Weaver]";
    mes "\"Silk cocoons come from Silkworms. Silkworms live in the woodland area around Hurnscald.";
    mes "Silkworms like especially woods and dark areas. You can go there by ferry.\"";
    goto L_end;
//L_robe:
//    mes "[Hetchel the Weaver]";
//    mes "\"I am not a seamstress but I have a few silk robes from Lora Tay left.";
//    mes "It is not your size as Lora made them for me, but Tondar was kind enough";
//    mes "to cast a spell on it, so that it will fit to you as soon as you wear it.";
//    mes "However his prices are not that low.\"";
//    next;
//
//L_robe_menu:
//    goto L_main_menu;
L_zero_sheet;
    mes "It's the best way to get quickly served!";
    goto L_end;
L_TooMany:
    mes "[Hetchel the Weaver]";
    mes "\"Your bag hasn't room enough. Store some things and come back.\"";
L_end:
    set @SHEET_COCOONS_NR, 0;
    set @SHEET_ZENY, 0;
    set @SheetCount 0;
    close;
}
</pre>
==Lora Tay ==
Lora Tay is ar Dimond's cove 3rd foor,  (010-2)
[https://github.com/themanaworld/tmwa-server-data/blob/master/world/map/npc/010-2/loratay.txt tmwa-server-data/blob/master/world/map/npc/010-2/loratay.txt]
<pre>
L_robe:
    mes "[Lora Tay the Seamstress]";
    mes "\"A robe? Well, as long as you're not asking me to make it out of cotton...\"";
    next;
    if (countitem("SilkCocoon") == 0)
        goto L_robe_nosilk;
L_robe_menu:
    menu
        "Here, I have some silk cocoons!", -,
        "Here, I have some silk sheets!", L_robe_nosilk,
        "Where can I find silk?", L_where_silk,
        "How much silk do you need?", L_how_much_silk,
        "Oh, never mind.", L_main_menu;
    mes "[Lora Tay the Seamstress]";
    mes "The seamstress stares at you as if you had gone out of your mind.";
    mes "\"And what precisely do you expect me to do with Silk Cocoons? String them together in some baubly chain? Somehow remove the thread and spin and weave it so that some random person can have their robe?\"";
    next;
    menu
        "Will you trade cocoons for sheets?", -,
        "Never mind.", L_main_menu;
    mes "[Lora Tay the Seamstress]";
    mes "Lora frowns.";
    mes "\"It's not all that easy to get properly processed silk around here. Easier for me than for you, I admit...\"";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "She sighs.";
    mes "\"All right, very well then. I have enough spare silk sheets right now, but you pay the silk processing for your cocoons.\"";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "\"Let's see... " + @ROBE_COCOONS_NR + " silk cocoons and " + @ROBE_ZENY + " GP should just about cover that.\"";
    next;
    menu
        "I'm not interested.", L_main_menu,
        "Very well then, here you are.", -;
    if (countitem("SilkCocoon") < @ROBE_COCOONS_NR)
        goto L_robe_missing_cocoons;
    if (Zeny < @ROBE_ZENY)
        goto L_robe_missing_Zeny;
    getinventorylist;
    if (@inventorylist_count == 100 && countitem("SilkCocoon") > @ROBE_COCOONS_NR)
        goto L_TooMany;
    set Zeny, Zeny - @ROBE_ZENY;
    delitem "SilkCocoon", @ROBE_COCOONS_NR;
    getitem "SilkRobe", 1;
    mes "[Lora Tay the Seamstress]";
    mes "The seamstress puts your cocoons and GP away, takes your measurements and pulls out several silk sheets. She asks you to stretch out your arms, then pins the silk sheets in place all over your body.";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "She proceeds to make a number of mysterious marks on the sheets with a charcoal pen. Meanwhile, your arms are getting tired, but you're afraid to lower them-- she used a lot of pins to put everything into place, and you lost track of where they went...";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "\"Splendid.\"";
    mes "After removing the sheets (and pins!), she picks up a pair of scissors and plows through the cloth at her usual amazing pace, only stopping briefly to sew together parts here and there.";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "She then treats the seams with some odorless liquid, making them vanish completely. Finally she hands you the finished robe.";
    mes "\"Here you are now, this will fit. And don't you dare tell anyone that I did this! I'm not about to start a silk cocoon collection!\"";
    next;
    goto L_main_menu;
L_robe_missing_cocoons:
    mes "[Lora Tay the Seamstress]";
    mes "\"" + @ROBE_COCOONS_NR + " cocoons is what I said, not " + countitem("SilkCocoon") + ".";
    mes @ROBE_COCOONS_NR + " is " + (@ROBE_COCOONS_NR / 10) + " as many times as you have fingers, in case that helps.\"";
    next;
    goto L_main_menu;
L_robe_missing_Zeny:
    mes "[Lora Tay the Seamstress]";
    mes "\"No, no no. The way this works is that you give me the GP first and I give you the robe afterwards. You're " + (@ROBE_ZENY - Zeny) + " GP short, so come back when you can afford the robe!\"";
    next;
    goto L_main_menu;
L_where_silk:
    mes "[Lora Tay the Seamstress]";
    mes "\"Oh, Hetchel on the Tulimshar Marketplace can weave them for you.\"";
    next;
    mes "[Lora Tay the Seamstress]";
    mes "She hesitates.";
    mes "\"I didn't see her there the last time I visited, though. She may be visiting family. Tough luck.\"";
    next;
    goto L_robe_menu;
L_how_much_silk:
    mes "[Lora Tay the Seamstress]";
    mes "\"Six sheets should do fine, if they're the usual double-elbow squares.\"";
    next;
    goto L_robe_menu;
L_robe_nosilk:
    mes "[Lora Tay the Seamstress]";
    mes "\"What is that? You don't have any silk? Well, you're out of luck, I would say. I shan't make one out of those cotton rags; you might as well be wearing an apple sack.\"";
    next;
    goto L_main_menu;
L_end:
    close;
</pre>

Latest revision as of 06:54, 8 July 2013