Page 1 of 1

i was thinking why can't a monster drop candy apples

Posted: 31 Mar 2013, 05:14
by sango98
Well i was thinking since candy apples are very helpful in illia quest why can't a monster drop them it can be a rare drop and why not have a monster like the reinboo drop it since it already drops sweets like cakes , ginger bread men , xmas cake

just putting it out there .


Image=Image

Re: i was thinking why can't a monster drop candy apples

Posted: 31 Mar 2013, 09:16
by Chicka-Maria
Candy Apples were used in an old halloween quest. You can get them in the illia quest if you be careful as well. I don't think they should become a regular drop though.

regards,

Re: i was thinking why can't a monster drop candy apples

Posted: 01 Apr 2013, 05:57
by sango98
they don't spawn in that tiny room anymore i hadn't seen them in a few months lately kinda why i suggest the reinboo

Re: i was thinking why can't a monster drop candy apples

Posted: 01 Apr 2013, 06:49
by Nard
Sango, it in likely that you could not get some for such a long time:

I'll try to explain:

In source code, at the address:
https://github.com/themanaworld/tmwa-se ... torage.txt,
you can see:

Code: Select all

052-2.gat,1,1,0|script|#ItemsInvoker|127,{
end;

onInit:
    setarray $@illia_storage_items, 541, 567, 568, 562;
    setarray $@illia_storage_special_items, 687, 827, 1229;
    // Map coords : x1,y1, x2,y2, ...
    setarray $@illia_storage_item_points, 20,67, 22,75, 27,71, 30,73, 34,76, 30,64, 34,65, 34,62, 21,61, 22,64;
    end;
[...]

L_ItemSpawn:
    // This section will decide what to spawn: special monster, monster, item, special item
    // Calculation uses a decreasing variable which introduces a deviation.
    // Its initial value is based on $@Illia_Luvia_Harvest
    // * first decide (50% / 50%) if the deviation will be positive or negative
    // * Apply the deviation to a random number between 0, 100. (note the final value can be < 0 or > 100)
    // The purpose is that, when the initial deviation is high, there are high chances to get either
    // a special monster, or a special item.
    set @m, rand(100);
    if (@m < 50)
        set @r, rand(100) - $@illia_storage_deviation;
    if (@m >= 50)
        set @r, rand(100) + $@illia_storage_deviation;
[...]
    if (@r > 98)
        goto L_MakeSpecialItem;
[...]


L_MakeSpecialItem:
    makeitem $@illia_storage_special_items[rand(getarraysize($@illia_storage_special_items))], rand(2, 4), "052-2.gat", $@item_invoke_x, $@item_invoke_y;
    areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onWow";
    set $@illia_storage_max_items, $@illia_storage_max_items - 1;
    set @r, 0;
    end;

Caramel Apple is item number 1229 (in the array list: $@illia_storage_special_items, 687, 827, 1229;). Others are large healing potion (687) and Medium Mana Elixir (827).
It means, if I am not wrong, that you can get them if quest level is higher than 50, then you have only 2% chances (if (@r > 98) statement) to get a "special item". (Rare items must stay rare, it is a choice by the developers' team)