Aleada
Unknown Member
- Joined
- Mar 14, 2013
- Messages
- 231
- Reaction score
- 7
I've been having some troubles updating my scripts from 0.4 to 1.0.. I've updated about 3/4 of them but some are giving me troubles.. For example, "doSteerCreature" doesn't exist in 1.0. For example:
This is my 0.4 "doSteerCreature" script:
--------------
Solved... I pasted below for those who might have the same problem!
This is my 0.4 "doSteerCreature" script:
Code:
function onThink()
local NW = {x = 521, y = 1541, z = 11}
local N = {x = 522, y = 1541, z = 11}
local NE = {x = 523, y = 1541, z = 11}
local E = {x = 523, y = 1542, z = 11}
local SE = {x = 523, y = 1543, z = 11}
local S = {x = 522, y = 1543, z = 11}
local SW = {x = 521, y = 1543, z = 11}
local W = {x = 521, y = 1542, z = 11}
local pos = getCreaturePosition(getNpcId())
if ((pos.x == NW.x and pos.y == NW.y) or (pos.x == N.x and pos.y == N.y) or (pos.x == NE.x and pos.y == NE.y) or (pos.x == E.x and pos.y == E.y) or (pos.x == SE.x and pos.y == SE.y) or (pos.x == S.x and pos.y == S.y) or (pos.x == SW.x and pos.y == SW.y) or (pos.x == W.x and pos.y == W.y)) then
doCreatureSay(getNpcId(), "Thank you again!", TALKTYPE_MONSTER)
doRemoveCreature(getNpcId())
else
doSteerCreature(getNpcId(), {x = 522, y = 1542, z = 11})
end
end
--------------
Solved... I pasted below for those who might have the same problem!
Last edited: