Issue Information
-
#004880
-
3 - Medium
-
Confirmed
Issue Confirmations
-
Yes (0)No (0)
Originally posted by ~AnnieRuru~
http://www.eathena.w...er&showbug=4880
http://www.eathena.w...howtopic=270811
there are 2 errors
1.
map-server throw this error
shouldn't the error should say something like ... missing party ID or something like that ?
because script_commands.txt confused me like this
I tried add 3rd field for it, it says expected ','
you guys plan to do something with it ?
2.
the script works
after I kill poring, the instance do destroy though
but why this error pops up ?
http://www.eathena.w...er&showbug=4880
http://www.eathena.w...howtopic=270811
there are 2 errors
1.
CODE
prontera,157,186,5 script create instance 100,{
set .@inst, instance_create("sfdfsdf", getcharid(1));
end;
}
if the player doesn't has a party test with this npcset .@inst, instance_create("sfdfsdf", getcharid(1));
end;
}
map-server throw this error
CODE
[Error]: map_instance_create: missing parameter.
[Error]: buildin_instance_create: Missing parameter [-2].
that's confusing error[Error]: buildin_instance_create: Missing parameter [-2].
shouldn't the error should say something like ... missing party ID or something like that ?
because script_commands.txt confused me like this
QUOTE (eAthena\doc\script_commands.txt)
*instance_create("<Instance Name>",<Party ID>,<Instance>)
that <Instance> field is not usedI tried add 3rd field for it, it says expected ','
you guys plan to do something with it ?
2.
CODE
prontera,150,180,0 script instance creator 123,{
setmapflag "1@tower",mf_loadevent;
set .@instance, instance_create("1@tower", getcharid(1));
if ( .@instance < 0 ) {
mes "Failed to create the instance!";
close;
}
if( instance_attachmap("1@tower", .@instance) == "" ) {
instance_destroy(.@instance);
mes "Failed to attach 1@tower as a map!";
close;
}
instance_set_timeout(10,10,.@instance);
instance_init(.@instance);
set .@a$,has_instance("1@tower");
set @instance,.@instance;
warp "1@tower",100,100;
monster .@a$,100,100,"Test Poring",1002,1,"instance creator::OnEndInstance";
end;
OnEndInstance:
warp "Save",0,0;
//sleep2 1; // why do we need to put sleep2 to prevent aFree error ?
instance_destroy(instance_id(@instance));
end;
}
setmapflag "1@tower",mf_loadevent;
set .@instance, instance_create("1@tower", getcharid(1));
if ( .@instance < 0 ) {
mes "Failed to create the instance!";
close;
}
if( instance_attachmap("1@tower", .@instance) == "" ) {
instance_destroy(.@instance);
mes "Failed to attach 1@tower as a map!";
close;
}
instance_set_timeout(10,10,.@instance);
instance_init(.@instance);
set .@a$,has_instance("1@tower");
set @instance,.@instance;
warp "1@tower",100,100;
monster .@a$,100,100,"Test Poring",1002,1,"instance creator::OnEndInstance";
end;
OnEndInstance:
warp "Save",0,0;
//sleep2 1; // why do we need to put sleep2 to prevent aFree error ?
instance_destroy(instance_id(@instance));
end;
}
the script works
after I kill poring, the instance do destroy though
but why this error pops up ?
CODE
[Error]: Memory manager: args of aFree 0x09D24154 is invalid pointer d:\eathena\src\map\map.c line 226