NPC Script Error's

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
Hello, ive been trying to make a NPC which load's other txt's so i dont have to write a very very long script. ii want to make it so it load's Weps arms and accesorie's, but not all together,

this is what i have, i got Heal to work, but non of the rest are working.

Code:
[@MAIN]
#IF
checkpkpoint 2
#SAY
I will not help an evil person like you..\ \
<[EMAIL="Ok/@exit"]Ok/@exit[/EMAIL]>
#ELSEACT
goto @main-1
[@main-1]
#SAY
</FCOLOR=70>£º</FCOLOR=191> \ \
<[EMAIL="Storage/@store"]Storage/@store[/EMAIL]>        <[EMAIL="Weapon/@wep>\"]Weapon/@wep>\[/EMAIL]
<[EMAIL="Potion/@pot"]Potion/@pot[/EMAIL]>           <[EMAIL="Healer/@healer>\"]Healer/@healer>\[/EMAIL]
<Pet [EMAIL="Rental/@pet"]Rental/@pet[/EMAIL]>     <[EMAIL="Accesories/@acces>\"]Accesories/@acces>\[/EMAIL]
<[EMAIL="Armours/@arm"]Armours/@arm[/EMAIL]>        <[EMAIL="Books/@book>\"]Books/@book>\[/EMAIL]
<[EMAIL="Groceries/@groc"]Groceries/@groc[/EMAIL]>      <[EMAIL="Lottery/@lott>\"]Lottery/@lott>\[/EMAIL] \
</FCOLOR=70>£º</FCOLOR=191> \
[@store]
#ACT
GOTO @1
[@pot]
#ACT
GOTO @2
[@pet]
#ACT
GOTO @3
[@arm]
#ACT
GOTO @4
[@groc]
#ACT
GOTO @5
[@wep]
#ACT
GOTO @6
[@healer]
#ACT
GOTO @healer1
[@acces]
#ACT
GOTO @8
[@book]
#ACT
GOTO @9
[@lott]
#ACT
GOTO @10
 
[@1]
#CALL   [\Common\Storage.txt]  @store
[@2]
#CALL     [\Common\Potions.txt]  @pot
[@3]
#CALL     [\Common\PetRenter.txt] @pet
[@4]
#CALL     [\Common\Armours.txt]  @arm
[@5]
#CALL     [\Common\Groceries.txt] @groc
[@6]
#CALL     [\Common\Weapons.txt]  @wep
[@healer1]
#CALL     [\Common\Healer.txt]  @heal
[@8]
#CALL     [\Common\Accesories.txt] @acces
[@9]
#CALL     [\Common\Books.txt]  @book
[@10]
#CALL     [\Common\Lottery.txt]  @lott
 

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
Try using letters instead of the numbers if healer worked and that the only one with letter within it.
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
Did this work?
kinda, got another 1 working, is it possible to have One npc load other npc's (shop npcs)

i have this now, had to rewrite most of it. pissing thing lal

Code:
[@MAIN]
#IF
checkpkpoint 2
#SAY
I will not help an evil person like you..\ \
<[EMAIL="Ok/@exit"]Ok/@exit[/EMAIL]>
#ELSEACT
goto @main-1
[@main-1]
#SAY
</FCOLOR=70>£º</FCOLOR=191> \ \
<[EMAIL="Storage/@store"]Storage/@store[/EMAIL]>        <[EMAIL="Weapon/@wep>\"]Weapon/@wep>\[/EMAIL]
<[EMAIL="Potion/@pot"]Potion/@pot[/EMAIL]>           <[EMAIL="Healer/@healer>\"]Healer/@healer>\[/EMAIL]
<Pet [EMAIL="Rental/@pet"]Rental/@pet[/EMAIL]>     <[EMAIL="Accesories/@acces>\"]Accesories/@acces>\[/EMAIL]
<[EMAIL="Armours/@arm"]Armours/@arm[/EMAIL]>        <[EMAIL="Books/@book>\"]Books/@book>\[/EMAIL]
<[EMAIL="Groceries/@groc"]Groceries/@groc[/EMAIL]>      <[EMAIL="Lottery/@lott>\"]Lottery/@lott>\[/EMAIL] \
</FCOLOR=70>£º</FCOLOR=191> \
[@healer]
#ACT
GOTO @healer1
[@healer1]
#CALL     [\Common\Healer.txt]  @heal
[@store]
#CALL [\Common\Storage.txt]         @storage
[@pot]
#CALL [\Common\Potions.txt]         @potions
[@pet]
#CALL [\Common\PetRenter.txt]         @petrenter
[@arm]
#CALL [\Common\Armours.txt]          @armours
[@groc] 
#CALL [\Common\Groceries.txt]         @groceries
[@wep]
#CALL [\Common\Weapons.txt]         @weapons 
 
[@acces]
#CALL [\Common\Accesories.txt]        @accesories
[@book]
#CALL [\Common\Books.txt]             @books
[@lott]
#CALL [\Common\Lottery.txt]     @lottery

oooo look what i found,
i thought TD didnt add the .SVN? Sneaky Guy :P

61943863hk2.jpg


/ancient
 
Last edited:
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
They have always been in his files lol. He basically took the DM2 SVN files and started coding ontop of them. He didnt export them or anything, thats why those folders are still in the files.

Does the NPC txt colour work?
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
They have always been in his files lol. He basically took the DM2 SVN files and started coding ontop of them. He didnt export them or anything, thats why those folders are still in the files.

Does the NPC txt colour work?
only really Light Yellow, havnt really tryd anything else.

/ancient
 
Upvote 0