Jump to content
  • 0

Dungeon Quest


Question

16 answers to this question

Recommended Posts

Posted (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 by GmOcean
Posted (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 by Jezu
Posted (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 by bVersatile
Posted

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

Posted (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 by darristan
Posted (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 by GmOcean
Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...