LUA Functions Sticky

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: LUA Functions Sticky

Post by John Adams » Fri Mar 27, 2009 6:54 pm

Re: Desynch, I haven't seen it at ALL for myself in weeks... and I used to get it every 30 mins easy before. Maybe it was a bad client ;)

I do see some people strolling along and all of a sudden, a few random odd chars in the console followed by Timeout Up!, but nothing like it used to be.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: LUA Functions Sticky

Post by LethalEncounter » Fri Mar 27, 2009 6:57 pm

Yah I made some changes that *might* have improved the situation, but this is one of those bugs that no matter how many times I think I have it beat, it keeps coming back. So I finally stopped mentioning that it *might* have been fixed :P

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: LUA Functions Sticky

Post by Scatman » Fri Mar 27, 2009 11:12 pm

Too cool :) Nice job LE!

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Mon Mar 30, 2009 12:14 pm

Am I blind or is there no function to make a NPC attack you? for example...

Code: Select all

function dlg_1_1(NPC, Spawn)
	FaceTarget(NPC, Spawn)
	conversation = CreateConversation()

	PlayFlavor(NPC, "voiceover/english/tutorial_revamp/anthony_glavias/fprt_hood06/rcp_anthony002.mp3", "", "", 2414080442, 1536099757, Spawn)
	AddConversationOption(conversation, "Cease your banter draw your blade, fool!", "Combat")
	StartConversation(conversation, NPC, Spawn, "Step down citizen! No one fires Anthony Glavias besides me! Eh, well... not that I would fire myself that is... Bwah! ")
end

function Combat(NPC, Spawn)
	AttackPlayer(NPC, Spawn)   <------------------------- something like that?
end
Village idiot...

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: LUA Functions Sticky

Post by John Adams » Mon Mar 30, 2009 1:35 pm

Just a guess, but I am thinking you could AddHate()?

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Fri Apr 03, 2009 3:14 pm

While filling in some of the Wiki I noticed that the function

Code: Select all

AddQuestStepChat(Quest, StepID, StepText, TaskGroupText, Icon, NPC ID(s))
should probably be changed to

Code: Select all

AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))
Village idiot...

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: LUA Functions Sticky

Post by Scatman » Fri Apr 03, 2009 3:21 pm

Actually, it should be changed to

Code: Select all

AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))
Thanks for finding that though!

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Fri Apr 03, 2009 3:49 pm

Ahh, quantity, thats what it is...I'll change the wiki... wait, why would we need a quantity on a Chat step?
Village idiot...

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: LUA Functions Sticky

Post by Scatman » Fri Apr 03, 2009 5:11 pm

I recently added it after I found a quest in Timorous Deep which required it. You need to talk to 5 slaves and free them. So one step requires 5 chat updates and all 5 spawns have the books over their head.

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Fri Apr 03, 2009 5:22 pm

Ahh I see... I have updated a bunch of the Quest functions on the wiki, would ya mind double checking them when you get some time?
Village idiot...

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: LUA Functions Sticky

Post by John Adams » Fri Apr 03, 2009 6:56 pm

Awesome, Xan. Thanks for wiki'in up!

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Fri Apr 03, 2009 7:05 pm

I will finish up the Quest section once the pork chops are done! :D :D :D
Village idiot...

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: LUA Functions Sticky

Post by Scatman » Fri Apr 03, 2009 7:37 pm

E-mail me some?

User avatar
Xanibunib
Retired
Posts: 121
Joined: Thu Mar 06, 2008 11:01 pm
EQ2Emu Server: RENS
Location: Colorado

Re: LUA Functions Sticky

Post by Xanibunib » Sun Apr 05, 2009 11:12 am

Could I see an example of a "AddQuestStepKill" with multiple NPC id's in it? Seems like whatever I do it just screws up the step display. Also, if you have a AddQuestStepKill and a AddQuestStepSpell in the same step i'm not getting the icons on the kill step, but they show up once i have completed the step... weird
Village idiot...

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: LUA Functions Sticky

Post by John Adams » Sun Apr 05, 2009 11:36 am

Sounds like a great item for the WIKI!!!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests