Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Npc not giving item #1052

Open
ciulic opened this issue Jun 4, 2012 · 10 comments
Open

Npc not giving item #1052

ciulic opened this issue Jun 4, 2012 · 10 comments

Comments

@ciulic
Copy link

ciulic commented Jun 4, 2012

Hi,

The other types seams to be working, but this type, delivery, is not...
I accept the quest and the NPC doesn't give me the item that i specified in config. The NPC is a Quester.
One of my quests look like this:
DlvJob2:
texts:
description: Transporta asta gardianului.
completion: 'Quest completat: The Delivery Job. Rewards: Iron Ingot'
acceptance: 'Quest acceptat: The Delivery Job.'
repeats: -1
delay: 60
objectives:
'0':
'0':
type: delivery
npcdestination: 2
materialid: 1
amount: 1
message: Transport completat, acum intoarce-te.
rewards:
'0':
type: item
item: 265
take: false

What could be the problem? Thank you.

@ciulic
Copy link
Author

ciulic commented Jun 17, 2012

Nobody here alive?
Is this plugin dead?

@aufdemrand
Copy link

try using a command reward to give the item...
type: command
command: give 265

@aufdemrand
Copy link

forgot you will also need
server: true

@ciulic
Copy link
Author

ciulic commented Jun 17, 2012

I will test now, thanks.

@ciulic
Copy link
Author

ciulic commented Jun 17, 2012

This code I have it under quests.yml and it's still not giving me anything.
In the meanwhile I have upgraded the vault plugin too and still not working.

LE: changed after type: delivery into type: command and it's saying that he doesn't have any quests

objectives:
'0':
'0':
type: delivery
npcdestination: 2
command: give 1
server: true
amount: 1
message: My Message

@aufdemrand
Copy link

hmm.. that's not what i meant. So what you're saying is that you're expecting the delivery quest to give you the item that needs to be delivered? That's not how it works... you'd want to use an 'initial' node to give the item.

@ciulic
Copy link
Author

ciulic commented Jun 17, 2012

I don't know exactly what are you saying, but what I did was copy paste the quest examples from the wiki and when I have started to test the delivery quests I didn't receive any items... I am supposed to do something else?
This is a quest from their wiki:
(translations are done by me)
DlvJob1:
texts:
description: Transporta asta gardianului.
completion: 'Quest completat: The Delivery Job. Rewards: Iron Ingot'
acceptance: 'Quest acceptat: The Delivery Job.'
repeats: -1
delay: 60
objectives:
'0':
'0':
type: delivery
npcdestination: 2
materialid: 1
amount: 1
message: Transport completat, acum intoarce-te.
rewards:
'0':
type: item
item: 265
take: false

What is wrong here?
You say I need a node?

@aufdemrand
Copy link

Check out the Initial node on the wiki. It's essentially the same as a reward node, except it gets executed on the start of a quest. That's how you would get the quester to give the item for the delivery quest. The delivery objective does not give the item.

@MrNiceGuyFromEarth
Copy link

    initial:
            '0':
                    type: item
                    item: 
                        id: 339
                        amount: 1
                        data: 0

Its not "item" its "id"

Or if that wont work, u can always use command:

    initial:
            '0':
                    type: command
                    command: give <player> 339 1
                    server: true

@ciulic
Copy link
Author

ciulic commented Jul 4, 2012

Thanks in the meanwhile I have managed to give the item to players, but it looks like because we have Jobs (the plugin) the users can easily abuse the system receiving the item all over again after they abort.

A good solution that I have is to take some money from the user when he is accepting the quest by using the command,
but I don't know how.

Any solutions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants