Page 3 of 4

Re: LUA Functions Sticky

Posted: Fri Mar 27, 2009 6:54 pm
by John Adams
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.

Re: LUA Functions Sticky

Posted: Fri Mar 27, 2009 6:57 pm
by LethalEncounter
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

Re: LUA Functions Sticky

Posted: Fri Mar 27, 2009 11:12 pm
by Scatman
Too cool :) Nice job LE!

Re: LUA Functions Sticky

Posted: Mon Mar 30, 2009 12:14 pm
by Xanibunib
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

Re: LUA Functions Sticky

Posted: Mon Mar 30, 2009 1:35 pm
by John Adams
Just a guess, but I am thinking you could AddHate()?

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 3:14 pm
by Xanibunib
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))

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 3:21 pm
by Scatman
Actually, it should be changed to

Code: Select all

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

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 3:49 pm
by Xanibunib
Ahh, quantity, thats what it is...I'll change the wiki... wait, why would we need a quantity on a Chat step?

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 5:11 pm
by Scatman
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.

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 5:22 pm
by Xanibunib
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?

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 6:56 pm
by John Adams
Awesome, Xan. Thanks for wiki'in up!

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 7:05 pm
by Xanibunib
I will finish up the Quest section once the pork chops are done! :D :D :D

Re: LUA Functions Sticky

Posted: Fri Apr 03, 2009 7:37 pm
by Scatman
E-mail me some?

Re: LUA Functions Sticky

Posted: Sun Apr 05, 2009 11:12 am
by Xanibunib
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

Re: LUA Functions Sticky

Posted: Sun Apr 05, 2009 11:36 am
by John Adams
Sounds like a great item for the WIKI!!!