SHOW:
|
|
- or go back to the newest paste.
1 | local NPC = Creature.GetByName("Towncryer") | |
2 | ||
3 | if (NPC:DistanceFromSelf() >= 3) then | |
4 | - | Self.UseItemFromGround(NPC:Position().x, NPC:Position().y, NPC:Position().z) |
4 | + | local pos = NPC:Position() |
5 | Self.UseItemFromGround(pos.x, pos.y, pos.z) | |
6 | end |