FOnline Development > Questions and Answers

How to -all npcs are dead- basic script for a quest reward?

<< < (2/2)

JovankaB:
The last "if" statement has a bug. You checked if map ownerId is 0 not if it's the same as player's id.

It should be:

if (ownerId == player.Id)
{
 // delete location code
}
else
{
// sorry it's not your location
}

Grey:
Oh my god haha, true  :-\ Thank you

Navigation

[0] Message Index

[*] Previous page

Go to full version