Gaddhuve
Member
- Joined
- May 6, 2011
- Messages
- 76
- Solutions
- 1
- Reaction score
- 19
Hey guys, got favor to ask.
The script below used to be one of my favourites but since I switched to 1.0 it does not work so Id be really thankful if someone could convert it for me!
It does not give me any errors in console. Thanks in advance!
The script below used to be one of my favourites but since I switched to 1.0 it does not work so Id be really thankful if someone could convert it for me!
Code:
local t = {
npc = 'Npc',
text = 'Text 1',
storage = 13518,
pos = {x=1523, y=1326, z=7}
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and getPlayerStorageValue(cid, t.storage) == -1 then
setPlayerStorageValue(cid, t.storage, 1)
local v = doCreateNpc(t.npc, t.pos)
doCreatureSay(v, t.text, TALKTYPE_YELL)
addEvent(doCreatureSay, 2000, v, t.text, TALKTYPE_YELL)
addEvent(doRemoveCreature, 5000, v)
addEvent(doMoveCreature, 1000, v, WEST)
end
end
It does not give me any errors in console. Thanks in advance!