Hultin
Member
- Joined
- Dec 2, 2008
- Messages
- 262
- Reaction score
- 17
Hello!
I'm creating a "sacred" grave to fit my storyline where the king lies.
I'm using a grave of item id: 1412(top) 1411(bottom) and when using the top, I want players to be brought down to 1hp, and that the container frame which shows by default to be hidden.
Also, the text above the head that will show (see script below), is there anyway to make that orange?
Here's my current script:
I'm creating a "sacred" grave to fit my storyline where the king lies.
I'm using a grave of item id: 1412(top) 1411(bottom) and when using the top, I want players to be brought down to 1hp, and that the container frame which shows by default to be hidden.
Also, the text above the head that will show (see script below), is there anyway to make that orange?
Here's my current script:
PHP:
function onUse(cid)
local condition = createConditionObject(CONDITION_FIRE)
local damage = getCreatureHealth(cid) - 1
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Touching the kings grave is forbidden!")
addDamageCondition(condition, 1, 1, -damage)
end