[GM Scripting] Making a npc Talk at a % of Health Points menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [GM Scripting] Making a npc Talk at a % of Health Points

    Hello guys, Here is a guide I'm going to make for OMGPWN

    Here it goes


    Ok first here is a Template to use for it \/

    Everything in red u need to change
    How to use template look below


    Code:
    global Npc_Name_Health = function(mob)
    {
    	if(.GetHealthPct() <= %_of_HP && Npc_Name == 0)
    	{
    	   .SendChatMessage("What you wont your Npc to say");
    	   global Npc_Name = 1;
    	}
    	if(.GetHealthPct() <= %_of_HP && Npc_Name == 1)
    	{
    	   .CastSpell(5200);
    	   .SendChatMessage("What you wont your Npc to say");
    	   global Npc_Name = 2;
    	}
    	if(.GetHealthPct() <= %_of_HP && Npc_Name == 2)
    	{
    	   .SendChatMessage("What you wont your Npc to say");
    	   global Npc_Name = 3;
    	}
    };
    global VanCleef_Combat = function(plr)
    {
    	global VC_PHASE = 0;
    	.RegisterTimer(Time in Miller Seconds, Npc_Name_Health, 0);
    	.SendChatMessage("What you wont your Npc to say");
    };
    .RegisterUnitEvent(Npc ID, 1, Npc_Name_Combat);
    Step 1 : All the things in red is the things u need to put in your self

    Step 2 :
    Open a note Pad or Txt Document and Copy and Paste that Template into it and then start modifyign it with Steps below

    Step 3 : global Npc_Name_Health = function(mob) = The name of your Npc That you wont to talk

    Step 4 : if(.GetHealthPct() <= %_of_HP && Npc_Name == 0) = the % of were the Npc will say the Message you chose at the % of Hp (Eg, 70 = 70%, 50 = 50%, Etc)

    Step 5 : if(.GetHealthPct() <= %_of_HP && Npc_Name == 0) = The same as in "Step 3" The name of your Npc (Must be the Same os Step 3 and the rest of the Naming ones)

    Step 6 : .SendChatMessage("What you wont your Npc to say"); = The Message you wont your Npc to say When it gets to the % of Hp

    Step 7 : global Npc_Name = 1; = The Name of your Npc (Remember must be the Same as every one were it says Npc_Name)

    Step 8 : .RegisterUnitEvent(Npc ID, 1, Npc_Name_Combat); = The npc Spawn id of your Npc (Eg, .npc spawn 67364, Etc)

    Step 9 : .RegisterUnitEvent(Npc ID, 1, Npc_Name_Combat); = The Name of your Npc in all the other place you put it (Make sure it is the Same as all the other places)

    Ok now If you wont you can keep Adding

    Code:
    	}
    	if(.GetHealthPct() <= %_of_HP && Npc_Name == 2)
    	{
    	   .SendChatMessage("What you wont your Npc to say");
    	   global Npc_Name = 3;
    	}
    To Make the npc talk more


    And now Naming it

    Nameing it is the hard part well kinda not really. Now when your done Modifyign it go to File > Save as > and put it as all Files and call it like (If you are doing it for a npc called Slayer i would call it KSlayer.gm) So like in "Step 3" The Name of your INpc just name it That and put a .gm at the end of it so it will be like " Slayer.gm "


    Saveing It : save it to your Desktop or some were u know were it is

    Step 10 : Now were u Have to put it u must put it in your Server's Ascent scripts Folder i am using Ac web so it would be in the folder \/

    C:\AC Web Ultimate Repack\Ascent\scripts

    If u dont have a scripts folder make 1 and just put that Notepad in that Folder and then in your Ascent cmd box type
    reloadscripts or in game type .reloadscripts or restart your server

    And then your Done


    If you need any Scripts done, Just ask me, Hope this Helps you guys out there
    Last edited by Illidan1; 11-09-2007 at 09:28 AM.

    [GM Scripting] Making a npc Talk at a % of Health Points
  2. #2
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    dude we will have 2 chat bout scripts 4 our server :d pretty hard ones tho O.o
    If you need me you have my skype, if you don't have my skype then you don't need me.

  3. #3
    OMGPWN's Avatar Active Member
    Reputation
    35
    Join Date
    Oct 2006
    Posts
    431
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Oh my god! Thank you Illidan1!

  4. #4
    777devil777's Avatar Member
    Reputation
    66
    Join Date
    Sep 2007
    Posts
    396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Damn ill....

    Illidin - Rep in Queue '3'
    Illidin - Rep to spread '7', '9', '9'

    "I am a hacker, and this is my manifesto. You may stop this individual, but you can't stop us all... after all, we're all alike."

  5. #5
    OMGPWN's Avatar Active Member
    Reputation
    35
    Join Date
    Oct 2006
    Posts
    431
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    I can never give you rep anymore.. Evrytime I try it says spread some around and its been like 3 days of spreading already so now I have said "+Rep" 4 times and couldent do it once.

  6. #6
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Haha lol Well keep spreading

  7. #7
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Haha lol Well keep spreading
    lol works great dude
    If you need me you have my skype, if you don't have my skype then you don't need me.

  8. #8
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Thanks mate

  9. #9
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Thanks mate
    np can u make custom teleporters also ?
    If you need me you have my skype, if you don't have my skype then you don't need me.

  10. #10
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    Na, Teleporter is C++ Scripting
    I got no Exp in C++ Sorry

  11. #11
    Illidan_000's Avatar Banned
    Reputation
    95
    Join Date
    Oct 2007
    Posts
    654
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [GM Scripting] Making a npc Talk at a % of Health Points

    thanks for sharing , Illidan bro'

Similar Threads

  1. How to make a npc talk at a perent hp (scripting)
    By Despara in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 01-31-2009, 07:46 PM
  2. [Guide] Make a NPC talk. No Scripting.
    By nether drake in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 10-30-2008, 12:54 PM
  3. how do i make a npc talk
    By edded in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-01-2008, 10:44 PM
  4. how to make a npc talk/cast Mangos
    By hotandsekc in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-11-2008, 09:12 PM
  5. Replies: 14
    Last Post: 10-31-2007, 01:17 PM
All times are GMT -5. The time now is 01:31 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search