Making an item unique, help please.

Play Now

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
Ive had a search but couldnt find anything on this and not really sure if its possible to do, although im pretty sure it should be.....

say i have 10 items and I want them to be Unique (only 1 of each in game.)

Is it possible to make an NPC hand out this item only once?

I thought about doing a shop, with only 1 of each of the items in stock, but then a greedy person can access the shop, and buy out all 10 items at once.

any help on this be really appreciated.
 

3330

Dedicated Member
Dedicated Member
Aug 11, 2003
139
0
92
Italy
Karl said:
Ive had a search but couldnt find anything on this and not really sure if its possible to do, although im pretty sure it should be.....

say i have 10 items and I want them to be Unique (only 1 of each in game.)

Is it possible to make an NPC hand out this item only once?

I thought about doing a shop, with only 1 of each of the items in stock, but then a greedy person can access the shop, and buy out all 10 items at once.

any help on this be really appreciated.

you could make let the player buy just 1 item but the item can be bought from other ppls...
my idea was to SET [001] after the line where u buy the item....
but dont think is what u mean m8.....
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
3330 said:
you could make let the player buy just 1 item but the item can be bought from other ppls...
my idea was to SET [001] after the line where u buy the item....
but dont think is what u mean m8.....

setting 001 wouldnt work, because you still have access to the shop to purchase the items.

See, the player must obtain a ticket first, then they exchange that ticket for one of the items. Thats the reason i only want them to be able to get one thing at a time.
 

3330

Dedicated Member
Dedicated Member
Aug 11, 2003
139
0
92
Italy
there u hav to change the item classic name with the item u want and u can change the check gold 1000000 to check item ITEMNAME so if the player has the ticket he can buy if not u cant do anything...
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
nice script but it doesnt make an item unique so that another person cannot buy it.

once player 1 has bought item a
item a cannot be bought by any other player in game is what im trying to get.
 

3330

Dedicated Member
Dedicated Member
Aug 11, 2003
139
0
92
Italy
u could make an npc who sells items but no items in [@goods]
so u make the item and sell it to that npc maybe u could add it to shop once a week.......
neway got no help with what u need :(
 

Cupid

Dedicated Member
Dedicated Member
May 7, 2003
10
0
77
The only way i can see you doing this is by managing the npc script and checking when an item has been handed out. Once this item is gone, you remove it from the npc script. Not hard to do so long as you know when the tickets have been obtained and used.
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
Cupid said:
The only way i can see you doing this is by managing the npc script and checking when an item has been handed out. Once this item is gone, you remove it from the npc script. Not hard to do so long as you know when the tickets have been obtained and used.

I was thinking that was the only way id be able to do it, thanks for confirming. although i really didnt want to do it that way :(
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
Ok ive been talking with deathwish, and hes tried to explain an idea that i think will work.......if it does, ill release it.

Fingers crossed :s
 

DarkXXX

Golden Oldie
Golden Oldie
Apr 9, 2004
1,788
4
125
Sheffield
sounds like a rly kool idea tbh!
ya cud just make them hand the ticket to a gm in exchange for 1 ov the items thow,wud be alot easier! but if the idea deathwish came up with works then n1!
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
Good news, my script works. have now just got to finish it off!
Only GM intervention that will be required will be after a reboot.
If its a server crash, no problems everything will be ok :)

This script will allow as many unique items as you want!
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
34
255
Gloucester
ok here it is, ill post in release section also.........enjoy.

;Scripted by Karl, idea by DeathWish.

[@main]
#IF
checknamelist namelist.txt
#SAY
Sorry but you already have a unique item.\ \
<exit/@exit>\
#ELSESAY
Hi you would like to collect your item.\
do you have the special ticket on you?\ \
<Yes/@next>\
<No/@exit>\

[@next]
#IF
checkitem specialticket 1
#ACT
take specialticket 1
#SAY
Click <here/@item> for your item.\
#ELSESAY
Damn why you always try to cheat me?\

[@item]
#IF
checkmonmap MAP 1
#ACT
goto @item2
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item1 1
addnamelist namelist.txt
#SAY
Here is your item, your item 1 enjoy.\ \
<Thanks/@exit>

[@item2]
#IF
checkmonmap MAP 2
#ACT
goto item3
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item2 1
addnamelist namelist.txt
#SAY
Here is your item, your item 2 enjoy.\ \
<Thanks/@exit>

[@item3]
#IF
checkmonmap MAP 3
#ACT
goto item4
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item3 1
addnamelist namelist.txt
#SAY
Here is your item, your item 3 enjoy.\ \
<Thanks/@exit>

[@item4]
#IF
checkmonmap MAP 4
#ACT
goto item5
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item4 1
addnamelist namelist.txt
#SAY
Here is your item, your item 4 enjoy.\ \
<Thanks/@exit>

[@item5]
#IF
checkmonmap MAP 5
#ACT
goto item6
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item5 1
addnamelist namelist.txt
#SAY
Here is your item, your item 5 enjoy.\ \
<Thanks/@exit>

[@item6]
#IF
checkmonmap MAP 6
#ACT
goto item7
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item6 1
addnamelist namelist.txt
#SAY
Here is your item, your item 6 enjoy.\ \
<Thanks/@exit>

[@item7]
#IF
checkmonmap MAP 7
#ACT
goto item8
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item7 1
addnamelist namelist.txt
#SAY
Here is your item, your item 7 enjoy.\ \
<Thanks/@exit>

[@item8]
#IF
checkmonmap MAP 8
#ACT
goto item9
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item8 1
addnamelist namelist.txt
#SAY
Here is your item, your item 8 enjoy.\ \
<Thanks/@exit>

[@item9]
#IF
checkmonmap MAP 9
#ACT
goto item10
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item9 1
addnamelist namelist.txt
#SAY
Here is your item, your item 9 enjoy.\ \
<Thanks/@exit>

[@item10]
#IF
checkmonmap MAP 10
#ACT
goto item11
#ELSEACT
Param1 I001
Param2 5
Param3 5
MonGen experiancehen 1 1
give item10 1
addnamelist namelist.txt
#SAY
Here is your item, your item 10 enjoy.\ \
<Thanks/@exit>
 
Last edited: