i tried to convert abyss dungeon to instance now i can spawn when instance create but when player kill monster monster note respawn
Lasted code i tried to use OnNPCKillEvent
Mapserver Msg when kill monster :
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
Question
edwardluciano
i tried to convert abyss dungeon to instance now i can spawn when instance create but when player kill monster monster note respawn
Lasted code i tried to use OnNPCKillEvent
Mapserver Msg when kill monster :
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
1@abyss_03,0,0,0 script AbyssLake HIDDEN_WARP_NPC,{ OnInstanceInit: set .@map$, instance_mapname("1@abyss_03"); //set .@label$, instance_npcname(strnpcinfo(0))+"::OnMobDead"; monster .@map$,0,0,"Acidus",1713,60,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Dragon Egg",1721,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Mimic",1191,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Acidus",1716,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Ancient Mimic",1699,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Ferus",1714,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Ferus",1717,10,strnpcinfo(0)+"::OnMobDead"; monster .@map$,0,0,"Hydrolancer",1720,3,strnpcinfo(0)+"::OnMobDead"; end; OnMobDead: //set .@map$, instance_mapname("1@abyss_03"); setarray .Mob_id[0] ,1713 ,1721 ,1191 ,1716 ,1699 ,1714 ,1717 ,1720; for(.@i = 0; .@i < getarraysize(.Mob_id); .@i++) { if (killedrid == .Mob_id[.@i]) { monster instance_mapname("1@abyss_03"),0,0,"--ja--",.Mob_id[.@i],1,strnpcinfo(0)+"::OnMobDead"; } } end; }
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.