Death Enforcer
Member
- Joined
- Apr 22, 2008
- Messages
- 114
- Reaction score
- 10
I need the account manager to spawn players with 10 hp exactly. is this possible? Please/thanks/ will rep ;]
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'message')
doCreatureAddHealth(cid, health[, force])
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and getCreatureStorage(cid, 256) == -1 then
doCreatureSetStorage(cid, 256, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'message')
end
end
<movevent type="StepIn" actionid="4130" event="script" value="welcome.lua"/>
doPlayerAddHealth(cid, -80[, force])
lol, right in the movements.xml the line that i gave you, where it says action ID: change to one thats you don't think is in use.. e.g 3645. Then in the map editor.. The tile where new players log in for first time, right click that tile, properties, in Action ID place 3645 for example. Then the first time you walk on that tile for every character it should work...
<movevent type="StepIn" actionid="9888" event="script" value="welcome.lua"/>
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and getCreatureStorage(cid, 426) == -1 then
doCreatureSetStorage(cid, 426, 1)
doPlayerAddHealth(cid, -160[, force])
end
end