Leo32
Getting back into it...
- Joined
- Sep 21, 2007
- Messages
- 990
- Solutions
- 14
- Reaction score
- 546
I've Been working a 7.6 Map lately. And its going really well. I;m Using a Yurots Server. Its 100% stable. No bugs.
But I have one problem
Im Using YurOts 0.9.4f
And the Npc command/script Selfturn() Does not work.
So for example. If you say hi to the Npc. He turn and face you (Depending on where you are standing).
For example:
Now, SelfTurn() Does not work on Yurots 0.9.4f
Does anyone know which version it will work on?
Or does anyone have another script I could possibly use so the Npcs face you when you talk to them.
But I have one problem
Im Using YurOts 0.9.4f
And the Npc command/script Selfturn() Does not work.
So for example. If you say hi to the Npc. He turn and face you (Depending on where you are standing).
For example:
Code:
if focus >= 1 then
x, y, z = creatureGetPosition(focus)
myx, myy, myz = selfGetPosition()
if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then
selfTurn(0)
end
if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then
selfTurn(2)
end
if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then
selfTurn(1)
end
if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then
selfTurn(3)
end
if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then
selfTurn(1)
end
if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then
selfTurn(3)
end
if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then
selfTurn(2)
end
if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then
selfTurn(0)
end
if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then
selfTurn(1)
end
if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then
selfTurn(3)
end
if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then
selfTurn(2)
end
if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then
selfTurn(0)
end
if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then
selfTurn(1)
end
if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then
selfTurn(3)
end
if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then
selfTurn(2)
end
if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then
selfTurn(0)
end
end
Now, SelfTurn() Does not work on Yurots 0.9.4f
Does anyone know which version it will work on?
Or does anyone have another script I could possibly use so the Npcs face you when you talk to them.
Last edited: