Cloow
Active Member
- Joined
- May 10, 2010
- Messages
- 1,086
- Reaction score
- 35
Alright, i made a quick script. My first one actually.
Here is my question, if i want the line
Also, when im trying to start the server with my script i get this error
and i can't just see what i have done wrong.
If you see any errors, wich will not work when im testing this. I would love to know em =>
Soon enough im gonna be pro on scripting !
Here is my question, if i want the line
To be UID instead of itemID what should i do?if item.itemid == 59281 then
Also, when im trying to start the server with my script i get this error
PHP:
local t =
{
monster = "Monster"
pos = {x=967, y=1007, z=7},
msg = "Monster appears right infront of your eyes!!"
tpos = {x=967, y=1007, z=7},
cpod = {x=960, y=1007, z=7},
bmsg = "How dare you?!"
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemuid == 59281 then
doSummonCreature(t.monster,t.pos)
doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
doCreateTeleport(1387, t.tpos, t.cpos)
doBroadcastMessage(t.bmsg, TALKTYPE_RED_1)
return TRUE
end
end
If you see any errors, wich will not work when im testing this. I would love to know em =>
Soon enough im gonna be pro on scripting !