Nexon Tactical
Welcome to nexon tactical we hope you have a good time on the forum thank you and bye


This forum is for any one who wants to learn about games get free stuff for games or mabye just free stuff then you came to the right place
 
HomeRegisterLog in
we need to get more members so trying your best to get them use msn games steam xfire anything
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Render In 2
Sun Jun 15, 2014 3:20 pm by adenyonna

» 3D Instruktor 2.2.3. Volkswagen Golf GTI Mk2.rar
Wed Feb 19, 2014 8:51 pm by adenyonna

» 18 Close Up Com
Tue Feb 18, 2014 12:35 pm by adenyonna

» Driver Rt2560f Para Xp
Sat Feb 15, 2014 4:34 pm by adenyonna

» The Great Dictator (1940)
Fri Feb 14, 2014 1:31 am by adenyonna

» MEMBERS OF CAUTION
Mon Aug 24, 2009 4:42 pm by xxpkerxx

» All People
Sun Aug 23, 2009 11:11 am by xxpkerxx

» How to hack Runescape
Sun Aug 23, 2009 9:58 am by xxpkerxx

» Excosited games
Sun Aug 23, 2009 9:43 am by xxpkerxx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 53 on Tue Jul 02, 2013 11:49 am
Im Purplehippo
Sat Jul 25, 2009 7:30 pm by PurpleHippo
Hi Im Purplehippo pretty much here for tournamentssssssssss

Comments: 0
I am Nic The Vigilante
Wed Jul 15, 2009 2:54 pm by Nicolas
I am Nic the End im a MLG of Call of Duty Series


DICTIONARY: MLG = Major League Gamer

Im Just hangin out No im not a 200 pound nerd im a 89 pound guy that has a girlfriend sooo...

All those ******* that say im a 200 pound nerd ur a ******* nerd that weights 300 pounds

BTW IM NOT SWEARING IM PUTTING STARS

Comments: 3
I am Jonei
Tue Jul 14, 2009 11:50 am by jonei
[b]I am Jone! Shocked I like eating toast to dinner cheers cheers cheers I am also a Teacher in one way of LUA ( Coding) for WoW, witch means i can make a npc yelling out "I LOVE BUTTERFLIES!" and then Summon a monster whit like 3000000 hp etc. All in the fantasy Twisted Evil I also am a verry active Dude? ( Razz ) and i love to hug.. All for me!

Comments: 3
Mabencs! ........
Thu Jul 16, 2009 10:56 am by mabencs
Hey i'm mabencs! ... nothing special actualy xD playing Wow, Aoc and sometimes Lotro
playing Cod 4 and CodWaW to

Comments: 2
TNT! A Dynamite!
Wed Jul 15, 2009 6:09 pm by Dynamite
Hey everyone, my name is Dynamite. I am a acquaintance of Nicolas, he told me to join over MSN. I figured I would check it out. Let me know if you need anything.

Comments: 4
I am xxpkerxx
Tue Jul 14, 2009 9:05 am by xxpkerxx
hi my name is marcus i am the founder and creator of this site i made this to let people know about games and whats going on so i play wow i have a level 72 DK i am in the realm darrowmere. i have alot of free time so i made this site to help people and have give aways i also play the online game evony you can join at www.thewowhelper.evony.com (just in case) u ever want to play

Comments: 4
i am james
Tue Jul 14, 2009 12:37 pm by im awsome
hi i am james i like video games my best friend name is marcus (the owner of the site) he got me on this web site.

Comments: 3
Hey people! This is about me :/
Tue Jul 14, 2009 3:02 pm by DemonForce112
Hey people, I am a friend of Jonei's, my name is Jordan!

I am 14 years old, my star sign is leo and I don't really know what to put :/

I have msn if anyone wants to contact me, DemonForce112@cyberstorm.com


Arrow Arrow Arrow Arrow Arrow Arrow Arrow Arrow Arrow Arrow

Comments: 2
Statistics
We have 37 registered users
The newest registered user is caselean

Our users have posted a total of 278 messages in 108 subjects

Share | 
 

 LUA SCRIPTING! TELEPORTER!

View previous topic View next topic Go down 
AuthorMessage
jonei
rank 3
rank 3
avatar

Posts : 42
Join date : 2009-07-14
Age : 22
Location : 127.0.0.1

PostSubject: LUA SCRIPTING! TELEPORTER!   Tue Jul 14, 2009 2:26 pm

THIS IS LUA SCRIPTING

hey guys and welcome to my guide, i will be explaining you how to make a teleporter.
All the coloured have to be modified by you , and i will explain how

but when your making teleporters make sure you dont use INTID more than once, that would mess up your script.


Function
Open a Lua Notepad and paste this into it :
when you are making menu's put this infront of them this is the first thing in your script:

Quote :

function NAME_OnGossipTalk(pUnit, event, player, pMisc)

When you start doing Location Places or submenu's than you need put this infront of it before doing the Location places:

Quote :

function NAME_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)

Teleport Menu's
would look like this:
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)

to make more than 1 menu you just add more so :

pUnit:GossipMenuAddItem(3, "Location LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "Location LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "Location LIST NAME", INTID, 0)


INTID is the ID that tells the script where you want it for example:
if i would put INTID 1 i would make a submenu like this:

Submenu
if(intid == 1) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "LOCATION NAME HERE", INTID, 0)
pUnit:GossipMenuAddItem(1, "LOCATION NAME HERE", INTID, 0)
pUnit:GossipMenuAddItem(1, "LOCATION NAME HERE", INTID, 0)
pUnit:GossipMenuAddItem(1, "LOCATION NAME HERE", INTID, 0)
pUnit:GossipSendMenu(player)
end

