Limestone Posted September 30, 2012 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
GmOcean Posted September 30, 2012 Posted September 30, 2012 So, your warper will block players from warping into the dungeon unless they complete a quest first? Quote
Limestone Posted September 30, 2012 Author Posted September 30, 2012 not in warper, i mean in portal.. yes Quote
GmOcean Posted September 30, 2012 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
Jezu Posted September 30, 2012 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
Limestone Posted September 30, 2012 Author Posted September 30, 2012 yes i know that jezu.. but i dont know how to make a quest script Quote
PewN Posted September 30, 2012 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
Limestone Posted September 30, 2012 Author 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
Bin4ry Posted September 30, 2012 Posted September 30, 2012 Using quest variable will tell you every time you kill a monster, like "Quest Name - Poring [1/100]" Quote
Emistry Posted September 30, 2012 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
Limestone Posted September 30, 2012 Author 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
Bin4ry Posted September 30, 2012 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
Limestone Posted September 30, 2012 Author Posted September 30, 2012 Emistry, its not working.. when i killed 300 porings, then i try to walk in portal.. nothing happens. Quote
GmOcean Posted September 30, 2012 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
Limestone Posted September 30, 2012 Author Posted September 30, 2012 how about when i talk to the portal, before the quest starts, there are some conversations. Quote
Emistry Posted September 30, 2012 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
GmOcean Posted September 30, 2012 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
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.
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.