eyez
Member
- Joined
- Oct 11, 2016
- Messages
- 129
- Reaction score
- 19
I would like to make utana vid more RPG, like others games, let player actually invisible
The best solution to this for now is the heba's script (a lot of people ask for it):
But there are 3 problems on this:
1) player got invulnerable, they not recive area damage, like gfbs UEs from players (its rerciving from monsters [if monsters attacks players who is not inv closer to the player]), it should give damage and cancel inv
2) players who are not invisible can enter on the same SQM of this inv player, it should block the tile to avoid abuses
3) monsters who can see utana vid should cancel players inv by attacking, but the monsters are no targetting inv players
Would be necessary some changs on source code? Fir3element/3777 (https://github.com/Fir3element/3777/tree/master/src)
The best solution to this for now is the heba's script (a lot of people ask for it):
Code:
local condition = createConditionObject(CONDITION_INVISIBLE)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
function onCastSpell(cid, var)
if exhaustion.check(cid, 5062) then
doPlayerSendTextMessage(cid,27, "You Are Exhausted ("..exhaustion.get(cid,5062)..").")
doPlayerSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
else
if isPlayerGhost(cid) then
doCreatureExecuteTalkAction(cid, "/ghost", true)
else
addEvent(doCreatureExecuteTalkAction,3*1000,cid, "/ghost", true)
doCreatureExecuteTalkAction(cid, "/ghost", true)
exhaustion.set(cid, 5062,30)
end
end
return true
end
But there are 3 problems on this:
1) player got invulnerable, they not recive area damage, like gfbs UEs from players (its rerciving from monsters [if monsters attacks players who is not inv closer to the player]), it should give damage and cancel inv
2) players who are not invisible can enter on the same SQM of this inv player, it should block the tile to avoid abuses
3) monsters who can see utana vid should cancel players inv by attacking, but the monsters are no targetting inv players
Would be necessary some changs on source code? Fir3element/3777 (https://github.com/Fir3element/3777/tree/master/src)