making npcs talk...Help Plz
ok im tring to get my newly made npc to reply to hails and show what i put in im using the quest tool but isnt saving it
|
Post your script. If it's not responding, then you have something wrong in the code.
|
did you reload the quests after saving the quest while in game? its #reloadpl i think to reload quests and plugins.
|
ok here is my Script im wanting to hand in 4 items and then be giving my quest item.........Problem is not getting reply to hail and my link wouldnt work to next phase ect...
sub EVENT_SAY { my $RatLord = quest::saylink("Rat Lord"); if($text=~/Hail/i) { plugin::Whisper("Hi there $name,We have a big rat problem here in the mines,one of my guards went deep in the mine and spotted a [$Rat Lord] the guard said he was big and powerful he ran befor The Beast could get him."); } elsif($text=~/Rat Lord/i) { plugin::Whisper("Yes, The Rat Lord is said to be the Leader of these Rats could you step forth and kill him and bring me 4 Rat Lord Skulls? I will Give you nice Charm in return."); } if ($item1== 299999 && $item2== 299999 && $item3== 299999) { sub EVENT_ITEM { if(plugin::check_handin(\%itemcount,299999 => 4)) { quest::say("Good Job Young of being a great scaled mystic. "); quest::SummonItem("59943"); quest::givecash("5","10","15","20"); quest::exp(500); } |
Try this, and check the item ID you are expecting them to turn in. 299999 is most likely wrong.
Code:
sub EVENT_SAY |
Thanks all works but no item giving on hand in have check all ids and fixed them just tring to find my error on return item
|
quest::summonitem(59943);
quest::givecash(5,10,15,20); These should not have quotes around the numbers, and summonitem should be all lowercase. |
woooot got it Thanks so much for your help and time.
|
All times are GMT -4. The time now is 11:02 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.