Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2023, 11:33 PM
Baete2
Fire Beetle
 
Join Date: Nov 2022
Posts: 1
Default Modifying faction in LUA

I've been trying to track down the right way to increment faction based on a turn in event and I'm missing something so looking for help.

The best I can find is that I should use:
e.other:Faction(faction number, increment amount?,0)

so my quest script has:
if(item_lib.check_turn_in(e.trade, {item1 = mycoolitemnumber})) then
e.self:Say("Some cool mystic quest text");
e.other:Faction(faction number,10,0);

I have no idea what the 3rd number is for and can't find a link with docs anymore they're all dead links.

What I want to do is have the faction increase by 10 for each turn in, but it's not working...it just sets the value to 10 each time. I know it's got to be something simple I'm missing...so any help?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:52 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3