Im confused?

08/01/2010 12:01 2010mrsurfer#1
So I rewritten my start npc for my third reborn quest, ive added a my.char additem thing that i think should work (if not tell me) it debuggs and builds fine, added the npc in npc.txt, but in game i can speak to the npc :s anybody know why?
Atm the item im trying to add is a Panacea until i know how to make the items i need.

Here is some pictures:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
08/01/2010 19:12 Fish*#2
try look at your brackets.

{ is a bracket
} is a bracket

{ for starting a code
} for ending a code

You have { all the way down.
You need same } as {.
Wich means
if you got

code
{
code
{


then you need 2 }

like:
code
{
code
{
}
}
08/01/2010 19:58 2010mrsurfer#3
I changed all of the earlier, i think its right but it still doesnt do anything :s
08/01/2010 20:52 pro4never#4
totally offtopc but wtf is with tannel and if statements instead of switch..


He always seems to use if vs switch and hashtable vs dict...


Anyways yah.. strange seeing as the brackets are what i noticed wrong. You want

Npccase
{
option #
{
That option code (remember end npc packet)
}
}
08/01/2010 20:56 Zkiller110#5
did you debug it?? lol when i first started it took me a long to to figure out that the source had to be debugged for the change to show up in game add me on msn then ill show you how to add new items
08/01/2010 21:05 2010mrsurfer#6
Quote:
Originally Posted by pro4never View Post
totally offtopc but wtf is with tannel and if statements instead of switch..


He always seems to use if vs switch and hashtable vs dict...


Anyways yah.. strange seeing as the brackets are what i noticed wrong. You want

Npccase
{
option #
{
That option code (remember end npc packet)
}
}
xD im not to sure on who coded the Conquer-Sx source, but my npc didnt work in that source at all.... just downloaded another 5165 and it works fine :)

Quote:
Originally Posted by Zkiller110 View Post
did you debug it?? lol when i first started it took me a long to to figure out that the source had to be debugged for the change to show up in game add me on msn then ill show you how to add new items
lol yes i debugged xD that would be awesome if your could, PM your email please :)