Quote:
Originally Posted by ImmuneOne
Code:
-> Direction(Entity.X, Entity.Y, NPC.X, NPC.Y);
-> Walk into direction =
{
if (Distance(Entity.X, NPC.X, Entity.Y, NPC.Y) <= 2)
NPC.Interact();
}
As I don't know the definitions in your source, you can figure it out on your own.
|
That's not what I was trying to do but that's really helpful so thanks!
=]
What I'm trying to do is have it so that you can open the Armor shop after talking to him... here, i'll get some pictures- hold on.
Like this:
[Only registered and activated users can see links. Click Here To Register...]
and then "I need to buy some equipment" = control 2 which goes to this window:
[Only registered and activated users can see links. Click Here To Register...]
If you guys help me with this then I'll release the Starter Quest.
I admit that I'm not the best coder and i'm not ashamed of it since it's impossible to know everything about coding in 1 month. Please give me some help you guys, I'd really like to learn how to do this.
I also found this in Shop.dat:
Code:
[Shop14]
ID=4
Name=Armorer
Type=1
MoneyType=0
ItemAmount=39
Item0=123003
Item1=123013
Item2=123023
Item3=123033
Item4=112003
Item5=112013
Item6=112023
Item7=112033
Item8=132005
Item9=132015
Item10=118003
Item11=118013
Item12=118023
Item13=118033
Item14=111003
Item15=111013
Item16=111023
Item17=111033
Item18=113005
Item19=113013
Item20=114003
Item21=114013
Item22=114023
Item23=114033
Item24=135003
Item25=135013
Item26=135023
Item27=130005
Item28=130015
Item29=130025
Item30=131005
Item31=131015
Item32=131025
Item33=133005
Item34=133015
Item35=133025
Item36=134005
Item37=134015
Item38=134025
which means...
Code:
4 40 1 0 1002 412 366
4 is the id, 40 is the npc-mesh id, 1 means shop, 0 means non-pkable, and then location.
So if I change it to dialog (2) then... i have to figure out how to link it to the shop...
How does it link in the first place?