there is no diff the only thing is you need to be consistant u cant use pUnit here and Unit there has to be all on or the other
there is no diff the only thing is you need to be consistant u cant use pUnit here and Unit there has to be all on or the other
Very usefull Ty mate![]()
Does anyone have the direct link to the svn for lua.dll file so i cand find commands?
The gossip scripts do work as of the latest LUA++ engine. There have been changes to some of the commands:
Code:Unit:GossipCreateMenu(textid, player, 1) --The number 1 represents something about sending the menu, still unsure what though. Unit:GossipMenuAddItem(iconid, "Message", intid, extra) --You no longer need to define a player target for this command. RegisterUnitGossipEvent(npcid, event, "function") --There is now a "Unit" infront of "GossipEvent".
Last edited by Flannel007; 07-02-2008 at 12:51 PM.
New edit due thanks goes to poster above this!
awesome runiker i will have to learn how to LUA with this guide
cant +rep, when i can mate...
what lua script must i use to play a song when a player summons from a portal
pUnit:PlaySoundToSet(soundID)
is the base dont fully know what you mean tho
My Sripting person can use this. +rep
Good Luck gothicdude1044
Unit:RegisterEvent("Vanity_Phase1",1000, 0)
What does the '1000' and the '0' mean here?
the 1000 means every 1 second the event will cycle. during wich it will run the event top to bottom. so he has a life req for the event to run so that it wont cast the spell early. and the 0 is the type of event. i have found few times when anything other than 0 is necasary there.
thanks for the guide i would rep if i wrnt a leacher. this is the only competent list of the ascent lua syntax if found so far. thanks a bunch. iv been having to find all my syntax inside the more complex dungeon scripts i find in repacks.