Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides

Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
  #1  
Old 02-27-2009
Thekal's Avatar
Thekal is offline.
Master Sergeant
  
 
Join Date: Jan 2008
Location: McDonalds.. D:
Posts: 77
Reputation: 30
Codes Thekals Lua Tutorial

This guide will show you how to do various Things in lua

----------

1 Scripting NPC's
  • Say something
  • Cast spells
  • Summon other mobs
  • Make phases (Change its scale, displayid Etc..)

2. Script GOs
  • Portal

3 Teleporter NPC





----------

If well accepted i will keep this updated!


And off we go.



A script in lua does something that you cant do with just in game commands.
It is what make boss encounters more then just you walk in and kill them.

Here is what a function looks as a blank slate - With NO data entered into it.


Code:
function Nameofthefunction(Unit, Event)
end
Lets say my NPC is called Demon.



Code:
function Demon_OnCombat(Unit, Event)
end
The name of my NPC is now in the script.


Note: Nameofthefunction or Demon_Oncombat actually can be anything. It really helps to keep it organized if you do it this way.


NEXT PART!

To make the NPC say something when engaged heres what you do..

Code:
Unit:SendChatMessage(12, 0, "Heres where the text goes.")

The 12 in that script. Right at the beginning of the parenthesis, Is how you want the NPC to talk....




Be it...

Code:
12 – npc say
13 – npc whisper
14 - npc yell
Universal means anyone can here it.

Heres some other languages. Probably wont be used as much.


Code:
0 = Universal
1 = Orcish
2 = Darnassian
3 = Taurahe
6 = Dwarven
7 = Common
8 = Demonic
9 = Titans
13 = Gnomish
14 = Zalandari
33 = Gutterspeak
35 = Draenei
Now we add the Chat on engage to the OnCombat Script


Code:
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Text goes Here!")
end
And again. The "SendChatMessage" does not have to be those exact words. It just helps to keep things organized for yourself or others reading the script.

To get the script to be able to function you have to Register it.
Registering the Function has to be at least one line below the function itself.
For each function you need to have a Different Register command.
The Register commands do not need a line between them unlike the functions


Code:
RegisterUnitEvent(NPC-IDHERE, 1, "Function name")

The Function name for example from our earlier script is "Demon_OnCombat
After the ID there is a 1 if you notice. that defines what the "unit" event in the function. This is what makes the functions different.



Here is a list:
Code:
1 = Enter combat
2 = Leave combat
3 = Killed target
4 = When Npc is dead
6 = Spawn
7 = Gossip talk
8 = Reach waypoint
10 = When player enters range
This is what a Function would look like for

Demon - ID 9995
Script - Activates on combat.
Details - On combat "Demon says "Darkness Reigns!"
Code:
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Darkness Reigns!")
end

RegisterUnitEvent(9995, 1, "Demon_OnCombat")
here are some different Examples of different Function events.

Code:
function Demon_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end

function Demon_OnKilledTarget(Unit, Event)
end

function Demon_OnDied(Unit, Event)
Unit:RemoveEvents()
end
They speak for themselves in what they do.

The RemoveEvents are for if the scripts make the NPC change size or Change displayid it will reset it.

To register the last 3 scripts do the next code.

Code:
RegisterUnitEvent(NPC-IDHERE, 2, "_OnLeaveCombat")
RegisterUnitEvent(NPC-IDHERE, 3, "_OnKilledTarget")
RegisterUnitEvent(NPC-IDHERE, 4, "_OnDied")
Putting it all together with every script we have done so far would look like the following.

Code:
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "I Will Kill You!")
end

function Demon_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end

function Demon_OnKilledTarget(Unit, Event)
end

function Demon_OnDied(Unit, Event)
Unit:RemoveEvents()
end

RegisterUnitEvent(9995, 1, "Demon_OnCombat")
RegisterUnitEvent(9995, 2, "Demon_OnLeaveCombat")
RegisterUnitEvent(9995, 3, "Demon_OnKilledTarget")
RegisterUnitEvent(9995, 4, "Demon_OnDied")


Here is where it gets more in depth by adding spells.
Spells require a different function obviously.



Code:
function Nameofthefunction(Unit, Event)
end
Back to stage 1. make a Brand New Function like above.

Code:
function Demon_Spell1(Unit, Event)
end
Code:
Unit:FullCastSpellOnTarget(spellid, Unit:Target)
The Target in "Unit:Target" Can be one of the following.