Now we have made a submenu we have to make the teleporting location
that would be made like this:

if(intid == INTID HERE) then --You can put location name here to remind u
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end

if(intid == INTID HERE) then --You can put location name here to remind u
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end

if(intid == INTID HERE) then --You can put location name here to remind u
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end

if(intid == INTID HERE) then --You can put location name here to remind u
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end

MAPID, X, Y, Z can be found by going in-game and doing .gps on the location you want.
or you could go to recall table in your database and find the location in there.
Here is a completed Teleport Location, it should look like this:

if(intid == 5580) then --Stormwind
player:Teleport(0, -8913.23, 554.633, 94.7944)
pUnit:GossipComplete(player)
end
this is a complete stormwind location.
you can also make multiple menu's that would look like this :



Menu without Submenu
if you want to make a menu without submenu you would do like this:
E.G. pUnit:GossipMenuAddItem(3, "NAME", INTID, 0)

you do exactly the same, only this time you do no sub-menu
so :
here is completed 1:
pUnit:GossipMenuAddItem(3, "Mall", 5572, 0)

if(intid == 5572) then --Mall
player:Teleport(1, -2659.93, -5017.63, 21.9876)
pUnit:GossipComplete(player)
end

Menu with Spells
now il show you how to make a spell menu
first you will make a same menu as before:
i will use a resurrection sickness 1:
pUnit:GossipMenuAddItem(3, "Resurrection Sickness", INTID, 0)

after you have done this you have to make a script with INTID, for resurrection sickness it would look like this:

Uncompleted:
if (intid == INTID) then
player:LearnSpell(SPELLID) -- Remove Resurrection Sickness
player:UnlearnSpell(SPELLID)
pUnit:GossipComplete(player)
end

Completed:
pUnit:GossipMenuAddItem(3, "Resurrection Sickness", 9696, 0)

if (intid == 9696) then
player:LearnSpell(15007) -- Remove Resurrection Sickness
player:UnlearnSpell(15007)
pUnit:GossipComplete(player)
end

to make a menu that only learns spell that would look like this:
pUnit:GossipMenuAddItem(3, "SPELLS", INTID, 0)

You can make multiple Spell actions in 1 INTID like this:
if(intid == INTID) then
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)
player:LearnSpell(SPELLID, player)

Menu with race requirement
You can also make a Menu that requires a curtain races
for example:
It is exactly the same only you have expended the menu script a bit for example:
Alliance race:
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipMenuAddItem(3, "LOCATION NAME", INTID, 0)
end

Horde Race:
local race=player:GetPlayerRace()
if race==2 or race==5 or race==6 or race==8 or race==10 then
pUnit:GossipMenuAddItem(3, "LOCATION NAME", INTID, 0)
end

This will make only Curtain races be able to view this menu, this is highly recommended when you are making Faction Cities .

Making a teleporter not able to talk when your in combat
The script would look like this:

if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("MESSAGE HERE")
else

After EVERY menu or Teleport location you make you have to put a end E.G.:
Teleport location:
if(intid == INTID) then
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end

Menu:
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipMenuAddItem(3, "LOCATION LIST NAME", INTID, 0)
pUnit:GossipSendMenu(player)
end

and also at the end for your last location area you should have a extra end so it would look like this :
if(intid == INTID) then
player:Teleport(MAPID, X, Y, Z)
pUnit:GossipComplete(player)
end
end


Now registering


Quote :

RegisterUnitGossipEvent(NPCSPAWNID, 1, "NAME_OnGossipTalk")
RegisterUnitGossipEvent(NPCSPAWNID, 2, "NAME_OnGossipSelect")


U must use lua notepad for the world to be able to read it!

REMEMBER TO REPORT ANNY ERRORS YOU GET FROM THIS GUIDE TO ME!
Back to top Go down
http://www.ac-web.org
xxpkerxx
owner
owner
avatar

Posts : 39
Join date : 2009-07-14

PostSubject: LUA teleport script   Tue Jul 14, 2009 3:02 pm

WOW that was a lot to write cool
Back to top Go down
http://nexontactical.darkbb.com
matsen
mod
mod


Posts : 10
Join date : 2009-07-14

PostSubject: Re: LUA SCRIPTING! TELEPORTER!   Sat Jul 18, 2009 2:18 pm

Too long LUA is sooooooo easy
Back to top Go down
jonei
rank 3
rank 3
avatar

Posts : 42
Join date : 2009-07-14
Age : 22
Location : 127.0.0.1

PostSubject: Re: LUA SCRIPTING! TELEPORTER!   Sat Jul 18, 2009 4:00 pm

matsen wrote:
Too long LUA is sooooooo easy

Quote :
*WARNING!*
DO NOT POST ANNYTHING THAT IS LIKE THAT! ONE MORE TIME AND I WILL MAKE YOUR ENTRANCE HERE LIKE HELL!.
Back to top Go down
http://www.ac-web.org
Sponsored content




PostSubject: Re: LUA SCRIPTING! TELEPORTER!   

Back to top Go down
 
LUA SCRIPTING! TELEPORTER!
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Dreadknight flyer???
» Need Help in RM scripting
» AOE_Fan's RMS Command Tutorial
» Help Scripting Healthbar and Damage !
» Some words about scripting

Permissions in this forum:You cannot reply to topics in this forum
Nexon Tactical :: world of warcraft :: Wow private server scripts-
Jump to: