Help with npc please

Mu online season 21 - grand opening

alienation

Dedicated Member
Dedicated Member
Mar 6, 2006
43
0
32
hi, i am trying to make a npc for a pet quest,
i only want 1 person in the room at one time
and when person has completed the quest for it to say
they have done the quest

thank's in advance :)
 

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
103
Middlesbrough ! Smoggy!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;Main NPC - add this to a Plain.txt file and add the npc to your Safezone
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@main]
#IF
check [XXX] 1 ; XXX is the flag number to Check for 0-999
#SAY
You have completed the quest, thanks.\ \
<Exit/@exit>\
#ELSESAY
; Speech here ;
<Do the Quest/@queststart>\

[@queststart]
#IF
checkhum MMM 1 ; MMM Map number
#SAY
There is already someone in there doing the quest.\ \
<Exit/@exit>\
#ELSESAY
go and kill a Wooma Taurus for me !
<lets go !/@queststart1>\

[@queststart1]
#ACT
set [YYY] 1 ; YYY is the flag number to start mapquest script
mapmove ZZZ ; ZZZ being the map with a WoomaTaurus on it.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;Insert this into your Mapquest.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

ZZZ [YYY] 1 [MonDie] WoomaTaurus * [ADDRESS TO MOB QUESTS\Quest.txt] [@WTQuest]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;Insert this into the Quest.txt in the Mob quest folder
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[@WTQuest]
#IF
check [YYY] 1
#ACT
give gold 100000
give item1
give item2
give book1
set [XXX] 1
mapmove 0 000, 000 <--- Bichon coords

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Hope this helps :)

/Stan
 
Last edited:
Upvote 0

niss

Golden Oldie
Golden Oldie
Jul 11, 2004
680
1
105
;====START OF NPC SCRIPT====

[@main]
#SAY
Welcome to the pet quest.\ \
<I Have The Quest Item/@CheckQuest>\
<I Wish To Tele To The Quest/@DoQuest1>\ \
Exit/@exit

[@CheckQuest]
#IF
Check [101] 0
#ACT
Goto @TakeQuestItem
#ELSEACT
Goto @QuestDoneBefore

[@QuestDoneBefore]
#SAY
You Have Already Completed The Quest.\ \
Exit/@exit

[@TakeQuestItem]
#IF
Check QuestItem 1
#ACT
Goto @TakeItem
#ELSEACT
Goto @NoItem

[@TakeItem]
#ACT
Take QuestItem 1
Set [101] 1
#SAY
Quest Complete!!! WELL DONE\ \
Exit/@exit

[@NoItem]
#SAY
You Don't Have The Items To Complete The Quest.\ \
Exit/@exit

[@DoQuest1]
#IF
Check [101] 0
#ACT
Goto @DoQuest2
#ELSEACT
Goto @QuestDoneBefore

[@DoQuest2]
#IF
CheckHum mapname 1
#ACT
Goto @QuestFull
#ELSEACT
Goto @DoQuest3

[@QuestFull]
#SAY
Sorry Someone Is Doing The Quest At This Time Please\
Try Later.\ \
Exit/@exit

[@DoQuest3]
#ACT
mapmove mapname cords cords
Give TownTeleport

;====END OF NPC SCRIPT====

Thats about right may have to fiddle with it slightly, i also assumed u wanted an item dropped for the quest as u didnt say

/Matt
 
Upvote 0

MentaL

Jev For Admín!
VIP
Mar 3, 2004
3,845
553
385
Cardiff
checking amount of people

[@main]
Pet room?\
<Pet/@pet>

[@pet]
#IF
checkhum MAP 1
#ACT
sendmsg 6 "Denied"
#ELSEACT
mapmove MAP

Quests i always use namelists like

#ACT
addnamelist list.txt
goto @done
break


then to check if he has done the quest do

#IF
checknamelist list.txt
#ACT
goto @done
#ELSEACT
goto @notdone
 
Upvote 0

alienation

Dedicated Member
Dedicated Member
Mar 6, 2006
43
0
32
niss said:
;====START OF NPC SCRIPT====

[@main]
#SAY
Welcome to the pet quest.\ \
<I Have The Quest Item/@CheckQuest>\
<I Wish To Tele To The Quest/@DoQuest1>\ \
Exit/@exit

[@CheckQuest]
#IF
Check [101] 0
#ACT
Goto @TakeQuestItem
#ELSEACT
Goto @QuestDoneBefore

[@QuestDoneBefore]
#SAY
You Have Already Completed The Quest.\ \
Exit/@exit

[@TakeQuestItem]
#IF
Check QuestItem 1
#ACT
Goto @TakeItem
#ELSEACT
Goto @NoItem

[@TakeItem]
#ACT
Take QuestItem 1
Set [101] 1
#SAY
Quest Complete!!! WELL DONE\ \
Exit/@exit

[@NoItem]
#SAY
You Don't Have The Items To Complete The Quest.\ \
Exit/@exit

[@DoQuest1]
#IF
Check [101] 0
#ACT
Goto @DoQuest2
#ELSEACT
Goto @QuestDoneBefore

[@DoQuest2]
#IF
CheckHum mapname 1
#ACT
Goto @QuestFull
#ELSEACT
Goto @DoQuest3

[@QuestFull]
#SAY
Sorry Someone Is Doing The Quest At This Time Please\
Try Later.\ \
Exit/@exit

[@DoQuest3]
#ACT
mapmove mapname cords cords
Give TownTeleport

;====END OF NPC SCRIPT====

Thats about right may have to fiddle with it slightly, i also assumed u wanted an item dropped for the quest as u didnt say

/Matt

ya it's 4 items i am having droped in this paticular quest, thank's for every one's help :)
 
Upvote 0