Issue solved. nvm dis post menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Issue solved. nvm dis post

    Issue Solved
    TY

    What's the difference between pUint and Unit....

    ty ^_^

    +

    I also, can't get this damn mob to cast this spell on the player... He always targets him self...

    function PrinceMalchezarr1_Spell54(pUnit, Event)
    pUnit:SendChatMessage (12, 0, "Durka Durka!")
    pUnit:SendChatMessage (12, 0, "I eat your face!!")
    pUnit:CastSpellOnTarget (38010, pUnit:GetRandomPlayer(0))
    End
    Last edited by moongo; 05-12-2008 at 07:32 PM. Reason: eh
    -Ekarc

    Issue solved. nvm dis post
  2. #2
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As I know but im not relah sure.. mnn i should be.

    Unit , PlayerUnit
    Cheese Cake?

  3. #3
    bill45's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    104
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this and also, I don't like using pUnit myself; I usually just use unit.


    Code:
     function PrinceMalchezarr1_Spell54(Unit, Event)
    local plr = Unit:GetRandomPlayer(0) 
    if (plr ~= nil) then
    Unit:CastSpellOnTarget (38010, Unit:GetRandomPlayer(0))
    Unit:SendChatMessage (12, 0, "Durka Durka!")
    Unit:SendChatMessage (12, 0, "I eat your face!!")
    End
    End

  4. #4
    Bapesy's Avatar Banned
    Reputation
    35
    Join Date
    May 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pUnit is full of epic.

    Five Gum!

  5. #5
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bill, whats the point of poiting the function to "plr" when you never even use it...
    heres a working script:

    Code:
    function PrinceMalchezarr1_Spell54(pUnit, Event)
    local PPL = pUnit:GetRandomPlayer(0) 
    if (PPL ~= nil) then
    pUnit:CastSpellOnTarget (38010, PPL)
    pUnit:SendChatMessage (12, 0, "Durka Durka!")
    pUnit:SendChatMessage (12, 0, "I eat your face!!")
    end
    end
    Life Puzzler WoW - Website | Forums

  6. #6
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .

    Nope =/ still keeps casting this spell on himself...

    Perhaps I have something wrong someplace else... Does anything else effect this? for example the RegisterEvent part?
    -Ekarc

  7. #7
    Pwntzyou's Avatar Contributor
    Reputation
    264
    Join Date
    Dec 2007
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no difference it just a call... if you use unit your func would look like this

    func lol_function (Unit, event)


    Punit would look like this

    func lol_function(pUnit, event)

    They both do the same thing^^

    <3 MysterioussouL for the sig

  8. #8
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look, this is what i use in one of my scripts.

    Code:
        local plr = pUnit:GetRandomPlayer(0)
           if (plr ~= nil) then
            pUnit:FullCastSpellOnTarget(27994, plr)
        end
    Life Puzzler WoW - Website | Forums

  9. #9
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well... could it have to do with this command?
    RegisterUnitEvent(22093, 1, "On_Combat57")
    since 22093 is the unit who keeps casting the spell on him self...?
    -Ekarc

  10. #10
    bill45's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    104
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Shouldn't it be RegisterUnitEvent(22093, 1, "PrinceMalchezarr1_OnEnterCombat57")


    Not sure if that would make a difference on him casting a spell on himself.

  11. #11
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actualy its
    RegisterUnitEvent(22093, 1, "On_Combat57")
    then under
    function On_Combat57(Unit, Event)
    i have
    Unit:RegisterEvent("PrinceMalchezarr1_Spell54", 1000, 1)

    basicly =/
    -Ekarc

  12. #12
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    O sheet! I got dis now <3

    my code is:

    function PrinceMalchezarr1_Spell54(pUnit, Event, miscunit, misc)
    local plr = pUnit:GetClosestPlayer()
    if (plr ~= nil) then
    pUnit:FullCastSpellOnTarget(38010, plr)
    pUnit:SendChatMessage (12, 0, "DURKA DURKA!")
    pUnit:SendChatMessage (12, 0, "I EAT YOUR FACE!")
    end


    I rly can't say, why it decided to work.... But the Local plr variable helped im sure ^_^ +Rep
    -Ekarc

Similar Threads

  1. Issue Solved. Please Close.
    By Imthaendgame in forum Gaming Chat
    Replies: 1
    Last Post: 02-21-2017, 06:42 PM
  2. nvm this post
    By edexx in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 09-19-2015, 05:59 PM
  3. Please Read Before Posting On These Forums Answers Many Issues!!!
    By Fault in forum World of Warcraft Model Editing
    Replies: 21
    Last Post: 08-08-2007, 01:08 PM
All times are GMT -5. The time now is 04:14 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