MMOCoin

Likes Likes:  0
Results 1 to 6 of 6

Thread: Buff Npc

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    19
    Reputation
    113
    Quote Originally Posted by Kreegoth View Post
    Hey Noob.. I've tried this a few times.. Sorry not your Script but it pertains to a script such as yours so i thought id respond here..

    is it possible using LUa to make the NPC do a check for a certain item in persons inventory and remove it upon completing the function.. Ie you need a Runed copper rod to be buffed with Str.. After buffing str it removes 1 runed copper rod from players inventory?.. I know thats a stupid example but its just off the top of my head.. or perhaps maybe even simply gold?....

    here is the code



    if pMisc:GetItemCount(998000) > 1 then
    pUnit:CastSpellOnTarget(33077, player)
    pMisc:RemoveItem(998000)
    end
    Last edited by runiker; 07-01-09 at 12:22 AM.



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •