Appzyt
New Member
- Joined
- Jun 1, 2008
- Messages
- 92
- Reaction score
- 0
Ohoy ohoy!
Soon its halloween and I want to give my players on my server a treat with this scary house. Im getting my inspiration from F.E.A.R the game.
What do I want? -
When u step on a tile you first get a storage value so u cant step on it again.
When u step on this tile an NPC called Alma will appear on certain location, NPC will say something and then after 5 seconds be gone.
This is what I have come up with so far and hoping someone might help me finnish it.
Regards,
Appz
Soon its halloween and I want to give my players on my server a treat with this scary house. Im getting my inspiration from F.E.A.R the game.
What do I want? -
When u step on a tile you first get a storage value so u cant step on it again.
When u step on this tile an NPC called Alma will appear on certain location, NPC will say something and then after 5 seconds be gone.
Lua:
local config = {
npc = "Alma", --- This is the NPC name
text = {"You are in my realm now."}, --- NPC will say this
storage = 123456, --- When stepped on tile storage is added.
pos = {
{x=1068, y=512, z=4}, --- The NPC summons here
}
}
--No more config--
--Script starts here--
function onStepIn(cid, item, position, fromPosition)
if item.uid == 7788 then
setPlayerStorageValue(cid, config.storage, 1)
doCreateNpc(config.npc, spawnPos)
doCreatureSay(getCreatureByName("Alma"), config.text, 1)
end
return true
end
This is what I have come up with so far and hoping someone might help me finnish it.
Regards,
Appz