Npc Help Please!!!!!!

Play Now

cilla

Guest
well... made it on my own and im not very good at npc`s so please dont laugh >.<
The thing thats wrong is that it dont take gold or give ruby ring!! >.<
Could any 1 hlp me on this and post what it should be.
And also it only as the ruby ring cus its only abit done, but needed 2 test and didnt work!>.<

[@main]
Hello <$USERNAME>. Welcome to the Server! \
I have many items you can buy!!\
I can only advice you not to spend all your cash!!\
<Ring`s/@Lvl20>\
<Bracelet`s/@Lvl30>\
<Necklace`s/@Lvl40>\
<Weapon`s/@Lvl60>\
<Helmet`s/@Lvl80>\
<Exit/@Exit>\\

[@Lvl20]
#SAY
Here are the rings you can buy\
There are still more items to come\
<RubyRing/@HB5>\
<DragonRing/@HB>\
<platRing/@HB1>\
<PowerRing/@HB2>\
<VioletRing/@HB3>\
<TitanRing/@HB4>\
<Exit/@Exit> \\

[@HB5]
#IF
checkgold 125000
#SAY
Thanks for buying my ring!!
#ACT
goto @pass2
#ELSESAY
Rofl, Your skint!
<Cancel/@Exit>\\

[@pass2]
#ACT
takegold 125000
#ELSEACT
give RubyRing
 

cilla

Guest
n/m i fixed it on my own :) now looks like
[@main]
Hello <$USERNAME>. Welcome to the Server! \
I have many items you can buy!!\
I can only advice you not to spend all your cash!!\
<Ring`s/@Lvl20>\
<Bracelet`s/@Lvl30>\
<Necklace`s/@Lvl40>\
<Weapon`s/@Lvl60>\
<Helmet`s/@Lvl80>\
<Exit/@Exit>\\

[@Lvl20]
#SAY
Here are the rings you can buy\
There are still more items to come\
<RubyRing/@HB5>\
<DragonRing/@HB>\
<platRing/@HB1>\
<PowerRing/@HB2>\
<VioletRing/@HB3>\
<TitanRing/@HB4>\
<Exit/@Exit> \\

[@HB5]
#IF
checkgold 125000
#SAY
Thanks for buying my ring!!
#ACT
take gold 125000
give RubyRing 1
#ELSESAY
Rofl, Your skint!
<Cancel/@Exit>\\
 

Lothomadric

LOMCN Veteran
Veteran
Loyal Member
Dec 19, 2003
278
0
92
Bichon-Wall, With Bob the Chef
Mate, theres an easier way to make a shop. You can have it like the way you got it or to this:

Code:
[@Main]
Hello <$USERNAME>, You can buy a lot of items from\
me. Would you like to see what i sell.\
<Buy/@Buy>
<Leave/@Exit>

;Then At the Bottom put this (I think)
#Goods
;Now in here insert all the itemz which you want the npc
;to sell. :) Look at one of the normal Mir npcs to find out how
;to set it out properly.

Hope thts right and it hlps.

/Warlord
 

Gamedude

LOMCN Veteran
Veteran
Sep 23, 2003
257
0
42
Lothomadric said:
Code:
[@Main]
Hello <$USERNAME>, You can buy a lot of items from\
me. Would you like to see what i sell.\
<Buy/@Buy>
<Leave/@Exit>

;Then At the Bottom put this (I think)
#Goods
;Now in here insert all the itemz which you want the npc
;to sell. :) Look at one of the normal Mir npcs to find out how
;to set it out properly.

[goods]
;Name
ITEM -NUMBER IN STOCK - (dunno wot this is but it's always 1 :P)
EG.
Candle 200 1
Torch 200 1


and at the top u gotta put

%100
+1
+2
+3
etc.


or sumit like dat
 
Last edited:

Shaun123

Guest
he said hes fixed it now, and u cant do it the easier way cus spme times the prizes are not what u put them
 

Gamedude

LOMCN Veteran
Veteran
Sep 23, 2003
257
0
42
Shaun123 said:
lol r u 2 daft?!?!? its not that kind of npc u n00bs :P

don't call me daft, it is that kind of npc... a shop is the same as paying money and recieving an item from an npc.

and i was just correcting Lothomadric so........ shhht
 

lanky1

Dedicated Member
Dedicated Member
Oct 19, 2003
135
0
42
U.K
kk u c this part of the script u need 2 do 1 of these for each item or it wont give it u so ur next 1 would probably b

Example 1 (the 1 ur using @ the mo)
[@HB5]
#IF
checkgold 125000
#SAY
Thanks for buying my ring!!
#ACT
take gold 125000
give RubyRing 1
#ELSESAY
Rofl, Your wallet seems empty
<Cancel/@Exit>\\

example 2 (the one u need 2 do for all of em)
[@HB]
#IF
CheckGold (put price ere)
#SAY
Thanks for buying this ring
#ACT
Take gold (put price ere)
give (put ring ere) 1
#ELSESAY
rofl, Your wallet looks empty
<Cancel/@Exit>\\

not being funny or ne thing m8 but.... if i posted like this ppl would probably tell me 2 !!!!!!!READ!!!!!!!!