this is mainly cause some chat plugin, ex. better chat, if you want to be hiden you need to unload these chat plugins, you will hide your typing and no errors.

Quests
Creates quests for players to go on to earn rewards, complete with a GUI menu
Total Downloads: 9,383 - First Release: May 31, 2015 - Last Update: Jun 11, 2018
- 5/5, 53 likes
-
-
So after playing with this plugin for a while and falling in love with it, I got an idea. I built two large cities on my server, each has quest vendors/delivery and RP Vendors etc. It would be really cool to get a config for adding a loyalty variable to the quests and vendors. So people build loyalty to a certain place.
E.g. When you create an NPC or Quest/RP Vendor, you can also assign this Quest/RP Vendor to a group, lets say "group A". Every-time players get/do quests or purchase from this Quest/RP Vendor in group A, they get an increase in loyalty to group A. You can then set certain items players can purchase to require X amount of loyalty. So, for example, you can say that it requires 20 Reward Points and a loyalty of 10 to Group A to buy the Flamethrower from NPC-Y etc...
If you create another group, lets say group B, if the loyalty increases by +1 in group B it goes down -1 in Group A etc.
You could also apply the loyalty variable to the QUESTS themselves as opposed to the Vendors/NPC. So that way if you do quests 1,2 and 3 you get increase in loyalty to group A and decrease in loyalty to group B, and if you do quests 4,5 and 6, you get an increase in loyalty to group B and a decrease to loyalty in group A.
I'm trying to figure this out on my own and starting some of the basic basic code right now, however its in Python (cause thats all I'm good at :/ ), if I code it in Python, can I still make calls from this plugin, the NPC plugin and the Server Rewards plugin?
Lol, I was super bored at work (slow night) and I don't have a Rust test server to mess with here so I just started making random code based on this idea. Basic ass shit, but just to give a better idea.
Code:city1items = ["AK", "Thompson", "Crossbow", "Grenade"] city2items = ["Bazooka", "Flamethrower", "Revolver", "Sniper"] vendor = "Albert", "Joe"class Player: rp = 0 loyalty1 = 0 loyalty2 = 0 def canBuy1(self): if self.rp >= 1 and self.loyalty1 >= 1: print("You can buy these items,", city1items) else: print("You can't buy this. Your loyalty to The Iron City is:", self.loyalty1,".", "Your loyalty to Tartarus is:", self.loyalty2) def canBuy2(self): if self.rp >= 1 and self.loyalty2 >= 1: print("You can buy these items", city2items) else: print("You can't buy this. Your loyalty to The Iron City is:", self.loyalty1,".", "Your loyalty to Tartarus is:", self.loyalty2) def increase(self): self.rp += 1 def increase1(self): self.rp += 1 self.loyalty1 += 1 self.loyalty2 -= 1 if self.loyalty1 < 0: self.loyalty1 = 0 if self.loyalty2 < 0: self.loyalty2 = 0 def increase2(self): self.rp += 1 self.loyalty2 += 1 self.loyalty1 -= 1 if self.loyalty2 < 0: self.loyalty2 = 0 if self.loyalty1 < 0: self.loyalty1 = 0 def quest(self, vendor): if vendor == "Albert": self.increase1() elif vendor == "Joe": self.increase2() else: self.increase()
Last edited by a moderator: Jul 29, 2016 -
I got a problem with "gather" quests. I have created a quest to gather 25k of wood but, when i gather 25k of wood, the quest progress is almost on 15%.
I think this is caused by GatherManager. Any idea on how to solve this? -
Anyone crashing whilst making quests (client)
-
Last edited by a moderator: Jul 31, 2016
-
-
-
To create the loyalty, youd add a the loyalty group when creating a NPC quest giver or a quest.
So I guess a hook for onCreateNPCQuestGiver or onCreateQuest? And then another hook for when the quest is completed: onHookQuestCompleted so you can reward the loyalty. However I suppose this would require hooks on the ServerRewards part as well.
Here right?:
object AddLoyaltyPoints(ulong playerID, int amount)// Returns true if successful, otherwise returns null
object TakeLoyaltyPoints(ulong playerID, int amount)// Returns true if successful, otherwise returns null
objectobject CheckLoyaltyPoints(ulong ID)// Returns int, or null if no data is saved
//Example
[PluginReference] Plugin ServerRewards;
void ExampleFunction(BasePlayer player)
{
ServerRewards?.Call("AddLoyaltyPoints", newobject[]{ player.userID, 5});
ServerRewards?.Call("TakeLoyaltyPoints", newobject[]{ player.userID, 5});
} -
Can you add cooldown for Delivery Quests?
-
-
[08/07/2016 06:41:18] [Oxide] 06:41 [Warning] Calling hook OnPlayerChat resulted in a conflict between the following plugins: RustCore - False (Boolean), Quests (True (Boolean))
[08/07/2016 06:42:07] [Oxide] 06:42 [Warning] Calling hook OnPlayerChat resulted in a conflict between the following plugins: RustCore - False (Boolean), Quests (True (Boolean))
[08/07/2016 06:42:40] [Oxide] 06:42 [Warning] Calling hook OnPlayerChat resulted in a conflict between the following plugins: RustCore - False (Boolean), Quests (True (Boolean))
[08/07/2016 06:42:59] [Oxide] 06:42 [Warning] Calling hook OnPlayerChat resulted in a conflict between the following plugins: RustCore - False (Boolean), Quests (True (Boolean))
what is wrong?can anyone help me? -
Hey, little problem, all works well but when i create a quest for one npc and secodn quest for another one npc, then, the two npc both got all quests in their menu, i tought it was one quest for one npc, second quest for second npc.
????
So i got 2 vendors npc and they have all quests in menu. I wanted one npc with one quest and one npc with another one quest. :/
Sorry for my english -
Can someone explain how to link a mission to an npc?
-
I created a quest for gathering wood and set the item deduction to false but now that I view the quest it says it's set to true. How do I change this? When I hit edit there's no option for item deduction.
Last edited by a moderator: Aug 18, 2016 -
I use Better Chat | Oxide on my server, and when creating quests, they conflict, my typing passes through. Any way to fix this, rather than unloading the BetterChat plugin each time I want to create quests??
-
After todays update, i can keep redeeming a finished quest for unlimited rewards. Edit. I deleted all my quests/data, reloaded plugin and created a few quests, and it is working now.
Last edited by a moderator: Sep 2, 2016 -
Shit I did this before, but I can't remember how. How do you make an NPC a quest-vendor? Not Delivery, just an NPC you click on and it opens up the quest menu?
-
-
I have added 3 kill quests to my server. When I attempt to make a 4th one my client crash's. I have tried a full reinstall with new config's and everything but it happens every time a 4th quest is attempted to be added. Any ideas?