[HELP] NPC ress sickness eraser menu

User Tag List

Results 1 to 8 of 8
  1. #1
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] NPC ress sickness eraser

    Any can make me or help me making a script to erase the ress sickness when the player talks with a npc? I need and dont have some idea how to make the lua.

    Thx a lot ><

    Only simple things make me feel alive...

    [HELP] NPC ress sickness eraser
  2. #2
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No clue if this works, but it's worth a try =)

    Code:
    function remove_on_gossip_talk (Unit, Event, Player)
    Unit:GossipCreateMenu(3543, Player)
    Unit:GossipMenuAddItem(Player, 0, "Remove Sickness", 1, 0)
    Unit:GossipSendMenu(Player)
    end
    
    function remove_on_gossip_select(Unit, Event, Player, id, intid, code)
    
    if(intid == 1) then
    Player:RemoveSpell(15007)
    end
    
    
    intid = 0
    end
    
    RegisterGossipEvent(85001, 1, "remove_on_gossip_talk")
    RegisterGossipEvent(85002 , 2, "remove_on_gossip_select")
    Chagne the 85002 in both register functions to your NPC

  3. #3
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tomorrow I go to try and I say if it works, if works thx a lot and rep+ ^^

    EDIT: Is correct this for the npc? If not is correct, plz correct me ;P
    Code:
    INSERT INTO creature_names
       (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
    VALUES
       (85002, 'WoW Ress Sickness Eraser', 'WoW NPC', '', 0, 6, 0, 0, 0, 0, 987, 0, 0, 0, 1.02, 1, 0, 0);
    
    INSERT INTO creature_proto
       (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `mountdisplayid`, `equipmodel1`, `equipinfo1`, `equipslot1`, `equipmodel2`, `equipinfo2`, `equipslot2`, `equipmodel3`, `equipinfo3`, `equipslot3`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`)
    VALUES
       (85002, 70, 70, 21, 99999999, 99999999, 0, 1, 0, 10, 0, 10000, 10000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 360000, 1002, 0, 0, 0, 0, 0, 0, 1, 1, '0', 0, 61, 0, 0, 2.5, 8, 14, 0, 0, 0, 0, 0, 0);
    Last edited by kaothic; 06-26-2008 at 06:18 PM.

  4. #4
    **Sweeny**'s Avatar Member
    Reputation
    33
    Join Date
    Dec 2007
    Posts
    282
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit the flag to 1.

    And l33tnoob, my guide aboout ai_agents wont work for this

  6. #6
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't work, tryed with arcdb rev 185 and says:

    Any solution? :/ Thx

    EDIT: It would not have to be RegisterUnitEvent(85001, 1, "remove_on_gossip_talk")
    RegisterUnitEvent(85002 , 2, "remove_on_gossip_select")????
    Last edited by kaothic; 06-27-2008 at 11:00 AM.

    Only simple things make me feel alive...

  7. #7
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any can help me?? >< The npc dont give the option to erase the ress sickness, I changed the RegisterGossipEvent to RegisterUnitEvent, but the script dont work, plz I need the script and npc works correctly, plz help +rep.

    Only simple things make me feel alive...

  8. #8
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need the extended Lua library from Lua++.

Similar Threads

  1. [Help] NPC gossip
    By Stew in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-01-2008, 05:53 AM
  2. [help]npcs
    By OmriMor in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-26-2008, 01:45 PM
  3. [Request?][Help]Npc Say
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-21-2008, 06:11 PM
  4. [Help] Longer Res. Sickness
    By Moonstalker in forum WoW EMU Exploits & Bugs
    Replies: 2
    Last Post: 03-14-2008, 08:36 AM
  5. [HELP] Npc whit Weapon's and Armor
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-13-2008, 03:21 PM
All times are GMT -5. The time now is 01:16 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search