-
Newbie
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
-
-
Elite Member
i dunno /8
there more important problem...
-
Newbie
-
Member
You wanna post how you got it to work?
-
Newbie
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.....
}
} }
-
Newbie
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