Code:
- GetRandomPlayer(0) = Will make the mob target a random player
- GetRandomPlayer(1) = Target random player in short range
- GetRandomPlayer(2) = Target random player in medium range
- GetRandomPlayer(3) = Target random player in long range
- GetRandomPlayer(4) = Target random player with mana
- GetRandomPlayer(5) = Target random player with rage
- GetRandomPlayer(6) = Target random player with energy
- GetRandomPlayer(7) = Target random player, main tank won't be targeted
- GetMainTank() = targets Main tank.
- GetClosestPlayer() = Targets whoever is closest.
If - for example the boss was going to attack the closest person
Code:
function Demon_Spell1(Unit, Event)
Unit:FullCastSpellOnTarget(5, Unit:GetClosestPlayer())
end
In detail - In a certain amount of milliseconds and how many times in that amount of times it is casted.

Code:
Unit:RegisterEvent("functionname", MIlliseconds, howmanyoftimesinthat time)
Heres what it would look like to let the NPC cast the spell 2 times in a total of 60 seconds

Code:
Unit:RegisterEvent("Demon_Spell1", 60000, 2)
To make it activate OnCombat (as in when engaged - be it Aggroed or attacked deliberately.)

Code:
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Darkness Reigns")

function Demon_Spell1(Unit, Event)
Unit:FullCastSpellOnTarget(5, Unit:GetClosestPlayer())
end

function Demon_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end

function Demon_OnKilledTarget(Unit, Event)
end

function Demon_OnDied(Unit, Event)
Unit:RemoveEvents()
end

RegisterUnitEvent(9995, 1, "Demon_OnCombat")
RegisterUnitEvent(9995, 2, "Demon_OnLeaveCombat")
RegisterUnitEvent(9995, 3, "Demon_OnKilledTarget")
RegisterUnitEvent(9995, 4, "Demon_OnDied")
RegisterUnitEvent("Demon_Spell1", 60000, 2)
end
BOSS PHASES!

Boss phase time!

Code:
function FunctionName(Unit, Event)
if Unit:GetHealthPct() <= X then
end
end
X is where the NPC will check his Health and act according to what we will script.


Gonna use 35%
Now the X is replaced with 35


Code:
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 35 then
end
end
At 35% we want the Boss to cast a spell. so we do....
Code:
Unit:FullCastSpellOnTarget(spellID, Unit:target)
FullCastSpellOnTarget is a command when its a spell with a cast time (not instant =/)

For an Instant Cast use CastSpell command / like so.

Code:
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 35 then
Unit:CastSpell(27082)
end
end
Also You can make him send a message before or after casting the spell.

Code:
Unit:SendChatMessage(14, 0, "Write whatever you want.")
And now the function should look like this:

Code:
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 35 then
Unit:SendChatMessage(14, 0, "Casting Spell!")
Unit:CastSpell(27082)
end
end
Also - you can make the NPC change Displayid or their scale

Change its scale:
Code:
Unit:SetScale(scalenumber)
Modify its displayid:
Code:
Unit:SetModel(displayID)
Lets add it to the previous script.

Code:
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 35 then
Unit:SetModel(145)
Unit:SetScale(2)
Unit:SendChatMessage(14, 0, "Casting Spell!")
Unit:CastSpell(27082)
end
end
The RegisterEvent Looks like this.

Unit:RegisterEvent("Demon_Phase1", timeinmilliseconds, howmanytimes)


adding it to the script!

Code:
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Casting Spell!")
Unit:RegisterEvent("Demon_Spell1", 60000, 2)
Unit:RegisterEvent("Demon_Summon", 60000, 2)
Unit:RegisterEvent("Demon_Summon2", 60000, 2)
Unit:RegisterEvent("Demon_Phase1", 5000, 1) 
end
 
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 50 then
Unit:SetModel(145)
Unit:SetScale(2)
Unit:SendChatMessage(14, 0, "I shall kill you!")
Unit:CastSpell(27082)
end
end

function Demon_Summon2(Unit, Event)
Unit:SpawnCreature (9994, -8919.73, 47.95, 94.14, 0.48, 14, 60000);
end

function Demon_Summon(Unit, Event)
local x = Unit:GetX();
local y = Unit:GetY();
local z = Unit:GetZ();
local o = Unit:GetO();
Unit:SpawnCreature (9994, x, y, z, o, 14 ,60000);
end

function Demon_Spell1(Unit, Event)
Unit:FullCastSpellOnTarget(5, Unit:GetClosestPlayer())
end

