Jump to content
  • 0

Checkquest problem


Funkybeatz15

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/15
  • Last Seen:  

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)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/15
  • Last Seen:  

"checkquest(1300, PLAYTIME, 150067);" works well too now
the problem was a other function

 

#can be closed

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/15
  • Last Seen:  

Yes, so it's impossible to use checkquest to get the questtatus of a different player?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/15
  • Last Seen:  

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.

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