• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Lua easy rep

Cloow

Active Member
Joined
May 10, 2010
Messages
1,086
Reaction score
35
Alright, i want this script to send cancel message if you dont have that item.
wont work now..

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 55152 then 
      doPlayerRemoveItem(cid, 5907, 1)
	   doTeleportThing(cid, {x=1365,y=759,z=6})
    doPlayerSendTextMessage(cid,22,"You are in the mansion now, careful.") 
     else
	doPlayerSendCancel(cid,"The skulls are not letting you in before you offer them something fierly and hard, made of some kind of rock.")
	return TRUE
end
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 55152 then 
     if doPlayerRemoveItem(cid, 5907, 1) then
	   doTeleportThing(cid, {x=1365,y=759,z=6})
    doPlayerSendTextMessage(cid,22,"You are in the mansion now, careful.") 
     else
	doPlayerSendCancel(cid,"The skulls are not letting you in before you offer them something fierly and hard, made of some kind of rock.")
     end
	return TRUE
end
end
 
Back
Top