Quester

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
BigVacken
Příspěvky: 161
Registrován: 28 dub 2013, 08:26
Reputation: 0
Kontaktovat uživatele:

Quester

#1 Příspěvekod BigVacken » 31 kvě 2014, 10:21

Server: IP:93.91.250.135:27791

Čaute potřebuji poradit s pluginem Quester. Dělám to podle návodu a u konce nastavování nefunguje pár příkazů.

Dělal jsem to podle tohoto návodu:
Spoiler: zobrazit

Kód: Vybrat vše

Quest two: Oenophile (this quest uses some features only present in 0.7alpha)

Disclaimer: This quest requires you to know thing or two about quest making. It describes one of many creative uses of quester mechanics to create something that is not obviously present in the plugin. Little more advanced stuff here. I did not even bother to test this one, so report any malfunctions in this quest.

What do we have now ? We have a wine cellar that has two entrances and some wine in it. We also have old sailor Doug, that is very interested in getting some of the wine bottles stored in that cellar. What should we do ? We should make quest, of course. Doug is very helpful, because he happens to be NPC from Citizens 2, which luckily happens to work with Quester.

First thing to do is to make sure that Doug is capable of giving us the quest. This can be done by giving him trait quester. I will not tell you how to do that, you will have to figure it out for your self with the help of citizens wiki. Now that he has the trait, we can give him quest holder to hold some quests for us. Let's create one:

/q holder create "Doug's holder"

We have our holder, but it's empty. To further manipulate with the holder, it needs to be selected. Holder can be selected using command /q holder select <holder ID>, but holder is automatically selected when created, so we can skip this step. Let's create a quest to be held it the holder.

/q create Oenophile

Plus some basic functionality, because there isn't an infinite amount of wine in that cellar:

/q condition add questnot Oenophile

Now, adding quest to the selected holder is as simple as

/q holder add 1

Oenophile is the second quest we created, so its ID is 1. Ids can be checked in quest list. It's that number in square brackets next to the quest name.
Alright, we have our holder and it holds one quest, called Oenophile, now we need to give that holder to the Doug. It is done by having the holder selected and right-clicking Doug with a blaze rod. Success message should be displayed. We can make sure the quest is there by left-clicking Doug with anything other than blaze rod. (preferably not with sword, as that would hurt him)
But back to the quest, let's create questline. Quest should have about 3 main objectives, first is to find and entrance to the cellar, second is to find right wine cabinet and third is to bring the wine back to Doug. But wine cellar has two entrances, one of which is locked. We want to create two objectives, one for each entrance. If a player finds locked one, it will tell him to keep looking for another one, but if he finds it straight away, we want to progress with the quest without the need to find locked one as well. To sum up, we want objective to find locked entrance to be only optional, but still want to use prerequisites, because we don't want to show player the description of the second objective straight away, which would tell him to look for secret entrance. There is a way of creating optional objective by using one extra hidden objective. Let's stand near the locked entrance and create first one:

/q desc set "Could you please steal 3 finest wines from that cellar ? Yes ? Allright, I'm waiting."

/q objective add location here
/q objective desc add 0 "Find entrance to the cellar."

Now stand near the secret entrance and create the second objective:

/q objective add location here
/q objective desc add 1 "Find another entrance to the cellar."
/q objective prereq add 1 0

We have both objectives set up, it's time for some magic. Now objective 1 requires objective 0 to be completed first, effectively forcing player to find locked entrance. And since we do not want this, we have to make workarounds. We will add another hidden objective, same as the second one, but with no rerequisites and events that will manually force completion of the first two objectives.But what if player finds the locked entrance first, wouldn't that render our special objective useless ? Yes, we will add event to the first objective to silently complete our special objective, because it's not needed anymore. To add our special silent objective, add the second objective second time, but now with flag "-h" that will make it hidden. Hidden objectives are not shown to player and "objective completed" message is muted for them.

/q objective add location here -h
/q event add 2 objcom 0 -e - 2 is ID of our special objective
/q event add 2 objcom 1 -e - flag -e (run events) completes objective like it would normally be

Now to add silent completion of our special objective if it's not needed:

/q event add 0 objcom 2 - silently complete objective 2

Now that the magic is set up, we can continue with the quest normally. Let's add objective to "steal wine" by punching (grabbing it from) proper wine cabinet, represented by brewing stand. Look at the stand and write:

/q objective add action left brewing_stand air block
/q objective prereq add 3 1
/q objective desc add 3 "Steal the wine."
/q event add 3 item potion 3

We have successfully stolen the wine, all we need is to return to Doug.

/q objective add item potion 3
/q objective prereq add 4 3
/q objective desc add 3 "Return to Doug. (with the wine)"

That's how we like it. Last thing to add are some rewards.

------------------------------------------------------------------------------- Od tuď mi to už nešlo.

/q event -3 add msg "I'm starting to like you, take this."
/q event -3 add point 5
/q event -3 add exp 10 -l - 10 experience levels for being ultimate thief
/q event -3 add item potion_of_epicness:1337 1 - fictional, but cool item

And maybe cancel message:

/q event add -2 msg "You decided to not do Doug's bidding."

This is it. Player needs to right-click Doug, go find the entrance, punch the wine and then right click Doug again to hand him the wine. We should definitely not forget last thing to do with every successfully written quest:

/q toggle

Server burglars can now enjoy what they enjoy most.


A ještě když sem úkol spustil tak fungoval jen tak, že sem došel na to 1. místo a tam to napsalo, že je úkol hotový. Díky za radu popř návod by neuškodil. Díky :)
93.91.250.135:27791
http://www.metalcraft.4fan.cz
Anarchy server !

Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 57 hostů