Issue information

Issue ID
#3925
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Dec 10, 2009 19:52
Last Post
Hercules Elf Bot
Dec 10, 2009 19:52
Confirmation
N/A

Hercules Elf Bot - Dec 10, 2009 19:52

Originally posted by [b]Epoque[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3925

When trying to create a quest, I ran into a problem when trying to assign a character-attached variable an array.

After my first attempt failed several times, I redesigned the NPC to use this code:

CODE
setarray FloraList[0], 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1;

This should set values FloraList[0~20] to '1'. However, I receive the following error message on the map-server:

CODE
[Error]: script:getelementofarray: illegal scope
[Debug]: Data: variable name='FloraList'
[Debug]: Source (NPC): Lost Mistress at hugel (177,211)-;

This also occurred when I initially tried to use:

CODE
deletearray FloraList[0], 127;

Full snippet of code surrounding this setarray.

CODE
mes "[^0000AAMadame Lily^000000]";
mes "Listen, I am a lady of flowers. I love nature, and I love the beauty and sweet scent of flora.";
next;

set ArmyRecruit, 3;
set FloraChance, 0;
setarray FloraList[0], 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1;
            
mes "[^0000AAMadame Lily^000000]";
mes "If you can bring me some flowers, I may be persuaded to speak to the Major.";
close;


This post has been edited by Epoque: Dec 10 2009, 11:56 AM