Giant Whisper Posted June 25, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Share Posted June 25, 2019 (edited) Hello when entering a map I would like the summon monster dies I do not get error in console when entering the map with summon - script Sample -1,{ OnInit: set .Map$,"prt_fild01"; setmapflag .Map$,mf_loadevent; end; OnPCLoadMapEvent: if(mobcount( .Map$,"Summon::On"+strcharinfo(3)+"") == 1 ) && (getcharid(0)){ killmonster.Map$,"Summon::On"+strcharinfo(3)+""; end; } else { end; } } Edited June 25, 2019 by Giant Whisper Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted June 25, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted June 25, 2019 i would suggest you add the error you get , if you want a faster answer Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted June 25, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted June 25, 2019 no error comes out just does not do anything Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted June 25, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted June 25, 2019 oh sorry , i miss-read the topic i see there is a messing Bracket in the script , also there is no need to check for the charid as it's not 0 for sure, but you better check for the map name (before the monster count) also are you sure about the event name ? so in your script case the npc name is "Summon" and the event is "Onprt_fild01" == Summon::Onprt_fild01 - script Sample -1,{ OnInit: set .Map$,"prt_fild01"; setmapflag .Map$,mf_loadevent; end; OnPCLoadMapEvent: if(strcharinfo(3) == .Map$ && mobcount( .Map$,"Summon::On"+strcharinfo(3)) == 1 ){ killmonster.Map$,"Summon::On"+strcharinfo(3); } end; } Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted June 25, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted June 25, 2019 I use @summon 1002 and when I enter the map the summon does not die Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted June 26, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted June 26, 2019 when you @summon = no event label = mobcount command with a label wont work you should make sure that the monster have a label for the script to work Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted June 26, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted June 26, 2019 I use consumable items from summon mob as it could be done so that the summon does not enter the map Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted June 26, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted June 26, 2019 what the item script ? Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted June 26, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted June 26, 2019 are items that make a summon monster appear but I would like that the summon mob does not enter into some map that is the item script 62068,Sporing,SPoring,1,0,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ progressbar "0x00FF00",1; if(mobcount(strcharinfo(3),"Summon::On"+getcharid(0))) { killmonster strcharinfo(3),"Summon::On"+getcharid(0); } else { summon "Slave Poring",26127,100*60000,"Summon::On"+getcharid(0); } },{},{} Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted July 9, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted July 9, 2019 try this 62068,Sporing,SPoring,1,0,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ progressbar "0x00FF00",1; if(mobcount(strcharinfo(3),"Summon_NPC::OnSummon")) { killmonster strcharinfo(3),"Summon_NPC::OnSummon"; } else { summon "Slave Poring",26127,100*60000,"Summon_NPC::OnSummon"; } },{},{} - script Summon_NPC -1,{ OnInit: set .Map$,"prt_fild01"; setmapflag .Map$,mf_loadevent; end; OnPCLoadMapEvent: if(strcharinfo(3) == .Map$ && mobcount( .Map$,"Summon_NPC::OnSummon") == 1 ){ killmonster.Map$,"Summon_NPC::OnSummon"; } end; OnSummon: end; } Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted July 9, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted July 9, 2019 the summon still does not die when entering the map Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted July 9, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 19 hours ago Share Posted July 9, 2019 (edited) 17 minutes ago, Giant Whisper said: the summon still does not die when entering the map any error/warning in the console ? Edited July 9, 2019 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 Giant Whisper Posted July 9, 2019 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 190 Reputation: 3 Joined: 04/11/12 Last Seen: March 24 Author Share Posted July 9, 2019 no error is that possible? summon can not enter that map, and if it enters he dies Quote Link to comment Share on other sites More sharing options...
Question
Giant Whisper
Hello when entering a map I would like the summon monster dies
I do not get error in console when entering the map with summon
- script Sample -1,{
OnInit:
set .Map$,"prt_fild01";
setmapflag .Map$,mf_loadevent;
end;
OnPCLoadMapEvent:
if(mobcount( .Map$,"Summon::On"+strcharinfo(3)+"") == 1 ) && (getcharid(0)){
killmonster.Map$,"Summon::On"+strcharinfo(3)+"";
end;
} else {
end;
}
}
Link to comment
Share on other sites
12 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.