• 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 0.3 -> 0.2

Siramix

CEO
Senator
Premium User
Joined
Jan 6, 2010
Messages
3,554
Reaction score
263
Location
Sweden, Europe
Hello!

I'm recently brought to 0.2 scripting.
but i'm still very very newbie.

Could someone convert this script to 0.2.7?
And also perhaps explain if you want to.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 6212 then
		doCreatureSay(cid,"That really burn on your feets.", TALKTYPE_MONSTER)
	end
	return TRUE
end

Thank you!
 
Change TALKTYPE_MONSTER to TALKTYPE_ORANGE_1

Also keep in mind that you do NOT have to perform checks like 'if item.itemid == XXXX' in scripts, unless you registered multiple items to a same script!
 
Did you remove "if item.itemid == 6212 then"?

If so, use this script:

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		doCreatureSay(cid,"That really burn on your feets.",TALKTYPE_ORANGE_1)
	return true
end
 

Similar threads

Back
Top