Jump to content
  • 0

Daily NPC Quest.


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

NPC Description :

1. Player/s can do the quest daily with 24hours cooldown.
2. The NPC requires random misc items e.g  ( Jellopy,Shell,Fluffy,Feather and etc ) to be hunt.
3. Player A  and Player B can get the same quest but when Player A give the items first the Quest requirements will be resetted to Player B and so on.

4. Each player complete the quest will be broadcast global and gets item for finishing it.

Edited by Noire
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

//initializes list of scavenger items
for( set .@i,0; .@i < 10 ; set .@i,.@i+1 )

to

//initializes list of scavenger items
freeloop(1);
for( set .@i,0; .@i < 10 ; set .@i,.@i+1 )

Don't forget to close it the freeloop.

Here:

}
freeloop(0);
return;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

similar to this one :/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

3. Player A  and Player B can get the same quest but when Player A give the items first the Quest requirements will be resetted to Player B and so on.

So every time a player finishes a quest, the quest items required will reset? Meaning new items need to be hunted? So the items Player B hunted are now invalid?

Would suggest starting with this one then:

https://rathena.org/board/topic/63436-hey-guys-can-you-help-me-fix-this-script/

There's some errors with the script I suppose since the post is asking for help, but i'm not sure if it's fixed or not, guess it's not.

Note: I used this before and I get infinite loop problems.

Edited by PandaLovesHamster
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

3. Player A  and Player B can get the same quest but when Player A give the items first the Quest requirements will be resetted to Player B and so on.

So every time a player finishes a quest, the quest items required will reset? Meaning new items need to be hunted? So the items Player B hunted are now invalid?

Would suggest starting with this one then:

https://rathena.org/board/topic/63436-hey-guys-can-you-help-me-fix-this-script/

There's some errors with the script I suppose since the post is asking for help, but i'm not sure if it's fixed or not, guess it's not.

Note: I used this before and I get infinite loop problems.

 

Sad having same problm :/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

It's probably worth checking around the while loop area. That's the only reason why there's an infinite loop warning.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You just need to add a freeloop 1; before the for in the Scavenger script's function

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  745
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

You just need to add a freeloop 1; before the for in the Scavenger script's function

on what part
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

You just need to add a freeloop 1; before the for in the Scavenger script's function

/no1

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  745
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

//initializes list of scavenger items
for( set .@i,0; .@i < 10 ; set .@i,.@i+1 )

to

//initializes list of scavenger items
freeloop(1);
for( set .@i,0; .@i < 10 ; set .@i,.@i+1 )

Don't forget to close it the freeloop.

Here:

}
freeloop(0);
return;

can you post edited script to avoid errors thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Just follow the stuff I have inputted above. There's only one return in that script and only one for loop I think, it should not be that hard to spot. Just compare the ones above. I can't do much right now, my keyboard is acting up and I need to buy a new one so no scripting for me for awhile. Can't use number keys or any symbols at all that is linked to the numbers.

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