ArcEmu: [lua] All-in-one Npc <epic Script> - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[lua] All-in-one Npc <epic Script>

#1 User is offline   Drezland998 

  • Member
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 13-September 08

Posted 31 May 2010 - 11:41 AM

All-In-One NPC
By Singoe

=============================

Features:
-Horde/Alliance Mall Locations
-Main Citys-
-Leveling Road-
-VIP Lounge - Requires VIP Key (Not included)-
-World Locations-
-Buff Up-
-Change the Weather (clientside)-
-Max All Skills-
-Reset Talent Points-
-Remove Rez Sickness


========================================
Picture:
Posted Image

Pastebin:
All-In-One NPC - Pastebin

SQL for the V.I.P. Key
INSERT INTO `items` VALUES (70016, 13, 0, -1, 'V.I.P. Lounge Key', 22477, 5, 64, 0, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 3366, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Grants entrance into the V.I.P. Lounge. Don\'t get too hammered.', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0);


Credits go to me. Enjoy =)
PS. Drezland998 is just my other account

0

#2 User is offline   Shadoxfix 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 312
  • Joined: 30-December 09
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2010 - 12:39 PM

Maybe add an option so that people can turn vip off so that it won't be displayed.
0

#3 User is offline   Drezland998 

  • Member
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 13-September 08

Posted 31 May 2010 - 06:45 PM

If you dont want it just take it out of the script yourself its not hard.
0

#4 User is offline   suchASunthan 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 246
  • Joined: 29-November 08
  • Gender:Male
  • Location:Frankfurt
  • Interests:Vcpp, vb, sql, all programmlanguages
    more informations >:-]

Posted 02 June 2010 - 07:51 AM

Player:SetPlayerWeather(0, 2.0)

thats only on the player, why you dont make the whole zone like
local zone = pUnit:GetZoneId()
pUnit:SetZoneWeather(zone,0,2)

Koninzidenz begründet keine Korrelation und ist kein Beweis für Kausalität!

coincidence causes no correlation and in´t a argument for causality!

Posted Image
Posted Image
0

#5 User is offline   Drezland998 

  • Member
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 13-September 08

Posted 02 June 2010 - 03:27 PM

View PostsuchASunthan, on 02 June 2010 - 07:51 AM, said:

Player:SetPlayerWeather(0, 2.0)

thats only on the player, why you dont make the whole zone like
local zone = pUnit:GetZoneId()
pUnit:SetZoneWeather(zone,0,2)



Isn't it obvious? If you were change it so it affects everyones weather, instead of just the player's who changed it. You would have the weather changing every couple seconds if you had a populated server. Having it affect just the player also makes it so that it will stay that weather, and no other player can change your weather. It keeps it clientside... it keeps it simple.
0

#6 User is offline   darkt 

  • Member
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 05-July 08

Posted 12 June 2010 - 01:33 PM

to make a vip key just name a item vipkey?

or do i have to add it to a pre difinde nummer in db?

if zo what number?

in the script i only see (vipkey)

thanks in advance

lol nvm i found it :D
0

#7 User is offline   Drezland998 

  • Member
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 13-September 08

Posted 12 June 2010 - 09:54 PM

Updated the main post with SQL code for the VIP key.
0

#8 User is offline   applemes 

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 04-June 12
  • Gender:Male
  • Server OS:Windows

Posted 04 June 2012 - 11:45 AM

How do i make a npc give max skills? D: help please!~
0

#9 User is offline   iEzri 

  • < Ace of spades >
  • Group: Contributor
  • Posts: 1,692
  • Joined: 22-December 08
  • Gender:Female
  • Interests:I'm likely to cause mischief
  • Server OS:Linux

Posted 04 June 2012 - 01:08 PM

View Postapplemes, on 04 June 2012 - 11:45 AM, said:

How do i make a npc give max skills? D: help please!~


how about asking in the right section which this is clearly not?
Posted Image I do not join. I lead.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users