function Demon_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents() 
end

function Demon_OnKilledTarget(Unit, Event)
end

function Demon_OnDied(Unit, Event)
Unit:RemoveEvents()
end

RegisterUnitEvent(9995, 1, "Demon_OnCombat")
RegisterUnitEvent(9995, 2, "Demon_OnLeaveCombat")
RegisterUnitEvent(9995, 3, "Demon_OnKilledTarget")
RegisterUnitEvent(9995, 4, "Demon_OnDied")

[/code]

BTW
For the Pink Text - you can use one of these
Code:
- GetRandomPlayer(0) = Will make the mob target a random player
- GetRandomPlayer(1) = Target random player in short range
- GetRandomPlayer(2) = Target random player in medium range
- GetRandomPlayer(3) = Target random player in long range
- GetRandomPlayer(4) = Target random player with mana
- GetRandomPlayer(5) = Target random player with rage
- GetRandomPlayer(6) = Target random player with energy
- GetRandomPlayer(7) = Target random player, main tank won't be targeted
- GetMainTank() = targets Main tank.
- GetClosestPlayer() = Targets whoever is closest.

PORTAL SCRIPTS

Code:
function ScriptName(pUnit, Event, pMisc)
           pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
end
RegisterGameObjectEvent(GameObjectsENTRYID, 2, "ScriptName")
Look at the first line one more time.

Code:
function ScriptName(pUnit, Event, pMisc)
Name it whatever you want - as previously said.

For example.
Code:
function TELEPORT(pUnit, Event, pMisc)
The Next line has more in it. So....

Code:
pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
end
To find the X-Coord, Y-Coord, and the Z-Coord type .gps in game.


Again you need to register it.

Code:
RegisterGameObjectEvent(GO ID, 2, "ScriptName")
What ever GO id you use for the portal should go here
Needs to be what you named the script earlier.


Heres an example of a completed Portal Script.

Code:
function MALLTele(pUnit, Event, pMisc)
           pMisc:Teleport(530, -2009.403320, 6590.512695, 12.360116)
end
RegisterGameObjectEvent(999998, 2, "MALLTele")




Teleporter NPC - How-To


Start with-

Code:
function On_Gossip(unit, event, player)
Is the beginning of the Function.

Code:
unit:GossipCreateMenu(High#, player, 0)
Now the chat options need to be defined.

Code:
unit:GossipMenuAddItem(0,"Horde Cities", 0, 0)
After clicking Horde Cities it heads into a Submenu.


Code:
    
unit:GossipSendMenu(player)
end
Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0,"Horde Cities", 0, 0)
unit:GossipSendMenu(player)
end
Onto the Sub-Menus.

Code:
function Gossip_Submenus(unit, event, player, id, intid, code)
And now we will edit the Horde Cities, so that it will port us to Ex: Undercity.

write this:

Code:
if(intid == 0) then
a Zero means that it opens a Sub menu.
Containing.......


Code:
unit:GossipCreateMenu(Different then the Gossipmenu one, player, 0)
Now we will start the actual location selections.

Code:
unit:GossipMenuAddItem(0,"Orgrimmar", 50, 0)
unit:GossipMenuAddItem(0,"Undercity", 51, 0)
unit:GossipMenuAddItem(0,"Thunder Bluff", 52, 0)
unit:GossipMenuAddItem(0,"Silvermoon", 53, 0)
unit:GossipSendMenu(player)
end
Now mine looks like this:

Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0,"Alliance Locations", 0, 0)
unit:GossipSendMenu(player)
end

function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 0) then
unit:GossipCreateMenu(101, player, 0)
unit:GossipMenuAddItem(0,"Orgrimmar", 50, 0)
unit:GossipMenuAddItem(0,"Undercity", 51, 0)
unit:GossipMenuAddItem(0,"Thunder Bluff", 52, 0)
unit:GossipMenuAddItem(0,"Silvermoon", 53, 0)
unit:GossipSendMenu(player)
end
Now you put in the info for each selection.

Note: You can see that the menu number of Orgrimmar is 50, Undercity is 51, Thunder Bluff is 52, Silvermoon is 53.

Now write this:

Code:
if(intid == 50) then
player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
end
X
Y
Z
This would go to Orgrimmar

Repeat the above until you have one for each.


To register them..

Code:
RegisterUnitGossipEvent(Your NPC Spawn ID, 1, "On_Gossip")
RegisterUnitGossipEvent(Your NPC Spawn ID, 2, "Gossip_Submenus")
Now it looks like..

Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0,"Horde Cities", 0, 0)
unit:GossipSendMenu(player)
end

function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 0) then
unit:GossipCreateMenu(101, player, 0)
unit:GossipMenuAddItem(0,"Orgrimmar", 50, 0)
 unit:GossipMenuAddItem(0,"Undercity", 51, 0)
 unit:GossipMenuAddItem(0,"Thunder Bluff", 52, 0)
 unit:GossipMenuAddItem(0,"Silvermoon", 53, 0)
 unit:GossipSendMenu(player)
end
if(intid == 50) then
player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
end
if(intid == 51) then
player:Teleport(0, -5028.265137, -825.976563, 495.301575)
end
if(intid == 52) then
player:Teleport(0, -9100.480469, 406.950745, 92.594185)
end
if(intid == 53) then
player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
end
end

RegisterUnitGossipEvent(5, 1, "On_Gossip")
RegisterUnitGossipEvent(5, 2, "Gossip_Submenus")




PS: THE TELEPORTER SCRIPTS OR ANYTHING WITH A COORDINATE ENTRY DOES NOT WORK RIGHT (IE: Doesnt take you to where it says) Just thought u ought to know.





If well Accepted i will update this will more NPCs and More Scripts.


Thanks!
-Thekal

Last edited by Thekal; 02-27-2009 at 10:19 PM.
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 02-27-2009
Sergios is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Feb 2009
Posts: 1
Reputation: 1
wow! thanks man, this really helped!
Reply With Quote
  #3  
Old 02-27-2009
Sillyjake915's Avatar
Sillyjake915 is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Nov 2007
Posts: 26
Reputation: 3
Thanks alot dude!
Real great help!
Reply With Quote
  #4  
Old 02-27-2009
tatortotts's Avatar
tatortotts is offline.
Contributor
  
 
Join Date: Jun 2007
Posts: 242
Reputation: 86
Points: 3,123, Level: 5
Points: 3,123, Level: 5 Points: 3,123, Level: 5 Points: 3,123, Level: 5
Level up: 41%, 477 Points needed
Level up: 41% Level up: 41% Level up: 41%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Very nice guide, Thekal.
Good job and

-Tator
__________________
Gold Scammed - 23,000g
Accounts Scammed - 5
Working my way up the ladder!
Reply With Quote
  #5  
Old 02-27-2009
Choices is offline.
Contributor
  
 
Join Date: Apr 2008
Posts: 242
Reputation: 94
Points: 1,280, Level: 2
Points: 1,280, Level: 2 Points: 1,280, Level: 2 Points: 1,280, Level: 2
Level up: 76%, 120 Points needed
Level up: 76% Level up: 76% Level up: 76%
Activity: 2.6%
Activity: 2.6% Activity: 2.6% Activity: 2.6%

well done Thekal
__________________
Reply With Quote
  #6  
Old 02-28-2009
Thekal's Avatar
Thekal is offline.
Master Sergeant
  
 
Join Date: Jan 2008
Location: McDonalds.. D:
Posts: 77
Reputation: 30
Thanks for the nice words guys. I think i might start to add onto it.

Ill add a morpher NPC.
Reply With Quote
  #7  
Old 02-28-2009
surfsem is offline.
Master Sergeant
  
 
Join Date: Jun 2008
Posts: 105
Reputation: 11
Points: 1,236, Level: 2
Points: 1,236, Level: 2 Points: 1,236, Level: 2 Points: 1,236, Level: 2
Level up: 68%, 164 Points needed
Level up: 68% Level up: 68% Level up: 68%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Noob question: So Ive got a lua, what do I do to put it ingame?
__________________
Hey whats sup Im a wow addict wanna go out some time?
Reply With Quote
  #8  
Old 02-28-2009
EcHoEs's Avatar
EcHoEs is offline.
Contributor
  
 
Join Date: Sep 2006
Location: in ur cmputer
Posts: 1,434
Reputation: 256
Points: 10,053, Level: 12
Points: 10,053, Level: 12 Points: 10,053, Level: 12 Points: 10,053, Level: 12
Level up: 22%, 947 Points needed
Level up: 22% Level up: 22% Level up: 22%
Activity: 2.2%
Activity: 2.2% Activity: 2.2% Activity: 2.2%

There's plenty of tutorials like this, in arcemu forums and other :P But nice anyway. +rep
__________________

Reply With Quote
  #9  
Old 02-28-2009
Thekal's Avatar
Thekal is offline.
Master Sergeant
  
 
Join Date: Jan 2008
Location: McDonalds.. D:
Posts: 77
Reputation: 30
Surfsem

In your Scripts Folder for your private server is where you put it.

I can't Go into detail on where your scripts folder because its different for every person.
Reply With Quote
  #10  
Old 02-28-2009
Mircast's Avatar
Mircast is offline.
Master Sergeant
  
 
Join Date: Sep 2008
Location: London
Posts: 130
Reputation: 13
Quote:
Originally Posted by surfsem View Post
Noob question: So Ive got a lua, what do I do to put it ingame?
Well if you're using a repack, it should be near the logon and world.exe

Insert the script into your scripts folder, if there is no present scripts folder, creat one.
Reply With Quote
  #11  
Old 02-28-2009
surfsem is offline.
Master Sergeant
  
 
Join Date: Jun 2008
Posts: 105
Reputation: 11
Points: 1,236, Level: 2
Points: 1,236, Level: 2 Points: 1,236, Level: 2 Points: 1,236, Level: 2
Level up: 68%, 164 Points needed
Level up: 68% Level up: 68% Level up: 68%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Quote:
Originally Posted by josh253 View Post
Well if you're using a repack, it should be near the logon and world.exe

Insert the script into your scripts folder, if there is no present scripts folder, creat one.
In my scripts folder, theres 2 more folders, _Arc_lua-scripts and _Sun++LUA Scripts. Which do I put it in?
__________________
Hey whats sup Im a wow addict wanna go out some time?
Reply With Quote
  #12  
Old 03-01-2009
Vindicated's Avatar
Vindicated is offline.
Contributor
  
 
Join Date: Aug 2008
Location: USA
Posts: 1,057
Reputation: 213
Points: 3,189, Level: 5
Points: 3,189, Level: 5 Points: 3,189, Level: 5 Points: 3,189, Level: 5
Level up: 49%, 411 Points needed
Level up: 49% Level up: 49% Level up: 49%
Activity: 21.8%
Activity: 21.8% Activity: 21.8% Activity: 21.8%

You can put in both, just make sure there are no scripts for the same thing (conflicting scripts).
__________________
To Write Love On Her Arms <3
Reply With Quote
  #13  
Old 03-06-2009
cello1993's Avatar
cello1993 is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Sep 2006
Location: The Barrens
Posts: 121
Reputation: 4
Sorry I don't see the "Summon Creature" script part very well explained >.< could you be a little more detailed? Thanks!
Reply With Quote
  #14  
Old 03-16-2009
alfen95 is online.
New User
  
 
Join Date: Mar 2009
Location: Norway
Posts: 13
Reputation: 1
Points: 172, Level: 1
Points: 172, Level: 1 Points: 172, Level: 1 Points: 172, Level: 1
Level up: 44%, 228 Points needed
Level up: 44% Level up: 44% Level up: 44%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

I dont freakking get it :S:S

Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "PvP Places", 1, 0)
unit:GossipMenuAddItem(2, "Capital bar", 2, 0)
unit:GossipSendMenu(player)
end

function Gossip_Submenus(unit, event, player, id, intid, code, misc)
if(intid == 0) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "PvP Places", 1, 0)
unit:GossipMenuAddItem(2, "Azeroth Locations", 2, 0)
unit:GossipSendMenu(player)
end

if(intid == 1) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Diremaul", 300, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Capital bar", 301, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 300) then
player:Teleport(1, 16205.507966, 16214.343750, 1.111040)
unit:GossipComplete(player)
end
if(intid == 301) then
player:Teleport(1, -3785.331055, 1092.848999, 131.969467)
unit:GossipComplete(player)
end
end

RegisterUnitGossipEvent(333333, 1, "On_Gossip")
RegisterUnitGossipEvent(333333, 2, "Gossip_Submenus")

What`s wrong in this one ??
Reply With Quote
  #15  
Old 03-17-2009
Mildan is offline.
Sergeant
  
 
Join Date: Feb 2009
Posts: 68
Reputation: 10
Points: 223, Level: 1
Points: 223, Level: 1 Points: 223, Level: 1 Points: 223, Level: 1
Level up: 56%, 177 Points needed
Level up: 56% Level up: 56% Level up: 56%
Activity: 0.3%
Activity: 0.3% Activity: 0.3% Activity: 0.3%

This is the most epic guide ever made for LUA
This surely tought me most of what I know right now
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 08:03 AM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493