luizragna
New member
Hello guys. The NPC are using the same variables.
- script Tester FAKE_NPC,{
if (.ok == 0)
{
mes "Hello";
set .ok,1; // or .ok = 1;
}
else
mes "I already talked to you";
close();
}
prt_sewb1,154,268,4 duplicate(Tester) Tester#1 84
prt_sewb1,160,268,4 duplicate(Tester) Tester#2 84
When i talk a NPC, the other say: "I already talked to you". So, they uses the same variable [ .ok ]
how i can change this??
- script Tester FAKE_NPC,{
if (.ok == 0)
{
mes "Hello";
set .ok,1; // or .ok = 1;
}
else
mes "I already talked to you";
close();
}
prt_sewb1,154,268,4 duplicate(Tester) Tester#1 84
prt_sewb1,160,268,4 duplicate(Tester) Tester#2 84
When i talk a NPC, the other say: "I already talked to you". So, they uses the same variable [ .ok ]
how i can change this??
Last edited by a moderator: