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 ><
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...
No clue if this works, but it's worth a try =)
Chagne the 85002 in both register functions to your NPCCode: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")
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.
Edit the flag to 1.
And l33tnoob, my guide aboout ai_agents wont work for this
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...
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...
You need the extended Lua library from Lua++.