Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted September 30, 2012 can i request a script like this, before player can enter a dungeon, player must kill first 300 monsters. but the quest must be in warp npc. thank you. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 30, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 30, 2012 So, your warper will block players from warping into the dungeon unless they complete a quest first? Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 not in warper, i mean in portal.. yes Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 30, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 30, 2012 (edited) Edit: Look at post below, it gives a bit of advice on how to build the script. P.S: I'm sure there are simliar scripts/topics floating around here in rAthena. And if not, i'm 100% positive there are some in eAthena's old forums. Edited September 30, 2012 by GmOcean Quote Link to comment Share on other sites More sharing options...
Jezu Posted September 30, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Share Posted September 30, 2012 (edited) You can add check #DungeonQuest,1; then on warper script, you will add if statement like this so they cannot enter the dungeon. if(#DungeonQuest == 0) { mes "You need to take the Dungeon Quest blah blah to enter this dungeon! "; warp "SavePoint",0,0; } Edited September 30, 2012 by Jezu Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 yes i know that jezu.. but i dont know how to make a quest script Quote Link to comment Share on other sites More sharing options...
PewN Posted September 30, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share Posted September 30, 2012 (edited) //Quest ID,Time Limit,Target1,Val1,Target2,Val2,Target3,Val3,Quest Title 60xxx,0,0,0,0,0,0,0,"Name of your quest" on npc. setquest 60xxx; Edited September 30, 2012 by bVersatile Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 thanks bVersatile, but i need a full script like checking if how many monsters i've killed, something like that. Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 30, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 30, 2012 Using quest variable will tell you every time you kill a monster, like "Quest Name - Poring [1/100]" Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 30, 2012 something like this ? prontera,155,181,5 script Sample 45,{ if( @Count < 300 ){ dispbottom "Killed "+@Count+"/300 Poring."; } warp "prontera",155,181; end; OnNPCKillEvent: if( killedrid == 1002 && @Count < 300 ){ set @Count,@Count + 1; dispbottom "Killed "+@Count+"/300 Poring."; } end; } if you want the kill count saved even after they logout...then change @Count to Count // Character based or #Count // Account based Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 thanks emistry, but how can i create this npc as a portal? if the player walked into the portal. the npc message will pop up. Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 30, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 30, 2012 (edited) It is already showing as a portal sprite. But if you want walk by instead of talking to portal. Use OnTouch label. Change the 2,2, to the range you wanted to toggle OnTouch label. prontera,155,181,5 script Sample 45,2,2,{ end; OnTouch: <script here> } Edited September 30, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 Emistry, its not working.. when i killed 300 porings, then i try to walk in portal.. nothing happens. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 30, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 30, 2012 (edited) prontera,155,181,5 script Sample 45,2,2{ end; OnTouch: if( @Count < 300 ){ dispbottom "Killed "+@Count+"/300 Poring."; end;} warp "map_name",x,y; end; OnPCLoginEvent: set @Count,Count; set Count,0; end; OnPCLogoutEvent: set Count,@Count; end; OnNPCKillEvent: if( killedrid == 1002 && @Count < 300 ){ set @Count,@Count + 1; dispbottom "Killed "+@Count+"/300 Poring."; } end; } Edited September 30, 2012 by GmOcean Quote Link to comment Share on other sites More sharing options...
Limestone Posted September 30, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted September 30, 2012 how about when i talk to the portal, before the quest starts, there are some conversations. Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 30, 2012 @Rage everything is given to you...just edit accordingly....... @GMOcean erm, in my opinion, @Count is not needed if you save the data using a permanent character variable...xD no extra work / process is required to save the data to another temporary variable... Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 30, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 30, 2012 @Emistry Yea I know lol, but i merely just Copy&Pasted your existing script and made changes/additions. Didn't feel like replacing the variables since it wasn't my script to begin with lol. Quote Link to comment Share on other sites More sharing options...
Question
Limestone
can i request a script like this,
before player can enter a dungeon, player must kill first 300 monsters. but the quest must be in warp npc. thank you.
Link to comment
Share on other sites
16 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.