Jump to content
  • 0

Checkquest problem


Question

Posted

Hello, 

how do i use "checkquest" with a certain char id?

Doc:
"checkquest(<ID>{,PLAYTIME|HUNTING{,<char_id>}})"

Script:

"checkquest(1300, PLAYTIME, 150067);"

 

^- Script is not working (no errors in console)

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
checkquest(1300, PLAYTIME);
//Example
.@Cooldown = checkquest(1300, PLAYTIME);
if (.@Cooldown == 2) {
	mes "[NPC]";
	mes "You are still on cooldown please wait for 24 hours";
	close;
	}

The Char ID will be the PC who talked to the NPC :))

Edited by crazyarashi
  • 0
Posted (edited)

I think it is, since you can use the char  id.

But did you try to save the value in an variable or try use mes checkquest since it returns an value, see the example of crazyarashi.

Regards,

Chris

Edited by llchrisll
Typos...
  • 0
Posted

Yes, this example is okay and works but this is not my aim.
I want to get the "questcheck return" for a certain charid, and like crazyarashi said: everytime it use the char id of the player who clicked the npc.

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