NPC, which makes firework

Results 1 to 6 of 6
  1. #1
    Newbie drundead is offline
    MemberRank
    Sep 2006 Join Date
    6Posts

    NPC, which makes firework

    Hello,
    Im new here, i have a question :
    I tried to make a npc which makes a firework when you talk to him.

    namespace eval fireworks {
    #--------------------------------------------------------
    proc GossipHello { npc player } {
    SendSwitchGossip $player $npc 1
    SendGossip $player $npc { npctext 100000 }
    { text 0 "FIREWORK" } <----- this seems to be the problem coz the emu says "incorrect command name " text 0 "FIREWORK "
    }

    #--------------------------------------------------------
    proc GossipSelect { npc player option } {
    switch $option {
    0 { castspell $npc $npc 17447 }
    }
    SendGossipComplete $player
    } .......

    do u know what is wrong?? By the way: the spell ID is still incorrect ill find it when the npc is working.


    thx and cu


  2. #2
    Elite Member qazqwertyqaz is offline
    Member +Rank
    Jul 2006 Join Date
    i like burundiLocation
    205Posts
    i dunno /8
    there more important problem...

  3. #3
    Newbie drundead is offline
    MemberRank
    Sep 2006 Join Date
    6Posts
    i did it^^

  4. #4
    Member slick420 is offline
    MemberRank
    Jul 2006 Join Date
    MichiganLocation
    45Posts
    You wanna post how you got it to work?

  5. #5
    Newbie drundead is offline
    MemberRank
    Sep 2006 Join Date
    6Posts

    hmm^^

    ok here is it but he is just making one rocket how can i make her to fire more?

    namespace eval fireworks {
    proc GossipHello { npc player } {
    set RWUB { text 1 "red, white and blue" }
    set B { text 1 "blue" }
    set G { text 1 "green" }
    set RS { text 1 "red" }
    set GR { text 1 "yellow roses" }
    SendGossip $player $npc $RWUB $B $G $RS $GR
    }
    proc GossipSelect { npc player option } {
    switch $option {
    0 { CastSpell $npc $npc 11543
    Say $player 0 "its red, white and blue" }
    1 { CastSpell $npc $npc 11540
    Say $npc 0 "its blue" }
    2 { CastSpell $npc $npc 11541
    Say $npc 0 "its green" }
    3.....
    4.....
    }
    } }

  6. #6
    Newbie Hodenjoe is offline
    MemberRank
    Mar 2007 Join Date
    1Posts

    Re: NPC, which makes firework

    can you tell me where i have to place the code?

    sorry i'm a totally noob ;)


    thanks a lot



Advertisement