Jump to content
  • 0

Requesting for modification of hidden quest


Dolphin86

Question


  • Group:  Members
  • Topic Count:  255
  • Topics Per Day:  0.06
  • Content Count:  706
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

i have a script made by a friend, someone the script is not complete and my friend is out of reach atm, 

the objective is when a player kill 10 poring, player will get a massage " congratulation you have unlock hidden quest, would you like to accept this quest?"

in the massage it will tell you what is the quest name, how many monster does a player need to kill and the reward, i do plan to use on other monster kill for this hidden quest.

example :

-kill 10 poring will trigger a quest offer, kill 100 poring get 100 base and job exp plus an item

-kill 10 lunatic will trigger a quest offer, kill 100 lunatic get 100 base and job exp plus an item

-kill 10 zombie trigger a quest offer, kill 100 zombie get 100 base and job exp plus an item

and there will be indicator on bottom right of player screen showing current quest status

Spoiler
- script	DQuestSystem	-1,{
		OnNPCKillEvent:
        setd "DQuestS_"+killedrid+"_",getd("DQuestS_"+killedrid+"_")+1;
        if(getd("DQuestS_"+killedrid+"_") == 10)
        {
                mes "You killed "+getd("DQuestS_"+killedrid+"_")+" "+strmobinfo(1, killedrid);
                next;
                mes "Do you want to kill 100 "+strmobinfo(1, killedrid)+" as a quest ?";
                menu "Take this quest",Acc,"Nope, thx",Den;
        }
        else{
                if(getd("DQuestS_"+killedrid+"_") < 100 && getd("DQuestS_"+killedrid+"_ACK") == 1)
                {
                        dispbottom "["+getd("DQuestS_"+killedrid+"_")+"/100] "+strmobinfo(1,killedrid);
                }
                else{
                        if(getd("DQuestS_"+killedrid+"_") == 100 &&  getd("DQuestS_"+killedrid+"_ACK") == 1)
                        {
                                dispbottom strmobinfo(1,killedrid)+" hunt complete !! 100/100";
                                set BaseExp, BaseExp + (100*strmobinfo(6,killedrid));
                                set Zeny, Zeny + (1000*strmobinfo(3, killedrid));
                        }
                }
        }
        end;
Acc:
        setd "DQuestS_"+killedrid+"_ACK", 1, getcharid(0);
        close;
        end;
Den:
        close;
        end;
}

 

 

Edited by Dolphin86
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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