Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
When GM looks something it gets:
Position: [X: 33023] [Y: 31529] [Z: 11].
Is it possible to set like this?
{x=33023, y=31529, z=11}
This way scripting gets much easier :]
--
I've tried this, but didn't work (nothing happens)
(it would be nice if values come in "" already, but when I put this it gives error)
Also, I'll use this same topic to ask for a little script fix, I've made this:
But when player looks at self (cid), it does not shows the messages it supposes to... When look to another player, it works...
Position: [X: 33023] [Y: 31529] [Z: 11].
Is it possible to set like this?
{x=33023, y=31529, z=11}
This way scripting gets much easier :]
--
I've tried this, but didn't work (nothing happens)
LUA:
function onLook(cid, thing, position, lookDistance)
if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then
doPlayerSetSpecialDescription(thing.uid, ("\n{x='.. position.x..', y='.. position.y..',z='.. position.z..'}"))
end
return true
end
Also, I'll use this same topic to ask for a little script fix, I've made this:
LUA:
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) and thing.uid ~= cid then
if isBotter(thing.uid) == TRUE then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is botter")
else
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is hardcore")
return TRUE
end
elseif isPlayer(thing.uid) and thing.uid == cid then
if isBotter(thing.uid) == TRUE then
doPlayerSetSpecialDescription(thing.uid, "\nYou are botter")
else
doPlayerSetSpecialDescription(thing.uid, "\nYou are hardcore")
end
end
return true
end
But when player looks at self (cid), it does not shows the messages it supposes to... When look to another player, it works...
Last edited: