NameList in a NPC Script?

Play Now

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Hi im doing a few new Quests & 2 are Big & you have to collect items fom a few npc's but u can only do this @ lvl 40+ But how d i stop like lvl 45+ players from just geting a load of books & selling them intown ?



I need to lmet the npc to only give each player 1 of each item EVER


2'nd thing can i put a time limet on a item so it can only last an hour?
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
well first thing is simple, you dont even need to use a name list, simply use flags.

#IF
checkflag [001] 1
#SAY
You have already done this quest
#ELSEACT
goto @next

[@next]
#ACT
give book
set [001] 1
#SAY
heres your book.


Not sure what you mean about time limits on items, you mean like rent a ring from an npc for an certain amount of time then it dissapears?
 
Upvote 0

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
well first thing is simple, you dont even need to use a name list, simply use flags.

#IF
checkflag [001] 1
#SAY
You have already done this quest
#ELSEACT
goto @next

[@next]
#ACT
give book
set [001] 1
#SAY
heres your book.


Not sure what you mean about time limits on items, you mean like rent a ring from an npc for an certain amount of time then it dissapears?


I know about the flags but how doi know witch are being used or are they all free to use?

& yes thats what i mean hat the item will dissapear after an hour.

Ty for the help :)
 
Upvote 0

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
im not sure if with these files you can go over 1000 flags. What i used to do with 1.4's though was start with flag 999 and work backwards, then I know that im not going to repeat flags.

If in doubt just search files and folders for [xxx] where xxx is the number and you will see if the flag is in use.

With the rental items, i dont think its possible to allow the item to be used for x amount of time. Only way I can see that you would be able to do anything like that would be to set the items so that they are not repairable although this wouldnt really work for weapons considering that a mage would never lose dura.
 
Upvote 0