Issue information

Issue ID
#4964
Status
Unable to Fix
Severity
None
Started
Hercules Elf Bot
Jun 14, 2011 7:46
Last Post
Hercules Elf Bot
Apr 4, 2012 9:50
Confirmation
N/A

Hercules Elf Bot - Jun 14, 2011 7:46

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

ok ... in script_commands.txt this already explained

QUOTE (eAthena\doc\script_commands.txt)
*instance_init <instance id>;

Initializes the instance given by <instance id>. This copies all NPCs from the
source maps to the instanced maps.


but if I forgotten to use this command, the server doesn't tell any error

CODE
prontera,156,177,5    script    kjdhskjdh    100,{
    if ( getcharid(1) == 0 ) end;
    if ( set(.@ins, instance_create( "Poring Fun", getcharid(1) ) ) < 0 ) end;
    if ( instance_attachmap("2@cata", .@ins) == "" ) {
        instance_destroy .@ins;
        end;
    }
    warp "2@cata", 79,55;
    instance_set_timeout 60, 5;
//    instance_init .@ins; // forgot ...
    end;
}
2@cata,79,55,0    script    test    100,{ // this npc isn't show up, and NO ERROR ?
    select "destroy instance";
    instance_destroy;
    end;
}


it only tells error when someone hits an OnTouch npc

CODE
prontera,156,177,5    script    kjdhskjdh    100,{
    if ( getcharid(1) == 0 ) end;
    if ( set(.@ins, instance_create( "Poring Fun", getcharid(1) ) ) < 0 ) end;
    if ( instance_attachmap("2@cata", .@ins) == "" ) {
        instance_destroy .@ins;
        end;
    }
    warp "2@cata", 79,55;
    instance_set_timeout 60, 5;
//    instance_init .@ins; // forgot ...
    end;
}
2@cata,79,55,0    script    test    -1,0,0,{ // now a weird error
OnTouch:
    announce "Welcome "+ strcharinfo(0) +" into our private ... ERROR room !", bc_map;
    // ok ... at least bc_map works fine, no need to use instance_announce if there's a RID
    end;
}


CODE
[Error]: npc_touch_areanpc : stray NPC cell on coordinates '001#2@cata',79,55


and this error doesn't make sense too

it should say something like... failed to copy ... or create instance npc without instance_init

This post has been edited by ~AnnieRuru~: Jun 14 2011, 12:48 AM

Hercules Elf Bot - Dec 13, 2011 11:41

Originally posted by [b]GodLesZ[/b]
First of all, the strying cell message has been clarified a bit.
But its not possible to popup a message if an npc should be placed on a not-yet loaded map.

Maybe we should thinking about a way for testing issues like this using a server mode or something like this.