Kernel
Tibera!
- Joined
- Apr 30, 2009
- Messages
- 57
- Reaction score
- 0
Yo luaers! Well, after reading some tutorials I decided to do my first script. It should remove stone with pick, and create other tiles and teleport on positions I want. Sucky thing is that I failed on first action, removing stone with a pick.
this is my script(its messed up and probably not logical at all, sry:s) :
NOTE:
Pick id is 2553
Stone id is 1304
stone uniq id is 5108
There was Idea to add a script part to pick script, but Its complicated.
this is my script(its messed up and probably not logical at all, sry:s) :
NOTE:
Pick id is 2553
Stone id is 1304
stone uniq id is 5108
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.id == item2.actionid then
if item2.actionid == 5108 and item2.id == 1304 then
doRemoveItem(item2.uid)
end
else
return 0
end
return 1
end
There was Idea to add a script part to pick script, but Its complicated.