Jump to content
  • 0

NPC - Two Hours Interval after finishing Quest.


Rojen

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  05/22/18
  • Last Seen:  

Well. I created a NPC script where the player can summon Thanatos. The player will need the four fragments (misery, agony, hatred, despair) to summon Thanatos.

My questions is...

After the player killed Thanatos. I want to put a two-hour interval in the NPC. Before the player can summon Thanatos again.

Can someone help me regarding this matter? Thank you.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  05/22/18
  • Last Seen:  

mes "^0000FF I am the Soul of Thanatos! Would you dare to kiss me?";
menu "Ofcourse..",-;
clear;
mes "^0000FF But you'll need to revive me first. If you want to fight me, I need the ^FF0000 Four Ancient Fragments^0000FF!";
menu "What are those fragments?",-;
clear;
mes "^0000FF Alright! These are the ancient fragments...... Bring them and challenge me!";
mes " ";
mes "^FF0000 1x Fragment of Misery";
mes "^FF0000 1x Fragment of Agony";
mes "^FF0000 1x Fragment of Hatred";
mes "^FF0000 1x Fragment of Despair";
menu "I have it! Bring it on",-;

        if (countitem(7437) > 0 && countitem(7439) > 0 && countitem(7436) > 0 && countitem(7438) > 0) {
            clear;
            mes "^FF0000 HAHAHAHA!! I will kill you human!";
            next;
            delitem 7436,1;
            delitem 7437,1;
            delitem 7438,1;
            delitem 7439,1;
            monster "prontera",158,177,"Thanatos",1708,1;
            close;
        }
        else {
            clear;
            mes "^0000FF Oh - You filthy Human! You tricked me!! You don't have my precious ancient fragments! ^0000FFDIE!!";
            next;
            percentheal -100,0;
            close;
        }

Here's my NPC script. I want to put a 2-hour into it. Please help me. Thanks!

After the player kills thanatos/finish the quest. I want to put a 2-hour interval before the player can summon or quest again. Please help me regarding this! Im newbiee. Please respect me.

Edited by Rojen
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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