Jump to content
  • 0

Dungeon Quest


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

So, your warper will block players from warping into the dungeon unless they complete a quest first?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

not in warper, i mean in portal.. yes

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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 by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

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 by Jezu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

yes i know that jezu.. but i dont know how to make a quest script :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.04
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

//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 by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

thanks bVersatile, but i need a full script like checking if how many monsters i've killed, something like that.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Using quest variable will tell you every time you kill a monster, like "Quest Name - Poring [1/100]"

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

Emistry, its not working.. when i killed 300 porings, then i try to walk in portal.. nothing happens.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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 by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

how about when i talk to the portal, before the quest starts, there are some conversations.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

@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...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

@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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...