Issue Information
-
#004964
-
0 - None Assigned
-
Unable to Fix
Issue Confirmations
-
Yes (0)No (0)
Originally posted by ~AnnieRuru~
http://www.eathena.w...er&showbug=4964
ok ... in script_commands.txt this already explained
but if I forgotten to use this command, the server doesn't tell any error
it only tells error when someone hits an OnTouch npc
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
http://www.eathena.w...er&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.
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;
}
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;
}
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